http://www.perlmonks.org?node_id=308324


in reply to How to debug a segfault?

You can use gdb to debug perl. It is not ideal, but when you have core dumps it should help.
# start gdb gdb /usr/bin/perl # inside gdb run the script run script.pl # after it segv's get the stack trace bt
You can inspect the c data that was in memory at the time of the segv and probably figure out what caused the core dump. See the gdb man page for more details.