You don't tell us which SSL library you are using, but did you make sure that it is threadsafe and compiled for threading ?
As LWP dynamically loads stuff, you could maybe test the following program to further narrow it down:
use strict; use Net::SSLeay; # or whatever other SSL implementation you use use threads; my $t = threads->new(\&threadedRequestThread) or die "Can't create thread\n"; print "Joining thread\n"; my @ret = $t->join(); print "Thread returned (@ret)\n"; exit(0); # Actual Thread function sub threadedRequestThread { print "Inside threadedRequestThread\n"; return "A list of words"; }
or, failing that program, you might need to call some routines in Net::SSLeay to initialize it.
In reply to Re: Segmentation fault using LWP and threads
by Corion
in thread Segmentation fault using LWP and threads
by MarkSWarren
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |