develooper Front page | perl.perl5.porters | Postings from April 2008

[perl #52386] Attempt to free temp prematurely (perl 5.8.8)

Thread Previous | Thread Next
From:
Frank v Waveren
Date:
April 1, 2008 16:42
Subject:
[perl #52386] Attempt to free temp prematurely (perl 5.8.8)
Message ID:
rt-3.6.HEAD-25460-1207090848-290.52386-75-0@perl.org
# New Ticket Created by  Frank v Waveren 
# Please include the string:  [perl #52386]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=52386 >


This is a bug report for perl from fvw@var.cx,
generated with the help of perlbug 1.35 running under perl v5.8.8.


-----------------------------------------------------------------
[Please enter your report here]

[gbc1-dev-01:/home/fvw] perl -e  'for (1)  { my @x=(1);  map {die }  @x; }'
Died at -e line 1.
Attempt to free temp prematurely: SV 0x8166d6c, Perl interpreter: 0x8166008.
Attempt to free unreferenced scalar: SV 0x8166d6c, Perl interpreter: 0x8166008.

In this case the loop iterator gets made mortal in Perl_dounwind, but then
its refcount drops to zero before the freetmp.

This doesn't happen on 5.10.0, but I'm not sure if that's due to a fix
or just because of the other sv changes.


[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=core
    severity=low
---
Site configuration information for perl v5.8.8:

Configured by fvw at Fri Mar 28 16:16:29 GMT 2008.

Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
  Platform:
    osname=linux, osvers=2.6.16.46-0.12-bigsmp, archname=i686-linux
    uname='linux gbc1-dev-01 2.6.16.46-0.12-bigsmp #1 smp thu may 17 14:00:09 utc 2007 i686 i686 i386 gnulinux '
    config_args=''
    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
  Compiler:
    cc='cc', ccflags ='-DDEBUGGING -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-g',
    cppflags='-DDEBUGGING -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include'
    ccversion='', gccversion='4.1.2 20070115 (prerelease) (SUSE Linux)', 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 -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
    libc=/lib/libc-2.4.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.4'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'

Locally applied patches:


---
@INC for perl v5.8.8:
    /home/fvw/perl5.8/lib/5.8.8/i686-linux
    /home/fvw/perl5.8/lib/5.8.8
    /home/fvw/perl5.8/lib/site_perl/5.8.8/i686-linux
    /home/fvw/perl5.8/lib/site_perl/5.8.8
    /home/fvw/perl5.8/lib/site_perl
    .

---
Environment for perl v5.8.8:
    HOME=/home/fvw
    LANG=en_GB.UTF-8
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/home/fvw/bin:/usr/bin
    PERL_BADLANG (unset)
    SHELL=/usr/bin/zsh


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