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

[perl #24383] Problem with iThreads, and perl 5.8.1 & 5.8.2 RC1, with hashes

Thread Next
From:
Al Tobey
Date:
December 23, 2003 15:20
Subject:
[perl #24383] Problem with iThreads, and perl 5.8.1 & 5.8.2 RC1, with hashes
Message ID:
1072220032.1675.204.camel@linuxws1.internal.priority-health.com
Subject is from this thread I found on google:
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&th=5f61fd7e8929bab9&rnum=4

Test script is attached or see http://www.tobert.org/tmp/test.txt. 
Comment out the "Timeout" option for IO::Socket and the problem goes
away.  perl 5.8.2 (custom build) gives the following output:

tobeya@localhost> perl test.pl
...
Unbalanced string table refcount: (3) for "IO::Select" during global destruction.
Attempt to free non-existent shared string 'IO::Select' during global destruction.
Attempt to free non-existent shared string 'IO::Select' during global destruction.
Attempt to free non-existent shared string 'IO::Select' during global destruction.

I'll test patches if there are any.  I'm not subscribe to p5p, so please
CC me.

OS is Red Hat Linux Advanced Workstation 3.0 running a 2.6.0-test6
kernel and glibc-2.3.2-95.6.  Red Hat's perl 5.8.1 on the same box also
crashes with the same error.  Also shows up on RH Enterprise Server with
a RH kernel and my perl 5.8.2 build, but not with the RH 5.8.0 rpm. 
Does not show up on my Red Hat 7.3 box with perl 5.8.0.

I suspect it's something introduced in 5.8.[12] and may be related to
differences between LinuxThreads and NPTL.

-Al Tobey
-------------------------------

perl -V

Summary of my perl5 (revision 5.0 version 8 subversion 2) configuration:
  Platform:
    osname=linux, osvers=2.4.21-4.0.1.elsmp, archname=i686-linux-thread-multi
    uname='linux loach 2.4.21-4.0.1.elsmp #1 smp thu oct 23 01:27:36 edt 2003 i686 i686 i386 gnulinux '
    config_args='-der'
    hint=previous, 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 -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O3',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -I/usr/local/include -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
    ccversion='', gccversion='3.2.3 20030502 (Red Hat Linux 3.2.3-20)', 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 -ldl -lm -lcrypt -lutil -lpthread -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    libc=/lib/libc-2.3.2.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.3.2'
  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: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
  Built under linux
  Compiled at Dec  5 2003 12:38:28
  @INC:
    /opt/perl-5.8.2/lib/5.8.2/i686-linux-thread-multi
    /opt/perl-5.8.2/lib/5.8.2
    /opt/perl-5.8.2/lib/site_perl/5.8.2/i686-linux-thread-multi
    /opt/perl-5.8.2/lib/site_perl/5.8.2
    /opt/perl-5.8.2/lib/site_perl
    .

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