Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Hi,

    the following one-liner brings perl 5.10.0/Win32 to crash:

    perl -e "use namespace::clean; fork;"

    *) it is not an issue with perl 5.8.9/Win32

    *) it is not specific to strawberry 5.10.0.6 July/09 (the same bug exists in all previous 5.10.0.*)

    *) perls 5.10.0 for Linux/Cygwin do not suffer from this bug

    *) I have investigated this bug a little bit and sent a couple of RTs:

    RT - Perl::Dist::Strawberry
    https://rt.cpan.org/Ticket/Display.html?id=45726 [cpan.org]

    RT - Variable::Magic
    https://rt.cpan.org/Ticket/Display.html?id=46546 [cpan.org]

    RT - perl 5 core
    http://rt.perl.org/rt3/Public/Bug/Display.html?id=66158 [perl.org]

    It seems to be a bug in fork implementation for Win32 (see the last post in the above mentioned RT - perl 5 core).

    I know that it is not a new issue specific for strawberry Jul/09 release but I guess that you are much closer to perl 5/win32 core development team therefore you can be more successful in moving things forwards.

    --
    kmx

    • Tell you what - they're working on 5.10.1, and I've got a Strawberry-like build process that works for it.

      I'll check if the bug still exists in the 5.10.1 snapshots with the command line you gave and let them know, but it may take a few days.

      --
      The new Strawberry Perl for Windows has been released! Check http://strawberryperl.com for it.
      • Any results from testing fork issue on 5.10.1?

        --
        kmx

      • Hi,

        I have compiled the latest dev release from perl5.git.perl.org and IT SUFFERS FROM THIS BUG.

        --
        kmx

        • I was just going to test this today (I've finally got the computer time on my family's computer to build a 5.10.1 prerelease, among other things) - sounds like p5p needs bugged, and they received your last message on the bug yesterday, I think. (I'm on the list and reading it, and I don't know enough about the perl core to add strength to your proposed patch, although I will request that it be put in, at the latest, post-5.10.1-RC1.)

          BTW: Did you test off blead, or off maint-5.10?

          --
          The new Strawberry Perl for Windows has been released! Check http://strawberryperl.com for it.
        • What I compiled was the -RC0, and it gives me the opportunity to debug using Visual Studio. *grin* Yup, the problem is there.
          --
          The new Strawberry Perl for Windows has been released! Check http://strawberryperl.com for it.
        • I did a compilation using last night's release, and the simple case doesn't crash.

          C:\NewFolder>\perl\bin\perl.exe -e "use namespace::clean; fork; print qq{1\n}";"
          1
          1

          (test.pl being the script used in perl rt# 66158)

          C:\NewFolder>\perl\bin\perl test.pl
          After fork 1: 5524
          After fork 2: -6120

          While Strawberry 5.10.0.6? Crashes both times.

          (I should release a 5.10.1.0 beta 1 soon after it comes out.)

          --
          The new Strawberry Perl for Windows has been released! Check http://strawberryperl.com for it.