Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^7: Why do my threads sometimes die silenty?

by alain_desilets (Beadle)
on Sep 22, 2011 at 18:10 UTC ( #927435=note: print w/replies, xml ) Need Help??


in reply to Re^6: Why do my threads sometimes die silenty?
in thread Why do my threads sometimes die silenty?

Changed the $signal declaration to my $signal :shared; as you suggested, and I get the same behaviour as before. The thread never returns (because of the faulty "use Blah"), but I never see the error message. Alain

Replies are listed 'Best First'.
Re^8: Why do my threads sometimes die silenty?
by BrowserUk (Pope) on Sep 22, 2011 at 19:15 UTC

    Sorry, but I cannot even begin to see how to debug Thread::Pool. You're best bet would be to raise the problem with the maintainer.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
      OK, thx. Will do.

        A few thoughts:

        1. Add use strict and use warnings to the top of the thread proc.
        2. Add a print statment in front of the require.
        3. Wrap the require in an eval.

        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority".
        In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://927435]
help
Chatterbox?
[Corion]: ambrus: Yeah - we're in that situation too, except that there is no time to do the reorganizing :-/
[LanX]: ... so my boss started a project with the newest sun servers and invited the traders to come on weekend to test it... and they were so pleased, that they forced him to keep it in production...
[ambrus]: Corion: sure, this is the long-term plan. The short term is that I have to run this ungodly mess to get results from the new input data today.
[Corion]: ambrus: Most of our "automation" is tied to process exit codes and a shell pipeline :-\
[LanX]: ... a week later they realized that one of the databases - which recorded how much the other banks due to this bank - was not correctly plugged
[ambrus]: Corion: I have no problem with exit codes and shell pipeline. My problem is that the current process requires a lot of manual intervention from me, including editing the source codes.
[ambrus]: (Also a lot of manual intervention by two or three other co-workers, who do other parts of the process.)
[ambrus]: Some of the manual part is unavoidable, but not all.
[choroba]: LanX was there a way to recover the numbers from the remaining information?
[Corion]: LanX: Ow ;)

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (12)
As of 2017-03-29 11:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (350 votes). Check out past polls.