On Wednesday 31 March 2004 07:11 pm, Geoffrey Young wrote: > Geoffrey Young wrote: > >>anway, I'm trying my best to track it down, as is philippe, but more eyes > >>are always welcome. if you're looking for a place to start, I'd check > >> out all the APR commits over the past two weeks - that is first on my > >> list once I get a free moment. > > > > for those following along, it definitely seems to be something within > > httpd in the past month. httpd/apr/apr-util HEAD checkouts with > > -D"2004-03-01" test just fine against current mod_perl 2.0 cvs on fedora. > > compiling Apache with --disable-lfs seemed to fix the problems. please > give it a whirl and report back. >
Geoff - My project is not priority, and I don't want you to get sidetracked from your real work, so I hope my problems are some sort of dumb-dumb configuration/etc. mistake on my part. I'm happy to to the grunt work on this, if maybe you can throw me some tips as you have already. So anyway, Here is the console log of my mod_perl 'make test TEST_VERBOSE=1 TEST_FILES=t/apache/add_config.t' (I just did the one test, all tests seg fault upon receiving their first request): ... t/apache/add_config....request has failed (the response code was: 500) see t/logs/error_log for more details dubious Test returned status 104 (wstat 26624, 0x6800) [warning] server localhost:8529 shutdown [ error] error running tests (please examine t/logs/error_log) [ error] oh dangnabit, server dumped core [ error] for stacktrace, run: gdb /home/test/usr/apache2.1/sbin/httpd -core /home/test/httpd/2.1/src/modperl2/modperl-2.0/t/core +--------------------------------------------------------+ | Please file a bug report: http://perl.apache.org/bugs/ | +--------------------------------------------------------+ make: *** [run_tests] Error 1 The error_log is similar: ... [Wed Mar 31 21:01:08 2004] [notice] Apache/2.1.0-dev (Unix) mod_perl/1.99_14-dev Perl/v5.8.3 mod_ssl/2.1.0-dev OpenSSL/0.9.7d DAV/2 configured -- resuming normal operations [Wed Mar 31 21:01:08 2004] [info] Server built: Mar 31 2004 20:12:16 [Wed Mar 31 21:01:08 2004] [debug] prefork.c(973): AcceptMutex: sysvsem (default: sysvsem) [Wed Mar 31 21:01:09 2004] [notice] child pid 24632 exit signal Segmentation fault (11), possible coredump in /home/test/httpd/2.1/src/modperl2/modperl-2.0/t [Wed Mar 31 21:01:10 2004] [info] Child process pid=24637 is exiting [Wed Mar 31 21:01:10 2004] [info] removed PID file /home/test/httpd/2.1/src/modperl2/modperl-2.0/t/logs/httpd.pid (pid=24629) [Wed Mar 31 21:01:10 2004] [notice] caught SIGTERM, shutting down END in modperl_extra.pl, pid=24629 Here is the bt of the core dump; the MP_dRCFG macro expands as: ... #0 0x404b4036 in modperl_hook_create_request (r=0x92d9e48) at mod_perl.c:614 614 rcfg = (gdb) bt #0 0x404b4036 in modperl_hook_create_request (r=0x92d9e48) at mod_perl.c:614 #1 0x080ba065 in ap_run_create_request () The module in question - mod_perl.c - line 614 is ' rcfg = '. I hand- expanded the MP_dRCFG macro in the hope if getting more information, but all that showed is, indeed, the routine was entered with a non-NULL request_rec: ... static int modperl_hook_create_request(request_rec *r) { // MP_dRCFG; modperl_config_req_t *rcfg = NULL; if (r) rcfg = #if defined(MP_IN_XS) && defined(WIN32) modperl_get_perl_module_config(r->request_config) #else ap_get_module_config(r->request_config, &perl_module) #endif ; modperl_config_req_init(r, rcfg); ... So we die calling 'ap_get_module_config... Now my configuration: Here is how I downloaded and made Apache2.1 (note --disable-lfs): pserver="-d :pserver:anoncvs" location="cvs.apache.org:/home/cvspublic" [EMAIL PROTECTED] cd $BASE_DIR cvs $pserver:[EMAIL PROTECTED] login && cvs $CVSROOT checkout -d httpd-2.1 httpd-2.0 && cd $BASE_DIR/$SOURCE_DIR/srclib && cvs $CVSROOT checkout apr apr-util && cvs $CVSROOT logout ./buildconf ./configure \ --enable-layout=MyTest \ --enable-auth_digest=shared \ --enable-cgid=shared \ --enable-cgi=shared \ --enable-dav=shared \ --enable-dav_fs=shared \ --enable-deflate=shared \ --enable-rewrite=shared \ --enable-so \ --enable-speling=shared \ --enable-ssl \ --with-ssl=/usr/ \ --with-prefork \ --without-exestrip \ --disable-lfs make EXTRA_CFLAGS="-g" mod_perl configuration: *** mod_perl version 1.9914 *** using lib/Apache/BuildConfig.pm *** Makefile.PL options: MP_APXS => /home/test/usr/apache2.1/sbin/apxs MP_COMPAT_1X => 1 MP_GENERATE_XS => 1 MP_LIBNAME => mod_perl MP_USE_DSO => 1 MP_USE_STATIC => 1 Apache configuration: *** /home/test/usr/apache2.1/sbin/httpd -V Server version: Apache/2.1.0-dev Server built: Mar 31 2004 20:12:16 Server's Module Magic Number: 20030821:3 Architecture: 32-bit Server MPM: Prefork threaded: no forked: yes (variable process count) Server compiled with.... -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="/home/test/usr/apache2.1" -D SUEXEC_BIN="/home/test/usr/apache2.1/bin/suexec" -D DEFAULT_PIDLOG="/home/test/var/run/httpd.pid" -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" -D DEFAULT_LOCKFILE="/home/test/var/run/accept.lock" -D DEFAULT_ERRORLOG="logs/error_log" -D AP_TYPES_CONFIG_FILE="/home/test/httpd/2.1/conf/mime.types" -D SERVER_CONFIG_FILE="/home/test/httpd/2.1/conf/httpd.conf" Perl, kernel, compiler: *** /home/test/perl/5.8.3-ithread/bin/perl -V Summary of my perl5 (revision 5.0 version 8 subversion 3) configuration: Platform: osname=linux, osvers=2.6.5-rc2, archname=i686-linux-thread-multi uname='linux cathy.beaucox.com 2.6.5-rc2 #1 sat mar 20 21:48:51 hst 2004 i686 unknown unknown gnulinux ' config_args='-Dprefix=/home/test/perl/5.8.3-ithread -d -e -Dusethreads -Duseshrplib -Doptimize=-g' 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='cc', 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', optimize='-g', cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include' ccversion='', gccversion='3.3.3', 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='cc', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib libs=-lnsl -ldb -ldl -lm -lcrypt -lutil -lpthread -lc perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc 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,/home/test/perl/5.8.3-ithread/lib/5.8.3/i686-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 Built under linux Compiled at Mar 31 2004 13:29:53 %ENV: PERL_LWP_USE_HTTP_10="1" @INC: /home/test/perl/5.8.3-ithread/lib/5.8.3/i686-linux-thread-multi /home/test/perl/5.8.3-ithread/lib/5.8.3 /home/test/perl/5.8.3-ithread/lib/site_perl/5.8.3/i686-linux-thread-multi /home/test/perl/5.8.3-ithread/lib/site_perl/5.8.3 /home/test/perl/5.8.3-ithread/lib/site_perl . *** Packages of interest status: Apache::Request: 2.03-dev CGI : 3.01 LWP : 5.76 mod_perl : 1.9914 Aloha => Beau; -- 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