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

cvg2mco has asked for the wisdom of the Perl Monks concerning the following question:

How do we debug core files created from a perl script?
  • Comment on Debugging core files created by a perl script

Replies are listed 'Best First'.
Re: Debugging core files created by a perl script
by Tanktalus (Canon) on Nov 06, 2006 at 16:57 UTC

    This looks vaguely familiar ... Ah yes, here it is... Debugging tips for segmentation faults?. I asked a similar question a while back - perhaps those responses will help you here? I can't recall which one in particular helped me past my problem at the time, but there are a lot of good suggestions there. Good luck!

Re: Debugging core files created by a perl script
by derby (Abbot) on Nov 06, 2006 at 16:21 UTC

    What platform? (Linux, Sun, Win32?). At a minimum, you're going to have to have a perl that was built with debugging enabled (most are not by default).

    -derby
      Platform - SunOs - 5.8 Generic_117350-39 sun4u sparc SUNW,Sun-Fire-880 The same script is run on linux too - but it did not core. Was curious if there were any tools that i could use to step through the core file
Re: Debugging core files created by a perl script
by Steve_p (Priest) on Nov 07, 2006 at 02:49 UTC

    Core dumps should never occur with Perl. If you are getting a coredump that is caused solely by Perl code, please use perlbug to file a bug report. Before sending, however, please try to isolate the problem to the simplest test case possible.