develooper Front page | perl.perl5.porters | Postings from September 2003

maint@21116 random failures of the ithreads test in mod_perl 2

Thread Next
From:
Stas Bekman
Date:
September 10, 2003 20:00
Subject:
maint@21116 random failures of the ithreads test in mod_perl 2
Message ID:
3F5FE528.9010905@stason.org
It's quite possible that the problem existed before 20974, since the failures 
are random, but most likely this is a result of last week's changes.

Attempt to free temp prematurely: SV 0x9616118 at
         /home/stas/apache.org/portland3/t/response/TestPerl/ithreads.pm line 
44 (#2)
Uncaught exception from user code:
         Attempt to free temp prematurely: SV 0x9616118 at 
/home/stas/apache.org/portland3/t/response/TestPerl/ithreads.pm line 44.

here is the relevant code:

41:        my $thr = threads->new(sub {
41:                                   my $tid = threads->self->tid;
42:                                   debug "2nd TID is $tid" if defined $tid;
43:                                   return 2;
44:                               });
45:        ok t_cmp(2, $thr->join, "thread callback returned value");

Does it ring any bells?

Again, this happens at random when running mod_perl 2.0's perl/ithreads test, 
so don't try to verify the standalone code...

Summary of my perl5 (revision 5.0 version 8 subversion 1) configuration:
   Platform:
     osname=linux, osvers=2.4.21-0.18mdkcustom, archname=i686-linux
     uname='linux rabbit.stason.org 2.4.21-0.18mdkcustom #6 mon jun 16 
16:26:34 est 2003 i686 unknown unknown gnulinux '
     config_args='-des -Dprefix=/home/stas/perl/5.8.1 -Doptimize=-g 
-Duseshrplib -Dusedevel'
     hint=recommended, useposix=true, d_sigaction=define
     usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
     useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
     use64bitint=undef use64bitall=undef uselongdouble=undef
     usemymalloc=n, bincompat5005=undef
   Compiler:
     cc='cc', ccflags ='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
     optimize='-g',
     cppflags='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include 
-I/usr/include/gdbm'
     ccversion='', gccversion='3.3.1 (Mandrake Linux 9.2 3.3.1-1mdk)', 
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 -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
     perllibs=-lnsl -ldl -lm -lcrypt -lutil -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/stas/perl/5.8.1/lib/5.8.1/i686-linux/CORE'
     cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
   Compile-time options: DEBUGGING USE_LARGE_FILES
   Locally applied patches:
         MAINT21115
   Built under linux
   Compiled at Sep  8 2003 22:02:31
   %ENV:
     PERLDOC_PAGER="less -R"
   @INC:
     /home/stas/perl/5.8.1/lib/5.8.1/i686-linux
     /home/stas/perl/5.8.1/lib/5.8.1
     /home/stas/perl/5.8.1/lib/site_perl/5.8.1/i686-linux
     /home/stas/perl/5.8.1/lib/site_perl/5.8.1
     /home/stas/perl/5.8.1/lib/site_perl
     .

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About