develooper Front page | perl.perl5.porters | Postings from May 2013

Re: [perl #38723] Backticks don't work in Win32 multithreaded perl

Thread Previous | Thread Next
From:
Krzysztof Koczyjan
Date:
May 29, 2013 00:21
Subject:
Re: [perl #38723] Backticks don't work in Win32 multithreaded perl
Message ID:
1369715220.57364.YahooMailNeo@web122202.mail.ne1.yahoo.com

Thank you for running the tests.
Results looks good.
However I downloaded newest Strawberry perl ( 5.18.0.1 ) both 32 and 64 bit version and tried to run test.
Results were not good for 32 bit version:
D:\kk\perl\perl18>bin\perl popen.test
Starting process 1(-5492)
Starting process 2(-6948)
Starting process 3(-2248)
Starting process 4(-6436)
Starting process 5(-6188)
Starting process 6(-6908)
Process 1(-5492) started.
Process 3 iteration 5
Wait returned -2248 (3)
Wait returned -5492 (1)
Wait returned -6948 (2)
Wait returned -6436 (4)
Wait returned -6908 (6)
Process 5 iteration 20
Wait returned -6188 (5)

It did not freeze, but most of output from pseudo processes is missing.
I run it a few times with similar, but not identical results.
I run the test on Win7 64 bit.
64bit version of perl worked fine.
So it looks like the problem is still there, but it does show in all circumstances.
I run the test on the same 32bit Strawberry perl on Windows XP under VMware and it worked fine


Thank you,
 Kris Koczyjan



________________________________
 From: bulk88 via RT <perlbug-followup@perl.org>
To: krzysztofk@rocketmail.com 
Sent: Monday, May 27, 2013 5:11 PM
Subject: [perl #38723] Backticks don't work in Win32 multithreaded perl
 

On Mon May 27 06:06:19 2013, jkeenan wrote:
> 
> Reviewing older tickets this morning, I came across this one.
> 
> Krzysztofk:  It appears that by re-compiling Perl, you found a
> satisfactory work-around.  Do you need further assistance with this
problem?
> 
> List: Could someone familiar with the current status of 'fork' on Win32
> systems please assess the issues in this ticket?
> 
> Thank you very much.
> Jim Keenan

___________________________________________________________________
C:\Documents and Settings\Owner\Desktop>perl n11.pl
Starting process 1(-2992)
Starting process 2(-4472)
Starting process 3(-4452)
Starting process 4(-5996)
Starting process 5(-5288)
Starting process 6(-1636)
Process 1(-2992) started.
Process 3 iteration 2
Process 1 iteration 2
Process 4 iteration 1
Process 3 iteration 5
Process 4 iteration 3
Process 6 iteration 4
Process 1 iteration 7
Process 5 iteration 6
Process 4 iteration 6
Process 2 iteration 6
Process 3 iteration 10
Process 6 iteration 6
Process 3 iteration 12
Process 4 iteration 9
Process 1 iteration 11
Process 3 iteration 13
Process 1 iteration 13
Process 5 iteration 13
Process 6 iteration 9
Process 5 iteration 14
Process 1 iteration 15
Process 2 iteration 11
Process 1 iteration 16
Process 2 iteration 12
Process 5 iteration 17
Process 2 iteration 13
Process 6 iteration 12
Process 3 iteration 20
Wait returned -4452 (3)
Process 1 iteration 20
Wait returned -2992 (1)
Process 4 iteration 14
Process 5 iteration 19
Process 2 iteration 14
Wait returned -5288 (5)
Process 6 iteration 13
Process 4 iteration 15
Process 6 iteration 14
Process 4 iteration 16
Process 6 iteration 15
Process 4 iteration 17
Process 6 iteration 16
Process 4 iteration 18
Process 6 iteration 17
Process 4 iteration 19
Process 4 iteration 20
Wait returned -5996 (4)
Process 2 iteration 19
Process 6 iteration 19
Process 2 iteration 20
Process 6 iteration 20
Wait returned -1636 (6)
Wait returned -4472 (2)

C:\Documents and Settings\Owner\Desktop>
____________________________________________________________________

All psuedo processes reached 20. Ran script 5 times, no freezes. Perl
5.19.0. Normal Win32 Perl does not use USE_RTL_POPEN, so my tests were
done WITHOUT the mod the OP made to get it to not freeze for him. I
recommend close.

-- 
bulk88 ~ bulk88 at hotmail.com
Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About