user3668129
user3668129

Reputation: 4820

Can I get the reason to my application crash, when the app was not run from the gdb?

I have run my app for several hours, and it has crashed. (c++ app, on LINUX os)

I know that when running app via gdb, we can get the line code & reason of the crash. But unfortunately I forgot to run it via gdb :( Is there a way to get the reason of the crash ?

Upvotes: 2

Views: 116

Answers (1)

Cauterized
Cauterized

Reputation: 41

You can enable unlimited core dump sizes by

ulimit -c unlimited

This will write down a core file in case of a crash into the same directory from where you started the program. Afterwards you can load it with the gdb option --core.

Upvotes: 3

Related Questions