perlancar has asked for the wisdom of the Perl Monks concerning the following question:
Just want to check with everybody, is it just me or are Signal::StackTrace and its fork Signal::StackTrace::CarpLike not working properly? At least on Linux (I'm using 5.18.1).
If I press Ctrl-C in the middle of run, the program above should print a stack trace with f, g included in the trace levels. Which will happen if I replace "sleep" with "die". Instead, what I'm getting is just:#!perl use Signal::StackTrace qw(INT); sub f { g() } sub g { sleep 10 } f;
Caller level 0:
{
Bitmask => 'UUUUUUUUUUUUUU',
Evaltext => undef,
Filename => '/path/to/script',
Hasargs => 1,
Hints => 0,
'Line-No' => 0,
Package => 'main',
Require => undef,
Subroutine => 'Signal::StackTrace::__ANON__',
Wantarray => ''
}
Caller level 1:
{
Bitmask => 'UUUUUUUUUUUUUU',
Evaltext => undef,
Filename => '/path/to/script',
Hasargs => 0,
Hints => 2018,
'Line-No' => 0,
Package => 'main',
Require => undef,
Subroutine => '(eval)',
Wantarray => ''
}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Signal::StackTrace not working?
by Athanasius (Archbishop) on Oct 12, 2014 at 03:13 UTC |