Hello List,
Playing with some multi threaded perl lately, I have the strangest problem.
I'm running the following code on a Debian Lenny machine (tried also with
Ubuntu) - and getting a segfault on the join call.
(Notice the url is http*s*)

use strict;
use warnings;
use LWP::Simple;
use threads;

sub x {
        return 0;
}

my $reply = get "https://graph.facebook.com/me/friends";;

my @threads = map { threads->create('x') } (1..5);
my @results = map { $_->join } @threads;

The weird thing is, if I change the URL to normal http, everything works as
expected.
Has anyone had that problem ? any ideas for workarounds ?
(I did find on google this thread, but couldn't make any smart idea out of
it: http://prlmnks.org/html/407374.html).

Ynon
_______________________________________________
Perl mailing list
Perl@perl.org.il
http://mail.perl.org.il/mailman/listinfo/perl

Reply via email to