Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: sub DESTROY: Strange ordering of object destruction

by moritz (Cardinal)
on Mar 03, 2011 at 09:18 UTC ( [id://891179]=note: print w/replies, xml ) Need Help??


in reply to sub DESTROY: Strange ordering of object destruction (SOLVED)

Some things to try:

  • Try it on a different Perl version (App::perlbrew to the rescue)
  • Compare reference counts with Devel::Peek before either object is destroyed
  • Print out the references of A and B. Maybe the A you're seeing that should be holding a reference to B is really a near-duplicate of the object you think you are looking at?
  • Try to isolate the code that shows the behavior, and show it here. (It doesn't need to be simplified actually)
  • See if there is "nonlinear" control flow in program somewhere that might change things (signal handlers come to mind, threads or coroutines)
  • Comment on Re: sub DESTROY: Strange ordering of object destruction

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://891179]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-04-25 12:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found