Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Signal Handling throws Core Dump

by jettero (Monsignor)
on Apr 25, 2007 at 14:06 UTC ( #612023=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2022-01-24 20:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (65 votes). Check out past polls.

    Notices?