Front page | perl.perl5.porters |
Postings from November 2003
[perl #24383] Problem with iThreads, and perl 5.8.1 & 5.8.2 RC1, with hashes
From:
perlbug-followup
Date:
November 1, 2003 09:06
Subject:
[perl #24383] Problem with iThreads, and perl 5.8.1 & 5.8.2 RC1, with hashes
Message ID:
rt-24383-66900.1.45563521454811@rt.perl.org
# New Ticket Created by will@rrtrain.ath.cx
# Please include the string: [perl #24383]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=24383 >
This is a bug report for perl from will@rrtrain.ath.cx,
generated with the help of perlbug 1.34 running under perl v5.8.2.
-----------------------------------------------------------------
[Please enter your report here]
Using Perl versions 5.8.1 or 5.8.2, compiled with iThreads
I have a custom module that returns a hash. It is called from
within a thread. When done under 5.8.1 or 5.8.2 it returns the
following errors (which did not occur with 5.8.0):
Unbalanced string table refcount: (3) for "IO::Select" during global destruction.
Unbalanced string table refcount: (3) for "Socket" during global destruction.
Attempt to free non-existent shared string 'IO::Select' during global destruction.
Attempt to free non-existent shared string 'Socket' during global destruction.
Attempt to free non-existent shared string 'IO::Select' during global destruction.
Attempt to free non-existent shared string 'Socket' during global destruction.
Attempt to free non-existent shared string 'IO::Select' during global destruction.
Attempt to free non-existent shared string 'Socket' during global destruction.
This does not occur if the module is not called from a thread.
I followed the thread at
http://lists.debian.org/debian-perl/2003/debian-perl-200310/msg00020.html
which lead me to attempt to set PERL_HASH_SEED=0, but the issue still exists.
This issue is of high severity for me as it causes mod_perl to segfault.
Here is my perl configuration:
Summary of my perl5 (revision 5.0 version 8 subversion 2) configuration:
Platform:
osname=linux, osvers=2.4.21-0.13mdk, archname=i686-linux-thread-multi
uname='linux rrtrain.ath.cx 2.4.21-0.13mdk #1 fri mar 14 15:08:06 est 2003 i686 unknown unknown gnulinux '
config_args=''
hint=previous, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=undef usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-DNO_HASH_SEED',
optimize='-O3',
cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -I/usr/local/include -DNO_HASH_SEED'
ccversion='', gccversion='3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk)', 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=4
alignbytes=4, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lgdbm -ldl -lm -lcrypt -lutil -lpthread -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
libc=/lib/libc-2.3.1.so, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version='2.3.1'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic -Wl,-rpath,/usr/lib/perl5/5.8.2/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 PERL_IMPLICIT_CONTEXT
Locally applied patches:
RC1
Built under linux
Compiled at Oct 31 2003 21:48:24
@INC:
/usr/lib/perl5/5.8.2/i686-linux-thread-multi
/usr/lib/perl5/5.8.2
/usr/lib/perl5/site_perl/5.8.2/i686-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.2
/usr/lib/perl5/site_perl
.
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=core
severity=medium
---
Site configuration information for perl v5.8.2:
Configured by will at Fri Oct 31 20:49:18 CST 2003.
Summary of my perl5 (revision 5.0 version 8 subversion 2) configuration:
Platform:
osname=linux, osvers=2.4.21-0.13mdk, archname=i686-linux-thread-multi
uname='linux rrtrain.ath.cx 2.4.21-0.13mdk #1 fri mar 14 15:08:06 est 2003 i686 unknown unknown gnulinux '
config_args=''
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=undef 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',
optimize='-O3',
cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -I/usr/local/include'
ccversion='', gccversion='3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk)', 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=4
alignbytes=4, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lgdbm -ldl -lm -lcrypt -lutil -lpthread -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
libc=/lib/libc-2.3.1.so, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version='2.3.1'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic -Wl,-rpath,/usr/lib/perl5/5.8.2/i686-linux-thread-multi/CORE'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
Locally applied patches:
RC1
---
@INC for perl v5.8.2:
/usr/lib/perl5/5.8.2/i686-linux-thread-multi
/usr/lib/perl5/5.8.2
/usr/lib/perl5/site_perl/5.8.2/i686-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.2
/usr/lib/perl5/site_perl
.
---
Environment for perl v5.8.2:
HOME=/root
LANG=en_US
LANGUAGE=en_US:en
LC_ADDRESS=en_US
LC_COLLATE=en_US
LC_CTYPE=en_US
LC_IDENTIFICATION=en_US
LC_MEASUREMENT=en_US
LC_MESSAGES=en_US
LC_MONETARY=en_US
LC_NAME=en_US
LC_NUMERIC=en_US
LC_PAPER=en_US
LC_TELEPHONE=en_US
LC_TIME=en_US
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin
PERL_BADLANG (unset)
SHELL=/bin/bash