in reply to Re^2: Perl jumps to END logic after fileno (Win32)
in thread Perl jumps to END logic after fileno (Win32)

It is possibly a race condition, as the Perl software is identical between the systems I test on, yet one fails within the first 50 iterations of the loop in this test, whereas the other system has processed over 40000 iterations of the loop with no issues (aside from the warning messages) ... failure is either the report that either STDOUT or STDERR are gone, or message that new_from_fd failed

Hi,

What is "perl software" and "systems" (versions)?

I cannot reproduce on strawberry-perl-5.18.2.2-32bit-portable on old winxp machine

  • Comment on Re^3: Perl jumps to END logic after fileno (Win32)

Replies are listed 'Best First'.
Re^4: Perl jumps to END logic after fileno (Win32)
by dchidelf (Novice) on Aug 09, 2017 at 13:02 UTC

    It is Strawberry Perl 5.24.0 (64-bit) on Windows 7 and Windows 10.

    My Windows 7 laptop does not experience any issues, but some other Windows 7 systems and a Windows 10 test system I have do. Each of the systems that experience issues have SSD drives. So far that has been the only thing we have found in common with the failing systems.

    I tried with an old 5.16.3 Version of perl I had on my system and the warnings go away. So somewhere between 5.16.3 and 5.24.0 the changes with threading have added logic that is attempting to close some of my handles or at least is warning about failing.

    Here are those warnings
    Warning: unable to close filehandle $errwrite properly: Bad file descr +iptor at tshoot.pl line 34. Warning: unable to close filehandle $outwrite properly: Bad file descr +iptor at tshoot.pl line 34.
    Testing with 5.16.3 on a system that experiences failures, it still fails, but without the "unable to close filehandle" warning messages.