gsiglet has asked for the wisdom of the Perl Monks concerning the following question:
From time to time I am receiving the following:my $threadpool = Thread::Pool->new({ 'do' => \&my_function, 'optimize' => 'cpu', , 'workers' => 20, }); $threadpool->job($_) for (@myfiles); $threadpool->shutdown(); sub my_function { my ($file) = @_; ... return 1; }
and sometimes I am receiving a segmentation fault error: (/bin/sh: line 1: 10999 Segmentation fault /bin/my_script.pl) I am not sure what's going on and how to debug this. Does anybody have any idea? Many thanks, GeorgeScalars leaked: 1 Scalars leaked: 1 Scalars leaked: -1 Scalars leaked: 1
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: thread::pool scalars leaked and segmentation fault
by choroba (Cardinal) on Apr 19, 2013 at 13:00 UTC | |
|
Re: thread::pool scalars leaked and segmentation fault
by djerius (Beadle) on Apr 19, 2013 at 20:34 UTC | |
|
Re: thread::pool scalars leaked and segmentation fault
by gsiglet (Acolyte) on Apr 24, 2013 at 10:10 UTC | |
|
Re: thread::pool scalars leaked and segmentation fault
by gsiglet (Acolyte) on Apr 26, 2013 at 10:36 UTC |