smackdab has asked for the wisdom of the Perl Monks concerning the following question:

I get a "Bizarre SvTYPE 17" error using Fork under Win32...actually if I only fork once it works great... As soon as you go to 2 you get a GPF.

I have seen other similar posts on Google...but no replies...

I know fork() is brand new...but it should support forking more than once...anyone doing this successfully?

thanks!!!

Replies are listed 'Best First'.
(tye)Re: Win32 and Bizarre SvTYPE error
by tye (Sage) on Oct 12, 2001 at 00:16 UTC

    The only thing that makes sense for a "Bizarre SvTYPE (17)" is memory getting overwritten, which would be a bug in Perl (unless you are heavilly abusing pack/unpack).

    But fork under Win32 is pretty fragile so I'm not that surprised that using it can result in memory corruption. I encourage you to report it using "perlbug".

    You can do some moderately ugly hacks like (tye)Re: How to multiprocess in Win32? to get around many needs for fork under Win32.

            - tye (but my friends call me "Tye")
Re: Win32 and Bizarre SvTYPE error
by premchai21 (Curate) on Oct 11, 2001 at 23:12 UTC
    Could you show us some code please? And what Perl are you running?