Missing autoflushing may (as discussed else in this thread) explain why the "END DESTROY" line is not always printed. It doesn't explain the blow output of 2 different references being given to 2 calls to DESTROY in the same process though:
^C======= BEGIN DESTROY:11632======== 2014/05/19-10:36:43 Server closing! SV = IV(0x11ba5d8) at 0x11ba5e8 REFCNT = 1 FLAGS = (ROK,READONLY) RV = 0xe462b8 SV = PVHV(0xcf8880) at 0xe462b8 REFCNT = 1 FLAGS = (OBJECT,SHAREKEYS) STASH = 0xd10d40 "MyModule" ARRAY = 0x0 KEYS = 0 FILL = 0 MAX = 7 RITER = -1 EITER = 0x0 ======= BEGIN DESTROY:11632======== SV = IV(0x11ba4d0) at 0x11ba4e0 REFCNT = 1 FLAGS = (ROK,READONLY) RV = 0xe462b8 SV = PVHV(0xcf8880) at 0xe462b8 REFCNT = 1 FLAGS = (OBJECT,OOK,SHAREKEYS) STASH = 0xd10d40 "MyModule" ARRAY = 0xfa0e30 KEYS = 0 FILL = 0 MAX = 7 RITER = -1 EITER = 0x0 ============ END DESTROY:11632======== ======= BEGIN DESTROY:11631======== SV = IV(0xd103a0) at 0xd103b0 REFCNT = 1 FLAGS = (ROK,READONLY) RV = 0xe462b8 SV = PVHV(0xcf8880) at 0xe462b8 REFCNT = 1 FLAGS = (OBJECT,SHAREKEYS) STASH = 0xd10d40 "MyModule" ARRAY = 0x0 KEYS = 0 FILL = 0 MAX = 7 RITER = -1 EITER = 0x0 ============ END DESTROY:11631========
The actual Perl object is also slightly changed... in a way I don't find meaningful... but then... I don't know the perlguts that well. I would primarily suspect a memory corruption reason for trashing the data. But it would be strange if such a problem never gave other symptoms with Net::Server::Prefork.

In reply to Re^6: Is this absurd, or have I not RTFM? by petermogensen
in thread Is this absurd, or have I not RTFM? by petermogensen

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.