develooper Front page | perl.perl5.porters | Postings from May 2007

[perl #43072] Bleedperl CPAN broken with wrong pool realloc panic

From:
root @ net1 . coolsurf . com
Date:
May 29, 2007 23:51
Subject:
[perl #43072] Bleedperl CPAN broken with wrong pool realloc panic
Message ID:
rt-3.6.HEAD-1668-1180482787-370.43072-75-0@perl.org
# New Ticket Created by  root@net1.coolsurf.com 
# Please include the string:  [perl #43072]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=43072 >



This is a bug report for perl from david@davidfavor.com,
generated with the help of perlbug 1.35 running under perl 5.9.5.


-----------------------------------------------------------------
[Please enter your report here]
Build done on latest Fedora 6 with all current patches installed.

Problem exhibits when build with Fedora rpm 4.1.1 or local built gcc 4.2.0.

Perl patches pulled this morning result in the following:

[root@net1 ~]# perl -MCPAN -e shell
CPAN: File::HomeDir loaded ok (v0.65)

cpan shell -- CPAN exploration and modules installation (v1.9102)
ReadLine support enabled

cpan[1]> r
CPAN: Storable loaded ok (v2.16)
Going to read /root/.cpan/Metadata
  Database was generated on Sun, 27 May 2007 22:55:10 GMT
CPAN: LWP::UserAgent loaded ok (v2.033)
Catching error: 'panic: realloc from wrong pool at /usr/local/pkgs/perl-5.9.5/lib/5.9.5/CPAN.pm line 3721.
' at /usr/local/pkgs/perl-5.9.5/lib/5.9.5/CPAN.pm line 274
        CPAN::shell() called at -e line 1

cpan[2]> 

This build of perl passes all test cases, so in addition to fix there should
probably also be a testcase added to catch this problem.


[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=core
    severity=critical
---
Site configuration information for perl 5.9.5:

Configured by root at Tue May 29 18:26:39 CDT 2007.

Summary of my perl5 (revision 5 version 9 subversion 5 patch 31308) configuration:
  Platform:
    osname=linux, osvers=2.6.20-1.2948.fc6, archname=i686-linux-thread-multi
    uname='linux net1.coolsurf.com 2.6.20-1.2948.fc6 #1 smp fri apr 27 19:48:40 edt 2007 i686 i686 i386 gnulinux '
    config_args='-Dprefix=/usr/local/pkgs/perl-5.9.5 -ders -Dusedevel -Doptimize=-pipe -O2 -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -Duseshrplib -Dusethreads -Duseithreads -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Dloclibpth=/usr/local/lib -Dlocincpth=/usr/local/include -Dotherlibdirs=/tools/pmlib:/usr/local/pmlib -DDEBUGGING -Ui_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio -Dinstallusrbinperl=n -Ubincompat5005 -Uversiononly -Dpager=/usr/bin/less -Dd_gethostent_r_proto -Ud_endhostent_r_proto -Ud_sethostent_r_proto -Ud_endprotoent_r_proto -Ud_setprotoent_r_proto -Ud_endservent_r_proto -Ud_setservent_r_proto'
    hint=recommended, useposix=true, d_sigaction=define
    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 -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
    optimize='-pipe -O2 -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -g',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -I/usr/include/gdbm'
    ccversion='', gccversion='4.1.1 20070105 (Red Hat 4.1.1-51)', 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 -lpthread -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    libc=/lib/libc-2.5.so, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version='2.5'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-rpath,/usr/local/pkgs/perl-5.9.5/lib/5.9.5/i686-linux-thread-multi/CORE'
    cccdlflags='-fPIC', lddlflags='-shared -pipe -O2 -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -g -L/usr/local/lib'

Locally applied patches:
    DEVEL

---
@INC for perl 5.9.5:
    /usr/local/pkgs/perl-5.9.5/lib/5.9.5/i686-linux-thread-multi
    /usr/local/pkgs/perl-5.9.5/lib/5.9.5
    /usr/local/pkgs/perl-5.9.5/lib/site_perl/5.9.5/i686-linux-thread-multi
    /usr/local/pkgs/perl-5.9.5/lib/site_perl/5.9.5
    /tools/pmlib
    /usr/local/pmlib
    .

---
Environment for perl 5.9.5:
    HOME=/root
    LANG=C
    LANGUAGE (unset)
    LC_ALL=C
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/ccache:/tools/sbin:/usr/libexec:/home/vpopmail/bin:/var/qmail/bin:/tools/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
    PERL_BADLANG (unset)
    SHELL=/bin/bash




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