-------------8<---------- Start Bug Report ------------8<---------- 1. Problem Description:
On a plain boring box running debian stable, the simplest build of apache 2.0.51 with a static linked mod_perl 1.99.16 segfaults immediately on start. I've been running round in circles on this all evening, any assistance would be hugely appreciated. :(
The entire install was built by downloading & expanding apache & mod_perl, and then running:
$ perl Makefile.PL \
MP_AP_PREFIX=../httpd-2.0.51/ \
MP_AP_BUILD=1 \
MP_DEBUG=1 \
MP_INST_APACHE2=1 \
MP_AP_CONFIGURE="--enable-maintainer-mode --prefix=/usr/local/apache2 --localstatedir=/var/run/apache2 --with-mpm=prefork"
$ make
# make install
$ make test
in the mod_perl source tree.
2. Used Components and their Configuration:
*** mod_perl version 1.9916
*** using /usr/local/src/web/apache2/mod_perl-1.99_16/lib/Apache/BuildConfig.pm
*** Makefile.PL options:
MP_APR_LIB => aprext
MP_AP_BUILD => 1
MP_AP_CONFIGURE => --enable-maintainer-mode --prefix=/usr/local/apache2 --localstatedir=/var/run/apache2 --with-mpm=prefork
MP_AP_PREFIX => /usr/local/src/web/apache2/mod_perl-1.99_16/../httpd-2.0.51
MP_COMPAT_1X => 1
MP_DEBUG => 1
MP_GENERATE_XS => 1
MP_INST_APACHE2 => 1
MP_LIBNAME => mod_perl
MP_TRACE => 1
MP_USE_DSO => 1
MP_USE_STATIC => 1
*** /usr/local/apache2/bin/httpd -V Server version: Apache/2.0.51 Server built: Sep 24 2004 01:39:37 Server's Module Magic Number: 20020903:9 Architecture: 32-bit Server compiled with.... -D APACHE_MPM_DIR="server/mpm/prefork" -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) -D APR_USE_SYSVSEM_SERIALIZE -D APR_USE_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D HTTPD_ROOT="/usr/local/apache2" -D SUEXEC_BIN="/usr/local/apache2/bin/suexec" -D DEFAULT_PIDLOG="/var/run/apache2/logs/httpd.pid" -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" -D DEFAULT_LOCKFILE="/var/run/apache2/logs/accept.lock" -D DEFAULT_ERRORLOG="logs/error_log" -D AP_TYPES_CONFIG_FILE="conf/mime.types" -D SERVER_CONFIG_FILE="conf/httpd.conf"
*** (apr|apu)-config linking info
-L/usr/local/src/web/apache2/httpd-2.0.51/srclib/apr -lapr-0 -lrt -lm -lcrypt -lnsl -lpthread -ldl
*** /usr/bin/perl -V
Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
Platform:
osname=linux, osvers=2.6.3-deb2-skas3, archname=i386-linux
uname='linux mizar 2.6.3-deb2-skas3 #1 sun mar 14 14:46:35 pst 2004 i686 unknown '
config_args='-Dccflags=-DDEBIAN -Dcccdlflags=-fPIC -Darchname=i386-linux -Dprefix=/usr -Dprivlib=/usr/share/perl/5.6.1 -Darchlib=/usr/lib/perl/5.6.1 -Dvendorprefix=/usr -Dvendorlib=/usr/share/perl5 -Dvendorarch=/usr/lib/perl5 -Dsiteprefix=/usr/local -Dsitelib=/usr/local/share/perl/5.6.1 -Dsitearch=/usr/local/lib/perl/5.6.1 -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 -Dman1ext=1 -Dman3ext=3perl -Dpager=/usr/bin/sensible-pager -Uafs -Ud_csh -Uusesfio -Duseshrplib -Dlibperl=libperl.so.5.6.1 -Dd_dosuid -des'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
Compiler:
cc='cc', ccflags ='-DDEBIAN -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2',
cppflags='-DDEBIAN -fno-strict-aliasing -I/usr/local/include'
ccversion='', gccversion='2.95.4 20011002 (Debian prerelease)', 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, usemymalloc=n, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lgdbm -ldb -ldl -lm -lc -lcrypt
perllibs=-ldl -lm -lc -lcrypt
libc=/lib/libc-2.2.5.so, so=so, useshrplib=true, libperl=libperl.so.5.6.1
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): Compile-time options: USE_LARGE_FILES Built under linux Compiled at Apr 4 2004 05:57:53 %ENV: PERL_LWP_USE_HTTP_10="1" @INC: /usr/local/lib/perl/5.6.1 /usr/local/share/perl/5.6.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.6.1 /usr/share/perl/5.6.1 /usr/local/lib/site_perl .
*** Packages of interest status:
Apache::Request: - CGI : 2.752 LWP : 5.64, 5.69 mod_perl : 1.29, 1.9916
3. This is the core dump trace: (if you get a core dump):
phoenix 876# gdb /usr/local/apache2/bin/httpd (gdb) run -X Starting program: /usr/local/apache2/bin/httpd -X [New Thread 1024 (LWP 4167)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 4167)]
0x4008b62f in Perl_newSV () from /usr/lib/libperl.so.5.6
(gdb) bt
#0 0x4008b62f in Perl_newSV () from /usr/lib/libperl.so.5.6
#1 0x4007b75f in Perl_hv_fetch () from /usr/lib/libperl.so.5.6
#2 0x4003cc54 in Perl_gv_fetchpv () from /usr/lib/libperl.so.5.6
#3 0x400390db in Perl_my_unexec () from /usr/lib/libperl.so.5.6
#4 0x40036276 in perl_parse () from /usr/lib/libperl.so.5.6
#5 0x400360f0 in perl_parse () from /usr/lib/libperl.so.5.6
#6 0x08066cf9 in modperl_startup (s=0x80fe648, p=0x80f89d0) at mod_perl.c:227
#7 0x08066bd8 in modperl_startup (s=0x80fe648, p=0x80f89d0) at mod_perl.c:179
#8 0x08067af0 in modperl_init (base_server=0x80fe648, p=0x80f89d0) at mod_perl.c:407
#9 0x08067c80 in modperl_hook_init (pconf=0x80f89d0, plog=0x8132ab8, ptemp=0x810ea28, s=0x80fe648) at mod_perl.c:542
#10 0x080a9eb9 in ap_run_open_logs (pconf=0x80f89d0, plog=0x8132ab8, ptemp=0x810ea28, s=0x80fe648) at config.c:144
#11 0x080b0302 in main (argc=2, argv=0xbffffbb4) at main.c:600
(gdb) frame 6
#6 0x08066cf9 in modperl_startup (s=0x80fe648, p=0x80f89d0) at mod_perl.c:227
227 status = perl_parse(perl, modperl_xs_init, argc, argv, NULL);
(gdb) print argc
$1 = 2
(gdb) print argv[0]
$2 = 0x81381e0 "httpd"
(gdb) print argv[1]
$3 = 0x80d3b4b "-e;0"
(gdb) frame 8
#8 0x08067af0 in modperl_init (base_server=0x80fe648, p=0x80f89d0) at mod_perl.c:407
407 base_perl = modperl_startup(base_server, p);
This report was generated by ./REPORT on Fri Sep 24 00:50:29 2004 GMT.
-------------8<---------- End Bug Report --------------8<----------
Note: Complete the rest of the details and post this bug report to modperl <at> perl.apache.org. To subscribe to the list send an empty email to [EMAIL PROTECTED]
-- 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