I'll add a little to this. One can abuse unpack to cause a core dump, but that is probably not what is happening here.

The easiest way to get a "Dr. Watson" w/ Perl is to use fork (under Win32). So, if you are doing that, you might want to look at (tye)Re: How to multiprocess in Win32?.

The original seeker mentioned using lots of memory. Under Win32, if you run out of swap space, a dialogue pops up telling you that you are running low on memory. Once that happens, somewhere a call to malloc() (etc.) has failed. Many things don't check for failure of malloc() and many things that do check don't deal well with the failure anyway. So once you see that dialogue, just about any program, and indeed the operating system itself, is suspect and may fail in unusual ways.

Even if we assume that Perl is perfect at remaining sane in the face of a failed malloc(), the Win32 libraries that Perl uses certainly aren't perfect in that respect and so Perl could certainly "Dr. Watson" after the "low memory" dialogue appeared.

But if you haven't seen the "low memory" dialogue, then Perl using lots of memory should not be a reason for a "Dr. Watson".

        - tye (but my friends call me "Tye")

In reply to (tye)Re: Dr. Watson when by tye
in thread Dr. Watson when by Anonymous Monk

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.