You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Matthew Avitable <mj...@escapement.net> on 2004/01/27 07:03:41 UTC
[mp1] RH9 / apache 1.3.29 / mod_perl 1.29 / perl 5.8.0 segfault
Hi Folks,
This one has me stumped. After installing with clean tarballs of
apache_1.3.29 and mod_perl-1.29 on a RedHat 9 box, I'm getting a
segfault upon making
a request. I'm not executing any perl handler at all - in fact, none
are configured in my
httpd.conf. I'm just requesting a file.
The error log reports the following:
[notice] child pid 10570 exit signal Segmentation fault (11)
I searched the archives, and this one looked relatively close in
comparison:
http://www.gossamer-threads.com/perl/mailarc/gforum.cgi?post=85025;
search_string=apaci%201.29;guest=2149190&t=search_engine
Here is my installation procedure after untarring apache/mod_perl,
which follows the docs at:
http://perl.apache.org/docs/1.0/guide/install.html#The_Flexible_Way
... since at some point i want to incorporate PHP and DAV into the
build.
> perl Makefile.PL PERL_DEBUG=1 APACHE_SRC=../apache_1.3.29/src
NO_HTTPD=1 USE_APACI=1 PREP_HTTPD=1 ALL_HOOKS=1 PERL_URI_API=1
PERL_UTIL_API=1 PERL_TABLE_API=1
> make
> make install
Now I cd into the apache source tree and run:
> ./configure --prefix=/data/httpd
--activate-module=src/modules/perl/libperl.a --enable-module=most
> make
> make install
When I use this httpd, i get the segfault (details below). However, if
change my Makefile.PL args to build
httpd (add DO_HTTPD=1, APACHE_PREFIX=/data/httpd, AND remove
PREP_HTTPD=1),
and run make install from the mod_perl distribution directory, the
resulting httpd works properly.
Could this be an apache 'make' issue?
Here is my gdb backtrace ... I'm not sure why I get the 'no debugging
symbols found' warning,
as I asked for debugging symbols in my MakeFile.pl args (I'm not much
of a gdb user, if you couldn't tell)
> gdb httpd
(gdb) run -X -f /data/httpd/conf/httpd.conf
Starting program: /data/httpd/bin/httpd -X -f
/data/httpd/conf/httpd.conf
(no debugging symbols found)...(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
0x0806fafe in perl_header_parser ()
(gdb) bt
#0 0x0806fafe in perl_header_parser ()
#1 0x080a8591 in ap_cleanup_method_ptrs ()
#2 0x080a868b in ap_header_parse ()
#3 0x080bd0a6 in ap_some_auth_required ()
#4 0x080bd41a in ap_process_request ()
#5 0x080b45ef in ap_child_terminate ()
#6 0x080b4790 in ap_child_terminate ()
#7 0x080b48f7 in ap_child_terminate ()
#8 0x080b4f96 in ap_child_terminate ()
#9 0x080b57b4 in main ()
#10 0x40214907 in __libc_start_main () from /lib/libc.so.6
Here is my perl -V (its redhat rpm perl-5.8.0-88.3):
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
Platform:
osname=linux, osvers=2.4.21-1.1931.2.382.entsmp,
archname=i386-linux-thread-multi
uname='linux stripples.devel.redhat.com 2.4.21-1.1931.2.382.entsmp
#1 smp wed aug 6 17:18:52 edt 2003 i686 i686 i386 gnulinux '
config_args='-des -Doptimize=-O2 -g -pipe -march=i386 -mcpu=i686
-Dmyhostname=localhost -Dperladmin=root@localhost -Dcc=gcc -Dcf_by=Red
Hat, Inc. -Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux
-Dvendorprefix=/usr -Dsiteprefix=/usr
-Dotherlibdirs=/usr/lib/perl5/5.8.0 -Duseshrplib -Dusethreads
-Duseithreads -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db
-Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio
-Dinstallusrbinperl -Ubincompat5005 -Uversiononly -Dpager=/usr/bin/less
-isr'
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define
usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-DDEBUGGING -fno-strict-aliasing -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
optimize='-O2 -g -pipe -march=i386 -mcpu=i686',
cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-DDEBUGGING -fno-strict-aliasing -I/usr/local/include
-I/usr/include/gdbm'
ccversion='', gccversion='3.2.2 20030222 (Red Hat Linux 3.2.2-5)',
gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='gcc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lgdbm -ldb -ldl -lm -lpthread -lc -lcrypt -lutil
perllibs=-lnsl -ldl -lm -lpthread -lc -lcrypt -lutil
libc=/lib/libc-2.3.2.so, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version='2.3.2'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic
-Wl,-rpath,/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE'
cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: DEBUGGING MULTIPLICITY USE_ITHREADS
USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
Locally applied patches:
MAINT18379
Built under linux
Compiled at Aug 13 2003 11:47:58
@INC:
/usr/lib/perl5/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0
/usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/5.8.0
.
Server config is dead simple - just a DocumentRoot and a ServerName
contained in a VirtualHost (named) directive.
On a side note, my LANG environment variable was set to en_US for the
build, so I theoretically worked around the locale bug referred to here:
http://perl.apache.org/docs/1.0/guide/
troubleshooting.html#RH_8_and_9_Locale_Issues
Please do let me know if I can provide anymore information, via
rebuilding mod_perl/apache with different
arguments, or anything else. I would be happy to do so. Hopefully
someone will tell me great news like
'You dolt! You forgot X and Y in your configure script'! Its been a
long day in front of the screen ....
Thanks! :)
-m
## Matt J. Avitable (mja@escapement.net)
## General Partner / Programmer
## Escapement Arts And Media
## http://www.escapement.net/
## Phone: (804) 400-0605
--
Reporting bugs: 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: [mp1] RH9 / apache 1.3.29 / mod_perl 1.29 / perl 5.8.0 segfault
Posted by Stas Bekman <st...@stason.org>.
Ged Haywood wrote:
> Hi there,
>
> On Tue, 27 Jan 2004, Matthew Avitable wrote:
>
>
>>This one has me stumped. After installing with clean tarballs of
>>apache_1.3.29 and mod_perl-1.29 on a RedHat 9 box, I'm getting a
>>segfault upon making a request.
>
>
> :(
>> I'm not executing any perl handler at all - in fact, none are
>> configured in my httpd.conf. I'm just requesting a file.
That doesn't sound right. If you don't have perl handlers configured
perl_header_parser won't kick in. Check your httpd.conf carefully.
>>I searched the archives, and this one looked relatively close in comparison:
>>http://www.gossamer-threads.com/perl/mailarc/gforum.cgi?post=85025; search_string=apaci%201.29;guest=2149190&t=search_engine
>
>
> Yup, I remember that... :)
>
>
>>When I use this httpd, i get the segfault (details below). However,
>>if change my Makefile.PL args to build httpd (add DO_HTTPD=1,
>>APACHE_PREFIX=/data/httpd, AND remove PREP_HTTPD=1), and run make
>>install from the mod_perl distribution directory, the resulting
>>httpd works properly. Could this be an apache 'make' issue?
>
>
> I can confirm the behaviour, I reproduced it on a machine of mine too.
> But I can't remember how this one was left. I thought Joachim was
> happy in the end but I had an idea that Stas came up with a patch for
> the makefile or something. Stas? Joachim?
I've found another thread:
http://marc.theaimsgroup.com/?t=104025178300004&r=1&w=2
It looks like Aaron Johson had a similar problem which has something to do
with threaded-perl build or a bad precompiled perl... the original poster
hasn't followed up whether he has solved it.
__________________________________________________________________
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
--
Reporting bugs: 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: [mp1] RH9 / apache 1.3.29 / mod_perl 1.29 / perl 5.8.0 segfault
Posted by Ged Haywood <ge...@www2.jubileegroup.co.uk>.
Hi there,
On Tue, 27 Jan 2004, Matthew Avitable wrote:
> This one has me stumped. After installing with clean tarballs of
> apache_1.3.29 and mod_perl-1.29 on a RedHat 9 box, I'm getting a
> segfault upon making a request.
:(
> I searched the archives, and this one looked relatively close in comparison:
> http://www.gossamer-threads.com/perl/mailarc/gforum.cgi?post=85025; search_string=apaci%201.29;guest=2149190&t=search_engine
Yup, I remember that... :)
> When I use this httpd, i get the segfault (details below). However,
> if change my Makefile.PL args to build httpd (add DO_HTTPD=1,
> APACHE_PREFIX=/data/httpd, AND remove PREP_HTTPD=1), and run make
> install from the mod_perl distribution directory, the resulting
> httpd works properly. Could this be an apache 'make' issue?
I can confirm the behaviour, I reproduced it on a machine of mine too.
But I can't remember how this one was left. I thought Joachim was
happy in the end but I had an idea that Stas came up with a patch for
the makefile or something. Stas? Joachim?
73,
Ged.
--
Reporting bugs: 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