[afnog] HTTPD segmentation fault problem

Brian Candler B.Candler at pobox.com
Tue Feb 15 18:37:00 EAT 2005


On Tue, Feb 15, 2005 at 09:53:05PM +0300, Banoba Ezra wrote:
> > At that point, try typing "bt" and see if you get a useful backtrace.
> 
> This is what I get for the backtrace
> 
> (gdb) bt
> #0  0x2868e44e in Perl_av_extend ()
> from /usr/local/lib/perl5/5.6.2/mach/CORE/libperl.so
> #1  0x2868e6b4 in Perl_av_store ()
> from /usr/local/lib/perl5/5.6.2/mach/CORE/libperl.so
> #2  0x2868ed77 in Perl_av_push ()
> from /usr/local/lib/perl5/5.6.2/mach/CORE/libperl.so
> #3  0x2864a8b4 in S_incpush ()
> from /usr/local/lib/perl5/5.6.2/mach/CORE/libperl.so
> #4  0x2864a54e in S_init_perllib ()
> from /usr/local/lib/perl5/5.6.2/mach/CORE/libperl.so
> #5  0x28646bb8 in S_parse_body ()
> from /usr/local/lib/perl5/5.6.2/mach/CORE/libperl.so
> #6  0x28646200 in perl_parse ()
> from /usr/local/lib/perl5/5.6.2/mach/CORE/libperl.so
> #7  0x28605dae in perl_startup ()
> from /usr/local/libexec/apache/libperl.so
> #8  0x286059c6 in perl_module_init ()
> from /usr/local/libexec/apache/libperl.so
> #9  0x8055744 in ap_init_modules ()
> #10 0x805e094 in main ()
> #11 0x804fd0e in _start ()
> (gdb)

You read that from the bottom up. It seems the problem occurs while Apache
is initialising its modules, and in particular while it's initialising
libperl.so. And that file belongs to mod_perl:

$ grep libperl /usr/ports/www/mod_perl/pkg-plist 
libexec/apache/libperl.so

So, to aid in debugging at least, first thing I'd do is disable mod_perl in
httpd.conf and see if Apache starts. If so, you have localised the problem.

Regards,

Brian.


More information about the afnog mailing list