in reply to Win32 crashes perl

Works for me on Vanilla Perl on Win32. I'd second the call to check your PATH for conflicting .dll's or even a conflicting perl. (E.g. the Win32 SVK installer installs an entire perl.exe -- bad news if that's earlier in your PATH).

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

> perl -te fork

-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.

Replies are listed 'Best First'.
Re^2: Win32 crashes perl
by crashtest (Curate) on Nov 30, 2006 at 01:07 UTC

    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) ...

      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.

      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