develooper Front page | perl.perl5.porters | Postings from March 2017

[perl #32714] Objects destroyed in the wrong order during globaldestruction

Thread Previous | Thread Next
From:
Nick Wellnhofer via RT
Date:
March 16, 2017 03:45
Subject:
[perl #32714] Objects destroyed in the wrong order during globaldestruction
Message ID:
rt-4.0.24-24791-1489494038-1719.32714-15-0@perl.org
On Tue, 14 Mar 2017 01:46:17 -0700, davem wrote:
> Can you provide a short, self-contained perl program which demonstrates
> the bug, and which would be fixed by why you propose above; just so that 
> we can be sure we're all discussing the same issue.

I already did so here:

    https://rt.perl.org/Ticket/Display.html?id=32714#txn-1453380

I would expect $our1->DESTROY to be run before $our2->DESTROY because $our1 holds a reference to $our2. But (at least with Perl 5.22.1), the DESTROY method is first invoked on $our2.




---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=32714

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