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

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

Thread Next
Stas Bekman
September 10, 2003 20:00
maint@21116 random failures of the ithreads test in mod_perl 2
Message ID:
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/ line 
44 (#2)
Uncaught exception from user code:
         Attempt to free temp prematurely: SV 0x9616118 at 
/home/stas/ 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:
     osname=linux, osvers=2.4.21-0.18mdkcustom, archname=i686-linux
     uname='linux 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
     cc='cc', ccflags ='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
     cppflags='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include 
     ccversion='', gccversion='3.3.1 (Mandrake Linux 9.2 3.3.1-1mdk)', 
     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', 
     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/, so=so, useshrplib=true,
   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: DEBUGGING USE_LARGE_FILES
   Locally applied patches:
   Built under linux
   Compiled at Sep  8 2003 22:02:31
     PERLDOC_PAGER="less -R"

Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker     mod_perl Guide --->

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About