Subject: | Segfault when using threads |
When using threads and Method::Signatures, I sometimes run into
segfaults. This has happened to me twice, in different scripts and contexts.
Here is a small example that segfaults:
#! /usr/bin/env perl
use strict;
use warnings;
use threads;
use Method::Signatures;
my $thr = threads->create(\&worker);
$thr->join();
exit;
sub worker {
my $path = 'Bio/Phylo/Parsers/Newick.pm';
require $path;
return 1;
}
Note that when uncommenting the line 'use Method::signatures;', the
script runs fine.
Best,
Florent
Method::Signatures 20120523
perl 5, version 14, subversion 2 (v5.14.2) built for
x86_64-linux-gnu-thread-multi