Reputation: 4820
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
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