This is an old revision of the document!


How to Debug a segfault

  • To debug segfaults enable core dumps:
ulimit -c unlimited
  • In the same console as you ran ulimit run whatever program segfaulted.
  • After it segfaults look for a core file
  • Then run:
gdb <prog_name> core
  • then run a stack backtrace in gdb
(gdb) bt
  • You should get a good idea about what caused the problem.
plu/debug.1460684133.txt.gz · Last modified: 2016/04/14 18:35 by gunn
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0