in reply to using a core file from a crash in someone else's XS?

Yes, you can use a core file with GDB. The app to feed to GDB in this case is Perl itself, ex: /usr/bin/perl. This will produce much more useful results in many cases if you compiled your Perl and your XS modules with debugging symbols.

I've found that although GDB can rarely tell me what cased a seg-fault it can sometimes point the way to the right area of code to look at. Sometimes that's the only hint you need.

-sam

  • Comment on Re: using a core file from a crash in someone else's XS?

Replies are listed 'Best First'.
Re^2: using a core file from a crash in someone else's XS?
by bcrowell2 (Friar) on Nov 02, 2005 at 22:19 UTC
    Aha! Thanks, that helped a lot. Now I know it's crashing in a routine called Tk_HandleEvent() inside Perl/Tk, which is a lot more than I knew before!