So I fire up my c++ application in GDB, and when it quits, I basically get:
[Thread 0x7fff76e07700 (LWP 6170) exited]
[Thread 0x7fff76f08700 (LWP 6169) exited]
[Thread 0x7fff77009700 (LWP 6168) exited]
...
Program terminated with signal SIGKILL, Killed. The program no longer exists.
(gdb)
I literally have no idea why this is occuring, why can’t I do a backtrace to see how it exited? Anyone have any ideas? It should never end 🙁
Thanks!
This usually means that either
kill -9 <your-pid>, orkill -9for it). You should look in/var/log/messages(/var/log/syslogon Ubuntu variants) for traces of that — the kernel usually logs a message when it OOMs some process.Because in order to see a backtrace, the process must exist. If it doesn’t exist, it doesn’t have stack, and so can’t have backtrace.