Infinite loop Well, the segfault is gone, but now the code just runs in a continuous loop, which is arguably worse. Run the invader program from GDB and press Ctrl-C to halt execution. View a backtrace by typing bt to see where we are in the code (screenshot below). Note that in a larger, multi-threaded program, when […]
In a NutshellI write handy little guides to GDB, C and C++, and occasionally some Linux stuff for fun.