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 (Patriarch) 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.