Bizarre SvType [187] at

187 is 0xBB which immediately makes me think of Microsoft pre-initializing memory to such things (I usually see 0xCC but have seen other values). I'll see if I can dig up information on what these values mean.

But this at least looks like Perl is either failing to initialize some memory, using a pointer to some memory that has been free()d, or using a corrupted pointer.

And that doesn't surprise me since fork emulation in Win32 Perl has always been pretty buggy, even after several releases (and several claims that it should be stable). I've heard claims that Perl v5.8 should make fork emulation less buggy, but it is using a brand new scheme (which does hold promise for being more stable) and so, being new, I'd be a bit surprised if it weren't still at least a little buggy.

I avoid using fork in Win32 Perl. You can probably avoid it in this situation as well, though it can be a challenge. I've covered some aspects of avoiding fork ((tye)Re: How to multiprocess in Win32?) and of pinging (Net::Ping, the mini series).

Update: I managed to find the following special values:

0xCC
uninitialized local variables (if compiled with /GZ)
0xFD
no-man's land (area around a malloc'd block)
0xDD
freed blocks
0xCD
new objects
but no special meaning for 0xBB; there might be one, but I haven't found it.

BTW, SV types go from 0x00 through 0x0F. 4 bits of the SV type are never used.

                - tye

In reply to Re: Ping, fork error on Win32 (bad pointer?) by tye
in thread Ping, fork error on Win32 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.