in reply to Re^2: Is this absurd, or have I not RTFM?
in thread Is this absurd, or have I not RTFM?
/me nods ...
Yes, and therefore, the anomaly that stands out to me in the OP is this:
======= BEGIN DESTROY:9980======== ======= BEGIN DESTROY:9980======== ============ END DESTROY:9980======== ======= BEGIN DESTROY:9979======== ============ END DESTROY:9979========
Now, this might not be complete, so there might well be more to it than is shown and maybe this pattern is not repeatable. We would need to see the entire display and maybe several instances of it to see if it is basically a timing-artifact. But I believe that I saw the same basic behavior in other follow-ups to this thread also. The first BEGIN for pid #9980 is not followed by an END ... ever. It’s followed by another BEGIN, which is followed by END, as is the display for the second pid #9979. (I do not presume which one of these is actually the child and which one is the parent ... PID-assignments are assumed-random.)
In the complete display, I expect that the BEGIN and END calls should be evenly matched, regardless of the exact order in which they occur. If they are not, then I no longer accept the premise that “the destructor is ‘being called twice.’” (Lemma: If it is called twice, then it should end twice. Destructors are nothing more than de-initialization subroutines. They should run to completion.) If they do not, then perhaps a runtime error is being thrown that we cannot see here. I am sensitive to the Red-Herring Effect here . . . I smell a fish. It would be very, very easy to mis-interpret what is being presented here. Yeah, I think that the presumption that there is something wrong with the destructor-system should well be called, for the moment at least, “absurd(ly improbable).” Sufficiently improbable to smell like seafood. So, what else might it be.
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Is this absurd, or have I not RTFM?
by morgon (Priest) on May 19, 2014 at 13:40 UTC | |
by petermogensen (Sexton) on May 19, 2014 at 13:48 UTC | |
|
Re^4: Is this absurd, or have I not RTFM?
by petermogensen (Sexton) on May 19, 2014 at 13:18 UTC | |
by salva (Canon) on May 19, 2014 at 15:29 UTC | |
by petermogensen (Sexton) on May 19, 2014 at 18:38 UTC | |
by ikegami (Patriarch) on May 20, 2014 at 16:33 UTC | |
by petermogensen (Sexton) on May 23, 2014 at 08:51 UTC |