To get a core dump when a warning is issued, set $SIG{__WARN__} to produce a core dump. For example:
use warnings; my @x = qw(a b c); $SIG{__WARN__} = sub { print "got a warning: $_[0]\n"; CORE::dump; }; for (0..3) { print "$x[$_]\n"; }
Remember to set your process limit to allow the core file to be produced (ulimit -c if you are using bash, see the man bash for details of ulimit).
In reply to Re: stack trace from thread exit
by ig
in thread stack trace from thread exit
by falan95054
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |