develooper Front page | perl.perl5.porters | Postings from September 1999

Re: [BUG 5.005_03] Data::Dumper underrefs

Thread Previous
From:
Gurusamy Sarathy
Date:
September 25, 1999 00:06
Subject:
Re: [BUG 5.005_03] Data::Dumper underrefs
Message ID:
199909250711.AAA09578@activestate.com
On Sat, 25 Sep 1999 06:07:38 BST, Hugo wrote:
>crypt% perl -MData::Dumper -we '$self = bless {}; $self->{a} = []; $self->{a}[1] = 0; $s
>elf->{b} = $self; Dumper($self)'
>Attempt to free unreferenced scalar during global destruction.
>crypt% 
>
>Cannot reproduce with _61 but I'm not sure whether the bug has been fixed
>in perl or in Data::Dumper, so I thought it was worth a mention.

It was fixed by this:

  [  3270] By: gsar                                  on 1999/04/25  22:58:27
          Log: fix buggy reference count on refs to SVs with autoviv magic
               (resulted in C<my @a; $a[1] = 1; print \$_ for @a> and Data::Dumper
               accessing free()d memory)
       Branch: perl
             ! pp.c t/op/ref.t


Sarathy
gsar@activestate.com

Thread Previous


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