Re: [ID 20000928.004] mysterious extra refcount in debugger
by Andrew Pimlott other posts by this author
Sep 29 2000 9:30PM messages near this date
[ID 20000928.004] mysterious extra refcount in debugger
|
SuSE's gcc-2.95.2 and //depot/perl
In case a slightly more compact test case will help:
package Foo;
sub new {
my $self = {};
&{ sub { $self } }; # This is the culprit; no idea why
return bless $self => 'Foo';
}
sub DESTROY { warn "destroying\n"; }
package main;
{ my $foo = new Foo; }
warn "one down\n";
In case you don't have the last message, compare output in and out
of the debugger to see the bug in 5.005_03.
Andrew
Thread:
Andrew Pimlott
Andrew Pimlott
|