Oh sorry, I missed the fork vs thread. So no shared data.
In reply to Re^3: Debugging DESTROY calls in forking application by bliako in thread Debugging DESTROY calls in forking application by cavac