Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: perl threads in a recursive function

by Corion (Pope)
on Aug 21, 2013 at 11:17 UTC ( #1050328=note: print w/replies, xml ) Need Help??

in reply to perl threads in a recursive function

Have you considered reading

If you want more specific help, consider telling us where exactly you encounter problems. The best approach is to show a short, self-contained example that we can use to reproduce your problem and suggest solutions.

  • Comment on Re: perl threads in a recursive function

Replies are listed 'Best First'.
Re^2: perl threads in a recursive function
by Anonymous Monk on Aug 21, 2013 at 11:43 UTC
    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

      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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1050328]
[marto]: good morning all
[Corion]: Hi marto!
[Corion]: Oooh - finally, I can say no lazy; :)
[Corion]: But it's another The::Net incarnation, too sad ;)

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (9)
As of 2018-07-17 08:10 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (358 votes). Check out past polls.