Hi. We're getting a segfault when httpd shuts down
when using mod_perl on Red Hat 6.2, and I'd like to
know whether anyone else has seen this as well. If I
run "httpd -X -f /home/gvwilson/httpd.conf" under gdb,
the stack trace is:
#0 0x4000af21 in _dl_debug_state () at dl-debug.c:56
#1 0x40183156 in _dl_close (map=0x853bb78) at dl-close.c:195
#2 0x400a1430 in dlclose_doit (handle=0x853bb78) at dlclose.c:26
#3 0x4000ac3b in _dl_catch_error (errstring=0x400a3080, operate=0x400a1418
<dlclose_doit>, args=0x853bb78) at dl-error.c:141
#4 0x400a18b9 in _dlerror_run (operate=0x400a1418 <dlclose_doit>,
args=0x853bb78) at dlerror.c:125
#5 0x400a13fe in dlclose (handle=0x853bb78) at dlclose.c:32
#6 0x806748c in ap_os_dso_unload ()
#7 0x4026c3ec in unload_xs_so () from /etc/httpd/modules/libperl.so
#8 0x4026c42b in mp_dso_unload () from /etc/httpd/modules/libperl.so
#9 0x8051068 in ap_run_cleanup ()
#10 0x804fe59 in ap_clear_pool ()
#11 0x805bf76 in ap_child_terminate ()
#12 0x805c65f in main ()
#13 0x400bc9cb in __libc_start_main (main=0x805c3e0 <main>, argc=4,
argv=0xbffffb54, init=0x804f014 <_init>, fini=0x807b99c <_fini>,
rtld_fini=0x4000ae60 <_dl_fini>, stack_end=0xbffffb4c) at
../sysdeps/generic/libc-start.c:92
"perl -V" gives:
Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
Platform:
osname=linux, osvers=2.2.5-22smp, archname=i386-linux
uname='linux porky.devel.redhat.com 2.2.5-22smp #1 smp wed jun 2
09:11:51 edt 1999 i686 unknown '
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef useperlio=undef d_sfio=undef
Compiler:
cc='cc', optimize='-O2 -m486 -fno-strength-reduce',
gccversion=egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
cppflags='-Dbool=char -DHAS_BOOL -I/usr/local/include'
ccflags ='-Dbool=char -DHAS_BOOL -I/usr/local/include'
stdchar='char', d_stdstdio=undef, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
alignbytes=4, usemymalloc=n, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -ldl -lm -lc -lposix -lcrypt
libc=, so=so, useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
Characteristics of this binary (from libperl):
Built under linux
Compiled at Feb 2 2000 15:35:58
@INC:
/usr/lib/perl5/5.00503/i386-linux
/usr/lib/perl5/5.00503
/usr/lib/perl5/site_perl/5.005/i386-linux
/usr/lib/perl5/site_perl/5.005
.
"/usr/sbin/httpd -V" gives:
Server version: Apache/1.3.12 (Unix) (Red Hat/Linux)
Server built: Mar 1 2000 13:37:34
Server's Module Magic Number: 19990320:7
Server compiled with....
-D EAPI
-D HAVE_MMAP
-D HAVE_SHMGET
-D USE_SHMGET_SCOREBOARD
-D USE_MMAP_FILES
-D USE_FCNTL_SERIALIZED_ACCEPT
-D HTTPD_ROOT="/usr"
-D SUEXEC_BIN="/usr/sbin/suexec"
-D DEFAULT_PIDLOG="/var/run/httpd.pid"
-D DEFAULT_SCOREBOARD="/var/run/httpd.scoreboard"
-D DEFAULT_LOCKFILE="/var/run/httpd.lock"
-D DEFAULT_XFERLOG="/var/log/httpd/access_log"
-D DEFAULT_ERRORLOG="/var/log/httpd/error_log"
-D TYPES_CONFIG_FILE="/etc/httpd/conf/mime.types"
-D SERVER_CONFIG_FILE="/etc/httpd/conf/httpd.conf"
-D ACCESS_CONFIG_FILE="/etc/httpd/conf/access.conf"
-D RESOURCE_CONFIG_FILE="/etc/httpd/conf/srm.conf"
"uname -a" and "cat /etc/redhat-release" give:
Linux snuff.testbed.private 2.2.14-5.0 #1 Tue Mar 7 20:53:41 EST 2000 i586
unknown
Red Hat Linux release 6.2 (Zoot)
respectively.
Is this a known issue? If so, I'd be grateful for pointers to a solution.
Thanks,
Greg