New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Double DESTROY when object goes away #7340
Comments
From perl-5.8.0@ton.iguana.beCreated by perl-5.8.0@ton.iguana.be#!/usr/bin/perl -w sub DESTROY { $server->{foo} = bless []; my @bar; This will output: Notice how the object is destroyed twice. The @bar stuff afterward is just Also fun is: sub DESTROY { $server->{foo} = bless []; which goes into deep recursion (and then cores) Perl Info
|
From @iabynOn Sun, Jun 06, 2004 at 02:27:34AM -0000, perl-5. 8. 0 @ ton. iguana. be wrote:
Fixed by the change below. Dave. -- Change 22913 by davem@davem-splatty on 2004/06/08 22:20:40 [perl #30061] double DESTROY in for loop Affected files ... ... //depot/perl/pp_hot.c#354 edit Differences ... ==== //depot/perl/pp_hot.c#354 (text) ==== @@ -1824,7 +1824,7 @@ @@ -1852,8 +1852,9 @@ - SvREFCNT_dec(*itersvp); + oldsv = *itersvp; ==== //depot/perl/t/cmd/for.t#10 (xtext) ==== @@ -1,6 +1,6 @@ -print "1..13\n"; for ($i = 0; $i <= 10; $i++) { |
The RT System itself - Status changed from 'new' to 'open' |
@iabyn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#30061 (status was 'resolved')
Searchable as RT30061$
The text was updated successfully, but these errors were encountered: