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
Related videos on Youtube
Author by
user391986
Updated on November 30, 2020Comments
-
user391986 about 2 yearsHow 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 over 11 yearsBy the way is your application written in C++?
-
-
Gabriel Staples over 1 yearHow do I find my corefile? I'm on Ubuntu 20.04. -
IBBoard over 1 yearIf you're on a systemd-based system then you can runcoredumpctl gdb -1to run gdb on the last coredump.