in reply to Re: Re: How "safe" is die() in %SIG?
in thread How "safe" is die() in %SIG?

Calling die() inside a $SIG{INT} handler is definitely asking for trouble. Perl can and will segfault, as you've found. die allocates memory, which is a no-no inside an interrupt handler, hence the problem. 5.8 takes care of this, though there are downsides to that related to alarm and blocking system calls.