Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Parallel::ForkManager and utf8::all crash perl on Windows

by szabgab (Priest)
on Dec 22, 2012 at 09:08 UTC ( [id://1009989]=perlquestion: print w/replies, xml ) Need Help??

szabgab has asked for the wisdom of the Perl Monks concerning the following question:

The following simple test case will crash perl on Windows. (Tried with Strawberry Perl 5.16.2). Any Windows experts might know how to fix it? (On Linux this worked fine.)
use strict; use warnings; use Test::More; use Parallel::ForkManager; eval "use utf8::all"; plan skip_all => 'Need utf8::all for this test crashing on Windows' if + ($@); plan tests => 1; my $fork = Parallel::ForkManager->new( 1 ); foreach (1) { my $pid = $fork->start and next; $fork->finish; } $fork->wait_all_children; ok(1);

Replies are listed 'Best First'.
Re: Parallel::ForkManager and utf8::all crash perl on Windows ( use open qw{:encoding(UTF-8) :std}; fork; ## PerlIO/encoding.dll )
by Anonymous Monk on Dec 22, 2012 at 10:48 UTC
Re: Parallel::ForkManager and utf8::all crash perl on Windows
by karlgoethebier (Abbot) on Dec 22, 2012 at 09:31 UTC

    Mmh, it crashed under Mac OS X too:

    Karls-Mac-mini:~ Karl$ ./crash.pl 1..0 # SKIP Need utf8::all for this test crashing on Windows

    But installing utf8::all fixed it...

    Karls-Mac-mini:~ Karl$ ./crash.pl 1..1 ok 1

    Don't know if this helps. Best regards, Karl

    «The Crux of the Biscuit is the Apostrophe»

      Mmh, it crashed under Mac OS X too:

      crash means segfault, not failing test

        Mmh...first test failed. After saying install ut8::all everything looked fine. Nothing about segfault. Please feel free to correct me if i'm totally wrong.

        Best regards, Karl

        «The Crux of the Biscuit is the Apostrophe»

Re: Parallel::ForkManager and utf8::all crash perl on Windows
by Athanasius (Archbishop) on Dec 22, 2012 at 09:53 UTC
      I could install utf8::all 0.009 on Strawberry. Do you have CPANTESTERS configured to send the fail reports there?

      I arrived to this while trying to install Code-CutNPaste, Ovid might be able to change his module, but it would be nice if this was fixed. (I sent e-mails to all the people involved)

Re: Parallel::ForkManager and utf8::all crash perl on Windows
by tobyink (Canon) on Dec 22, 2012 at 10:03 UTC

    What happens if you load the modules in the other order; load utf8::all first?

    perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
      Same crash. (Even if I remove all the Test::More related code.)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1009989]
Approved by Athanasius
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-03-28 23:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found