List Info

Thread: Re: foreach (0) { map { x() } 0 } causes attempt to free unreferenced scalar




Re: foreach (0) { map { x() } 0 } causes attempt to free unreferenced scalar
user name
2007-09-19 20:57:01
>>>>> On Wed, 19 Sep 2007 21:07:27 -0400,
"Jerry D. Hedden" <jdheddencpan.org> said:

 >> This one-liner causes perl to spit out an internal
error message.
 >> 
 >> C:>perl -e "foreach (0) { map { x() } 0
}"
 >> Undefined subroutine &main:
called at -e line 1.
 >> Attempt to free unreferenced scalar: SV
0x10033f4c, Perl interpreter: 0x10015898.

  > Under blead, it does not report the "Attempt to
free
  > unreferenced scalar" error; just the
"Undefined subroutine"
  > error.

And maint-5.8 (which will lead to 5.8.9 eventually) has it
also fixed.

For the curious, it was fixed somewhere between 25981 and
26067.

-- 
andreas

Re: foreach (0) { map { x() } 0 } causes attempt to free unreferenced scalar
user name
2007-09-19 21:20:31
On Sep 20 2007, Andreas J. Koenig wrote:
> For the curious, it was fixed somewhere between 25981
and 26067.

Almost certainly 26027.

[ 26027] By: rgs                                   on
2005/11/07 09:58:26
        Log: Subject: [perl #24254] Attempt to free
unreferenced scalar
             From: "Chris Heath via RT"
<perlbug-followupperl.org>
             Date: Sun, 06 Nov 2005 20:08:05 -0800
             Message-ID:
<rt-3.0.11-24254-123984.4.44134155985068perl.org>
     Branch: perl
       ! cop.h

Always curious,

-- 
Rick Delaney
rickbort.ca

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )