http://qs1969.pair.com?node_id=612023


in reply to Signal Handling throws Core Dump

It would be helpful to know what unstable platform you're on or what unstable build of perl you're using.

Update: wow, then that shouldn't be happening imo; but, I have no further information on why. Is it the sun build of perl 5.8.8? What is $sig? Signals are kinda strange monsters (or can be depending on the implementation) and I can't help but wonder if $sig is getting deallocated lexically and then cleaned up again during global destruction or something vile like that.

-Paul

Replies are listed 'Best First'.
Re^2: Signal Handling throws Core Dump
by dsb (Chaplain) on Apr 25, 2007 at 15:13 UTC
    $sig is just a scalar I use to determine when the loop should stop.
    until ($sig) { # do some stuff }
    I declare $sig earlier with our in attempt to disqualify any scoping issues as the source of problems. I'm going to try it on another box with the same set up and see if I have the same issue.

    Update:
    I tried it on a different server running the same OS and version Perl, with the same result.


    dsb
    This @ISA my( $cool ) %SIG
Re^2: Signal Handling throws Core Dump
by maard (Pilgrim) on Apr 25, 2007 at 15:21 UTC
    in case of lexical $sig that code would create closure, so no deallocation could take place.