It would be helpful if you could share more details about how the parent and the child communicate. What does "This hash is then transacted back to the parent" mean? Could be some sort of unlocked shared data structure problem that only very, very rarely causes a problem. The problem is likely to be in the inter thread or inter process communication and a simple "breakpoint" that just shows you that things are screwed up at the moment may not be that helpful in figuring out how that happened in the first place. This does not sound a like a simple logic error.

Update: It is possible to install your own WARN signal handler. SIG handler hash and I have done so on a localized basis for certain unusual situations. If you do that, then you can dump out probably a bunch of state information about what was going on at the time that this occurred. This might give some clue of where to look? In the best case, this is a simple logic error which somehow causes the result to the parent to be undefined. More difficult is when there is a rare communications error. Sometimes only serious code inspection finds these things.

I remember one problem that actually lasted a couple of years. We knew from field reports that a particular error was happening but we couldn't find the cause. We ran hundreds of millions of test cases on lab machines and were never able to reproduce the problem. In a rather successful delaying tactic, we offered the field a $10K "bounty" if they could find a situation that was reproduceable. Of course we knew that this would never happen, but if by a miracle that it did, we would have happily paid the $10K! The solution was only found by detailed code inspection, an unlocked shared data structure. I deal where like x=3 the y=4. If a context switch happened exactly between those 2 "writes to memory", bingo, the problem happened because x and y were inconsistent. The time frame where the system was "vulnerable" was extremely small. But if you do enough operations, something that happens once per billion or 100 billion will show up!

Anyway a communications failure between parent and child is a possible cause. Something that "shouldn't happen" on a logical basis, but does happen albeit very rarely due to the timing of locks (or lack thereof) and sharing information between threads/processes.


In reply to Re: Help requested to find the cause of an "uninitialized value" message by Marshall
in thread Help requested to find the cause of an "uninitialized value" message by andyok

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.