Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 3281 invoked from network); 17 Jul 2004 18:28:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 17 Jul 2004 18:28:57 -0000 Received: (qmail 7902 invoked by uid 500); 17 Jul 2004 18:28:45 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 7824 invoked by uid 500); 17 Jul 2004 18:28:44 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 7807 invoked by uid 99); 17 Jul 2004 18:28:44 -0000 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=SUBJ_HAS_SPACES X-Spam-Check-By: apache.org Message-ID: <40F96FCD.6080207@stason.org> Date: Sat, 17 Jul 2004 11:28:29 -0700 From: Stas Bekman Organization: Hope, Humanized User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040617 X-Accept-Language: en-us, en, he, ru MIME-Version: 1.0 To: Adam Worrall Cc: modperl@perl.apache.org Subject: Re: [mp2] segfault when using IO::Socket::INET from within mod_perl1.9915 References: <11476.62.190.228.7.1090077640.squirrel@62.190.228.7> In-Reply-To: <11476.62.190.228.7.1090077640.squirrel@62.190.228.7> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Adam Worrall wrote: > I'd be grateful for any ideas on where to push this next. I have a > dodgy workaround, but it doesn't make me all that comfortable ! > > -------------8<---------- Start Bug Report ------------8<---------- > 1. Problem Description: Thanks for the detailed report, Adam :) > Using IO::Socket::INET->new() causes a SIGSEGV > > The test code is pretty simple ... > my $sock = IO::Socket::INET->new ({'Proto' => 'tcp', > 'PeerAddr' => 'localhost', > 'PeerPort' => 80}); > > The problem seems to be down in libnss. It seems to get confused > just after opening (the non-existent) /var/db/protocols.db, and > then SISGEGVs. The same libnss works fine outside of mod_perl, > via the same Perl & IO::Socket::INET; I guess there might be some > interaction between mod_perl/Apache and libnss. > > libnss is part of libc, which for me is version 2.2.3 (slackware 9.1). > > The symptom vanishes by configuring /etc/nsswitch.conf to only > use files for protocols (just delete the 'db' bit :), but I'm > worried that the problem is still lying around, and could surface > as some other random SIGSEGV. > > I've used the bug template, and have a dist available at: > Before we try that, is it possible that when you are running under mp2 a different set of libraries get loaded? e.g. if Apache is linked against conflicting set of the libs with the same names, but different versions? Have you tried comparing the output of ldd on httpd, perl and IO/Socket.so, it also could be statically linked. -- __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:stas@stason.org http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html