Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Core pattern is helpful in the case if there are couple of core dumps files in one directory and we don't know which program caused it.

How to generate get stack trace?

Make sue the executable is compiled with -g option to turn on the debugging symbols

Panel
gdb <executable_path> <coredump_file_path>

gdb core executable name

bt (backtrace) to get the full stack trace

After you get inside the gdb-prompt, (on execution of the above command), type;

(gdb) bt full


Usage