I just finished a project for my cryptography class and it all seems to go well (mostly). Because the key is generated randomly, I wanted to ensure it would work for all keys. Anyway, I ran it a bunch of times and hit a segfault at around the 30th run. I haven't been able to reproduce this segfault in gdb. Does gdb have a command, or is there some other method to continue running the program and then break when it segfaults so I can check the stack?
+3
A:
Place the loop inside your program so you only have to run it in the debugger once.
Marcelo Cantos
2010-05-11 10:06:19
Haha, this just occurred to me. Oops.
Duracell
2010-05-11 10:15:23
No problemo. :-)
Marcelo Cantos
2010-05-11 10:30:50