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

[perl #91032] Invalid free in t/op/write.t

Thread Previous | Thread Next
From:
karl williamson
Date:
May 18, 2011 13:49
Subject:
[perl #91032] Invalid free in t/op/write.t
Message ID:
rt-3.6.HEAD-32285-1305751763-1416.91032-75-0@perl.org
# New Ticket Created by  karl williamson 
# Please include the string:  [perl #91032]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=91032 >



This is a bug report for perl from khw@karl.(none),
generated with the help of perlbug 1.39 running under perl 5.15.0.


-----------------------------------------------------------------
This is reproducible.

not ok 326 # TODO [ID 20020227.005] format bug with undefined _TOP
# Failed at op/write.t line 603
#      got "-257"
# expected "9"
ok 327
ok 328 - glob assign
ok 329 - write to duplicated format
ok 330 - \#64562 - Segmentation fault with redefined formats and warnings
*** glibc detected *** /home/khw/perl/blead/perl: free(): invalid 
pointer: 0x08c04d70 ***
======= Backtrace: =========
/lib/libc.so.6(+0x6c501)[0xb7555501]
/lib/libc.so.6(+0x6dd70)[0xb7556d70]
/lib/libc.so.6(cfree+0x6d)[0xb7559e5d]
/home/khw/perl/blead/perl(Perl_safesysfree+0x163)[0x816867b]
/home/khw/perl/blead/perl(perl_free+0xcb)[0x808cd29]
/home/khw/perl/blead/perl(main+0x16f)[0x805d253]
/lib/libc.so.6(__libc_start_main+0xe7)[0xb74ffce7]
/home/khw/perl/blead/perl[0x805d051]
======= Memory map: ========
08048000-0847f000 r-xp 00000000 08:09 4209945    /home/khw/perl/blead/perl
0847f000-08480000 r--p 00436000 08:09 4209945    /home/khw/perl/blead/perl
08480000-08482000 rw-p 00437000 08:09 4209945    /home/khw/perl/blead/perl
08be4000-08c47000 rw-p 00000000 00:00 0          [heap]
b7100000-b7121000 rw-p 00000000 00:00 0
b7121000-b7200000 ---p 00000000 00:00 0
b72bc000-b72d6000 r-xp 00000000 08:05 407279     /lib/libgcc_s.so.1
b72d6000-b72d7000 r--p 00019000 08:05 407279     /lib/libgcc_s.so.1
b72d7000-b72d8000 rw-p 0001a000 08:05 407279     /lib/libgcc_s.so.1
b72e7000-b74e7000 r--p 00000000 08:07 131867 
/usr/lib/locale/locale-archive
b74e7000-b74e9000 rw-p 00000000 00:00 0
b74e9000-b7640000 r-xp 00000000 08:05 407505     /lib/libc-2.12.1.so
b7640000-b7642000 r--p 00157000 08:05 407505     /lib/libc-2.12.1.so
b7642000-b7643000 rw-p 00159000 08:05 407505     /lib/libc-2.12.1.so
b7643000-b7646000 rw-p 00000000 00:00 0
b7646000-b765b000 r-xp 00000000 08:05 407519     /lib/libpthread-2.12.1.so
b765b000-b765c000 ---p 00015000 08:05 407519     /lib/libpthread-2.12.1.so
b765c000-b765d000 r--p 00015000 08:05 407519     /lib/libpthread-2.12.1.so
b765d000-b765e000 rw-p 00016000 08:05 407519     /lib/libpthread-2.12.1.so
b765e000-b7660000 rw-p 00000000 00:00 0
b7660000-b7662000 r-xp 00000000 08:05 407524     /lib/libutil-2.12.1.so
b7662000-b7663000 r--p 00001000 08:05 407524     /lib/libutil-2.12.1.so
b7663000-b7664000 rw-p 00002000 08:05 407524     /lib/libutil-2.12.1.so
b7664000-b766d000 r-xp 00000000 08:05 407507     /lib/libcrypt-2.12.1.so
b766d000-b766e000 r--p 00008000 08:05 407507     /lib/libcrypt-2.12.1.so
b766e000-b766f000 rw-p 00009000 08:05 407507     /lib/libcrypt-2.12.1.so
b766f000-b7696000 rw-p 00000000 00:00 0
b7696000-b76ba000 r-xp 00000000 08:05 407509     /lib/libm-2.12.1.so
b76ba000-b76bb000 r--p 00023000 08:05 407509     /lib/libm-2.12.1.so
b76bb000-b76bc000 rw-p 00024000 08:05 407509     /lib/libm-2.12.1.so
b76bc000-b76bd000 rw-p 00000000 00:00 0
b76bd000-b76bf000 r-xp 00000000 08:05 407508     /lib/libdl-2.12.1.so
b76bf000-b76c0000 r--p 00001000 08:05 407508     /lib/libdl-2.12.1.so
b76c0000-b76c1000 rw-p 00002000 08:05 407508     /lib/libdl-2.12.1.so
b76c1000-b76d4000 r-xp 00000000 08:05 407511     /lib/libnsl-2.12.1.so
b76d4000-b76d5000 r--p 00012000 08:05 407511     /lib/libnsl-2.12.1.so
b76d5000-b76d6000 rw-p 00013000 08:05 407511     /lib/libnsl-2.12.1.so
b76d6000-b76d8000 rw-p 00000000 00:00 0
b76e6000-b76e7000 r--p 002a1000 08:07 131867 
/usr/lib/locale/locale-archive
b76e7000-b76e9000 rw-p 00000000 00:00 0
b76e9000-b76ea000 r-xp 00000000 00:00 0          [vdso]
b76ea000-b7706000 r-xp 00000000 08:05 407502     /lib/ld-2.12.1.so
b7706000-b7707000 r--p 0001b000 08:05 407502     /lib/ld-2.12.1.so
b7707000-b7708000 rw-p 0001c000 08:05 407502     /lib/ld-2.12.1.so
bff57000-bff78000 rw-p 00000000 00:00 0          [stack]
not ok 331 - \#79532 - formline coerces its arguments
# Failed at ./test.pl line 828
#      got ">ARRAY<\ncrunch_eth\nAborted"
# expected ">ARRAY<\ncrunch_eth"
# PROG:
# use strict;
# use warnings;
# my $zamm = ['crunch_eth'];
# formline $zamm;
# printf ">%s<\n", ref $zamm;
# print "$zamm->[0]\n";
# STATUS: 34304
ok 332 - open
ok 333
ok 334
ok 335
ok 336


-----------------------------------------------------------------
---
Flags:
     category=core
     severity=high
---
Site configuration information for perl 5.15.0:

Configured by khw at Wed May 18 13:24:20 MDT 2011.

Summary of my perl5 (revision 5 version 15 subversion 0) configuration:
   Commit id: 10914c783fe2ea3ee73a870599f30cedb7de96d0
   Platform:
     osname=linux, osvers=2.6.35-28-generic-pae, 
archname=i686-linux-thread-multi-64int-ld
     uname='linux karl 2.6.35-28-generic-pae #50-ubuntu smp fri mar 18 
20:43:15 utc 2011 i686 gnulinux '
     config_args='-des -Dprefix=/home/khw/blead -Dusedevel 
-D'optimize=-ggdb3' -A'optimize=-ggdb3' -A'optimize=-O0' -Dman1dir=none 
-Dman3dir=none -DDEBUGGING -Dusemorebits -Dusethreads'
     hint=recommended, useposix=true, d_sigaction=define
     useithreads=define, usemultiplicity=define
     useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
     use64bitint=define, use64bitall=undef, uselongdouble=define
     usemymalloc=n, bincompat5005=undef
   Compiler:
     cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING 
-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
     optimize='-O0 -ggdb3',
     cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING 
-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
     ccversion='', gccversion='4.4.5', gccosandvers=''
     intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678
     d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
     ivtype='long long', ivsize=8, nvtype='long double', nvsize=12, 
Off_t='off_t', lseeksize=8
     alignbytes=4, prototype=define
   Linker and Libraries:
     ld='cc', ldflags =' -fstack-protector -L/usr/local/lib'
     libpth=/usr/local/lib /lib/../lib /usr/lib/../lib /lib /usr/lib 
/usr/lib/i686-linux-gnu
     libs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
     perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
     libc=/lib/libc-2.12.1.so, so=so, useshrplib=false, libperl=libperl.a
     gnulibc_version='2.12.1'
   Dynamic Linking:
     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
     cccdlflags='-fPIC', lddlflags='-shared -ggdb3 -ggdb3 -O0 
-L/usr/local/lib -fstack-protector'

Locally applied patches:


---
@INC for perl 5.15.0:
 
/home/khw/blead/lib/perl5/site_perl/5.15.0/i686-linux-thread-multi-64int-ld
     /home/khw/blead/lib/perl5/site_perl/5.15.0
     /home/khw/blead/lib/perl5/5.15.0/i686-linux-thread-multi-64int-ld
     /home/khw/blead/lib/perl5/5.15.0
     /home/khw/blead/lib/perl5/site_perl
     .

---
Environment for perl 5.15.0:
     HOME=/home/khw
     LANG=en_US.UTF-8
     LANGUAGE=en_US:en
     LD_LIBRARY_PATH (unset)
     LOGDIR (unset)
 
PATH=/home/khw/bin:/home/khw/print/bin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/usr/games:/home/khw/cxoffice/bin
     PERL5OPT=-w
     PERL_BADLANG (unset)
     SHELL=/bin/ksh


Thread Previous | 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