You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "Christopher P. Lindsey" <li...@mallorn.com> on 2004/05/20 19:43:33 UTC

Segfaults with some modules, positional dependent

I'm having a weird problem with certain modules causing perl scripts to 
segfault.  The errors in the log are like

   [Thu May 20 03:19:31 2004] [notice] child pid 10522 exit signal Segmentation fault (11)

The module causing the problems is Sys::Hostname.

The perl script has the line

   use Sys::Hostname;

in it.  If I comment out this line, the script work fine with no Segmentation
fault.  However, if I add Sys::Hostname to the bottom of my mod_perl.conf file
httpd fails to start entirely (it segfaults and dies immediately).  If I add
Sys::Hostname anywhere above the Image::Size module in mod_perl.conf, things
work fine.

I've had this happen a lot lately.  I recently moved News::NNTPClient
to the top of the mod_perl.conf list (from the middle) and a different
script started working again.

I haven't tried recompiling with debugging enabled yet to track it down further, but the fact that it's intermittent and reproducible dependent on positioning 
eems to indicate that it's something with mod_perl.

Any ideas?

I'm using Apache 1.3.31 (also tried under 1.3.29) with the following 
additional modules/libraries.  I can provide my full compile flags, etc.
if necessary.

   mod_perl 1.29
   mod_interchange 1.30
   mod_auth_kerb 4.13
   mod_ssl 2.8.17-1.3.31
   mod_php 4.3.6
   mod_gzip 1.3.26.1a
   openssl 0.9.7d
   mm 1.3.0

Thanks for any tips,

Chris

-- 
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


Re: Segfaults with some modules, positional dependent

Posted by Stas Bekman <st...@stason.org>.
[Chris, please keep the thread on the list. Thanks]

Christopher P. Lindsey wrote:
>>>  [Thu May 20 03:19:31 2004] [notice] child pid 10522 exit signal 
>>>  Segmentation fault (11)
>>
>>You need to show us the core backtrace. And may be rebuild your mod_perl 
>>and/or perl with debug enabled before that. You also lack other things from 
>>your report. Please see: http://perl.apache.org/bugs/
> 
> 
> The hope was that this was a quick known problem that I'd missed in the FAQ
> or something.  I guess not, based on your response.  :)

I don't know. I haven't searched the archived, something that you may want to 
do first [1]. I can't tell without seeing the trace.

> I'll try to get that information, but it'll take a while.  The backtrace is
> the toughie.

True. The first few times.

[1]
http://marc.theaimsgroup.com/?l=apache-modperl&r=1&w=2#apache-modperl
http://marc.theaimsgroup.com/?l=apache-modperl-dev

-- 
__________________________________________________________________
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


Re: Segfaults with some modules, positional dependent

Posted by Stas Bekman <st...@stason.org>.
Christopher P. Lindsey wrote:
> I'm having a weird problem with certain modules causing perl scripts to 
> segfault.  The errors in the log are like
> 
>    [Thu May 20 03:19:31 2004] [notice] child pid 10522 exit signal Segmentation fault (11)

You need to show us the core backtrace. And may be rebuild your mod_perl 
and/or perl with debug enabled before that. You also lack other things from 
your report. Please see: http://perl.apache.org/bugs/

-- 
__________________________________________________________________
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