Original Post
My program crashes after a long run like this: -- clip -- ERROR!!: vector::_M_range_check [Thread 0xb6394b90 (LWP 11690) exited] Program exited with code 01. (gdb) bt No stack. -- end clip -- That clip is from gdb. The question is: how can I trace with gdb where that erroneous indexing of a vector happened? Gdb says "No stack." because the program actually didn't cause a segmentation fault. This is why you should always use [] instead of .at() :)