develooper Front page | perl.perl5.porters | Postings from February 2015

[perl #40565] Windows fork emulation's child pseudo process cannot restore local scalar values

From:
lissacoffey via RT
Date:
February 8, 2015 19:18
Subject:
[perl #40565] Windows fork emulation's child pseudo process cannot restore local scalar values
Message ID:
rt-4.0.18-6563-1423217157-572.40565-14-0@perl.org
With real forks, this works just fine, but on Windows, I get the following
output:

| C:\Share>perl bug.pl
| Scalar: 3rd - child
| Array: 3rd - child
| Scalar: - child
| Array: 2nd - child
| Attempt to free unreferenced scalar: SV 0x1573004, Perl interpreter:
0x1561790 at bug.pl line 5.
| Scalar: 3rd - parent
| Array: 3rd - parent
| Scalar: 2nd - parent
| Array: 2nd - parent
| Scalar: 1st - parent
| Array: 1st - parent
| | C:\Share>

Similar testing reveals that the bug does not affect array, hash, nor glob
values. (It does of course affect array and hash elements.)

---------------------------------
Thanks,
Lissa Coffey (Online)




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