Am Donnerstag, 19. Februar 2004 09:51 schrieb Stas Bekman: > Boris Zentner wrote: > > Hi Stas, > > > > Am Dienstag, 17. Februar 2004 19:51 schrieb Stas Bekman: > >>>(gdb) bt > >>>#0 0x40135abe in find_entry (ht=0x80baeb0, key=0x406cf229, klen=14, > >>>val=0x0) at apr_hash.c:278 > >>>#1 0x40135c58 in apr_hash_get (ht=0x80baeb0, key=0x406cf229, klen=-1) > >>> at apr_hash.c:340 > >>>#2 0x40143d4d in apr_pool_userdata_get (data=0xbfffe858, > >>> key=0x406cf229 "APR::Pool::new", pool=0x2) at apr_pools.c:1879 > >> > >>the pool object is bogus. > >> > >>>#3 0x406ce7a8 in XS_APR__Pool_DESTROY () > >>> from > >>>/home/ptest2/lib/perl5/site_perl/5.8.1/i686-linux-thread-multi/auto/APR/ > >>>P ool/Pool.so #4 0x4042c3b9 in Perl_pp_goto () > >>> from > >>>/home/ptest2/lib/perl5/5.8.1/i686-linux-thread-multi/CORE/libperl.so #5 > >>> 0x403f803e in Perl_runops_standard () > >> > >>I've seen that one before. Can you show me a short code that I can > >>reproduce this with? > > > > Ok, here it is ( minimal and useless ): > > > > I use './t/TEST --start-httpd' the server. > > > > My ./t/conf/extra.last.conf.in: > > ######### START ########## > > <Perl > > > > > </Perl> > > > > <Location /> > > SetHandler perl-script > > PerlHandler +Foo > > </Location> > > ######### END ############ > > without the ### lines of course. Please note that the whitespace chars > > are important. If you write > > > > <Perl > > > </Perl> > > > > it works! ( Just a newline removed ) > > > > and Foo.pm > > ######### START ########## > > package Foo; > > use mod_perl 1.99; > > sub handler : method { > > my ( $class, $r ) = @_ ; > > return 200; > > } > > ######### END ############ > > OK, I've packaged your test case for you in self-contained test suite > (attached as it's a tiny file). >
thanks > % tar xvzf apr-destroy.tgs > % cd apr-destroy > % perl Makefile.PL -httpd ~/httpd/prefork/bin/httpd && t/TEST -start > Writing Makefile for bug-reporting-skeleton > setting ulimit to allow core files > ulimit -c unlimited; t/TEST -start > server localhost.localdomain:8529 shutdown > /home/stas/httpd/prefork/bin/httpd -d /tmp/apr-destroy/t -f > /tmp/apr-destroy/t/conf/httpd.conf -DAPACHE2 -DPERL_USEITHREADS > using Apache/2.0.49-dev (prefork MPM) > waiting 60 seconds for server to start: ok (waited 6 secs) > server localhost.localdomain:8529 started > > i.e. I can't reproduce your problem. Are you sure you are using the latest > cvs, did you run 'make install'?. There were quite a few changes in the > APR::Pool code over the last month. > Yes, Im sure. But for some reason It did not crash for me too. I investigate. > Try to run this test suite and see what you get. Here is what I used for > this test: > > % mp2bug here is my output from mp2bug. -------------8<---------- Start Bug Report ------------8<---------- 1. Problem Description: [DESCRIBE THE PROBLEM HERE] 2. Used Components and their Configuration: *** mod_perl version 1.9913 *** using /home/ptest2/lib/perl5/site_perl/5.8.1/i686-linux-thread-multi/Apache/BuildConfig.pm *** Makefile.PL options: MP_AP_PREFIX => /home/ptest2/httpd2 MP_COMPAT_1X => 1 MP_GENERATE_XS => 1 MP_LIBNAME => mod_perl MP_USE_DSO => 1 MP_USE_STATIC => 1 *** /home/ptest2/httpd2/bin/httpd -V Server version: Apache/2.0.47 Server built: Oct 13 2003 17:19:44 Server's Module Magic Number: 20020903:4 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="/home/ptest2/httpd2" -D SUEXEC_BIN="/home/ptest2/httpd2/bin/suexec" -D DEFAULT_PIDLOG="logs/httpd.pid" -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" -D DEFAULT_LOCKFILE="logs/accept.lock" -D DEFAULT_ERRORLOG="logs/error_log" -D AP_TYPES_CONFIG_FILE="conf/mime.types" -D SERVER_CONFIG_FILE="conf/httpd.conf" *** /home/ptest2/bin/perl -V Summary of my perl5 (revision 5.0 version 8 subversion 1) configuration: Platform: osname=linux, osvers=2.4.21-99-default, archname=i686-linux-thread-multi uname='linux foo 2.4.21-99-default #1 wed sep 24 13:30:51 utc 2003 i686 i686 i386 gnulinux ' config_args='-Dprefix=/home/ptest2 -Uversiononly -Dusethreads -Duseshrplib=true -Dusedevel' 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 -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O2', cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -I/usr/local/include' ccversion='', gccversion='3.3.1 (SuSE Linux)', 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=, 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/ptest2/lib/perl5/5.8.1/i686-linux-thread-multi/CORE' cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT Built under linux Compiled at Oct 13 2003 16:28:01 %ENV: PERL_LWP_USE_HTTP_10="1" @INC: /home/ptest2/lib/perl5/5.8.1/i686-linux-thread-multi /home/ptest2/lib/perl5/5.8.1 /home/ptest2/lib/perl5/site_perl/5.8.1/i686-linux-thread-multi /home/ptest2/lib/perl5/site_perl/5.8.1 /home/ptest2/lib/perl5/site_perl . *** Packages of interest status: Apache::Request: 2.02-dev CGI : 3.00 LWP : 5.69 mod_perl : 1.9913 3. This is the core dump trace: (if you get a core dump): [CORE TRACE COMES HERE] This report was generated by /home/ptest2/bin/mp2bug on Thu Feb 19 09:54:52 2004 GMT. [ your example removed ] -- Boris --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]