Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: perl threads in a recursive function

by Anonymous Monk
on Aug 21, 2013 at 11:43 UTC ( #1050332=note: print w/ replies, xml ) Need Help??


in reply to Re: perl threads in a recursive function
in thread perl threads in a recursive function

package hi; sub fn { my $thread_signal = threads->create(\&Signal_ThreadCb,@_); push @main::threads_pool,$thread_signal; } package main; hi::fn(); hi::fn(); hi::fn();
At the thread creation point error is occuring ;Segmentation fault core dumped


Comment on Re^2: perl threads in a recursive function
Download Code
Re^3: perl threads in a recursive function
by Corion (Pope) on Aug 21, 2013 at 11:46 UTC

    Maybe read the answers to getting segmentation fault core dumped when I am running, which describe symptoms quite similar to yours and the approach to solve them.

    You don't show the (relevant) parts of Signal_ThreadCb. If you are mixing signals and threads, be advised that this is usually not well-supported by Perl and the underlying operating systems.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1050332]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2014-07-30 10:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (230 votes), past polls