Stas Bekman wrote:
Matthew, please try the current cvs, Philippe has been working hard on improving the static build since _16 was released.
http://perl.apache.org/download/source.html#Development_mod_perl_2_0_Source_Distribution
-------------8<---------- Start Bug Report ------------8<---------- 1. Problem Description:
Thanks for the quick response, Stas - unfortunately with the latest mod_perl cvs, things still segfault immediately:
2. Used Components and their Configuration:
*** mod_perl version 1.9917
*** using /usr/local/src/web/apache2/mod_perl-2.0-cvs/lib/Apache/BuildConfig.pm
*** Makefile.PL options:
MP_APR_LIB => aprext
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-2.0-cvs/../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
*** ../../httpd-2.0.51/.libs/httpd -V Server version: Apache/2.0.51 Server built: Sep 24 2004 02:24:28 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/.libs
-L/usr/local/src/web/apache2/httpd-2.0.51/srclib/apr -lapr-0 -lrt -lm -lcrypt -lnsl -lpthread -ldl
-L/usr/local/src/web/apache2/httpd-2.0.51/srclib/apr-util/.libs
-L/usr/local/src/web/apache2/httpd-2.0.51/srclib/apr-util -laprutil-0 -lgdbm -ldb3 -lexpat
*** /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.9917
3. This is the core dump trace: (if you get a core dump):
phoenix 948# gdb ../../httpd-2.0.51/.libs/httpd
GNU gdb 2002-04-01-cvs
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-linux"...
(gdb) run -X
Starting program: /usr/local/src/web/apache2/httpd-2.0.51/.libs/httpd -X
[New Thread 1024 (LWP 5258)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 5258)]
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=0xbffffb84) at main.c:600
This report was generated by ./REPORT on Fri Sep 24 01:28:09 2004 GMT.
-------------8<---------- End Bug Report --------------8<----------
-- 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