getting stacktrace from core dump

54,500
gdb /usr/bin/myapp.binary corefile

Then, use one of:

(gdb) bt
(gdb) bt full
(gdb) info threads
(gdb) thread apply all bt
(gdb) thread apply all bt full

Note that installing debug symbols for the related libraries will help

Share:
54,500

Related videos on Youtube

user391986
Author by

user391986

Updated on November 30, 2020

Comments

  • user391986
    user391986 about 2 years

    How can I get a stack trace from a core dump file? The file is about 14 mb and is generated after my application exits saying "segmentation fault"

    I'm on Red Hat 5.5

    • Admin
      Admin over 11 years
      By the way is your application written in C++?
  • Gabriel Staples
    Gabriel Staples over 1 year
    How do I find my corefile? I'm on Ubuntu 20.04.
  • IBBoard
    IBBoard over 1 year
    If you're on a systemd-based system then you can run coredumpctl gdb -1 to run gdb on the last coredump.