It just crashed with valgrind and it didn't say there were any memory leaks.
It seems it crashes whenever my open SSH session gets closed by me closing the laptop or leaving it on until it goes to sleep.
I thought I had turned on core dump following these instructions
but I don't see anything in /tmp.
So to run it under gdb I type in
But since I'm doing this remotely from an SSH shell I need it to fork the process and output to a file. How do I do that? I need it to continue running after I end the SSH session.
I can't just do
gdb myProgram &
because I need to type in "run" to gdb.
Edited by polyfrag, 31 December 2012 - 06:19 PM.