in reply to Re: Win32 crashes perl
in thread Win32 crashes perl

As an aside, for crashing perl on Win32, there's always this little bit of fun, too:

perl -te fork
How do you figure? Do you mean to say it literally crashes perl? It runs fine for me:
C:\>cmd Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\>perl -te fork C:\>perl -te "fork; print qq[I am $$\n]" I am 3388 I am -5532 C:\>perl -v This is perl, v5.8.3 built for MSWin32-x86-multi-thread (with 8 registered patches, see perl -V for more detail) ...

I am wondering whether this is a joke/pun that I am not getting. Just curious...

Update: The same code runs on my Win2K machine at home:

C:\>cmd Microsoft Windows 2000 [Version 5.00.2195] (C) Copyright 1985-2000 Microsoft Corp. C:\>perl -v This is perl, v5.8.4 built for MSWin32-x86-multi-thread (with 3 registered patches, see perl -V for more detail) ...

Replies are listed 'Best First'.
Re^3: Win32 crashes perl
by xdg (Monsignor) on Nov 30, 2006 at 12:40 UTC
    v5.8.3... v5.8.4...

    Sorry for the confusion -- this bug was introduced in v5.8.7. No one on perl5porters seems to have any idea about it. AM mentioned "Tainted fork crash on Win32", which I posted when I first discovered it.

    -xdg

    Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

Re^3: Win32 crashes perl
by syphilis (Archbishop) on Nov 30, 2006 at 04:21 UTC
    C:\>perl -te fork

    Segfaults on all my Win32 perls (that I tried it on) on Windows 2000.

    Cheers,
    <Rob>
      That crashes for me on WinXp home, ActivePerl v5.8.7 Build 813 (-t or -T). Event Viewer shows:
      Faulting application perl.exe, version 5.8.7.813, faulting module perl58.dll, version 5.8.7.813, fault address 0x0008c531.
      ...The exception generated was c0000005 at address 2808C531 (perl58!Perl_my_socketpair).

      Tainted fork crash on Win32