dli@anna-bhat ~/ad/g073 $ g++ -O0 z1pt.cpp -o z1pt -g dli@anna-bhat ~/ad/g073 $ gdb z1pt GNU gdb 6.4 Copyright 2005 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) run tmp.dat 0.1 Starting program: /home/dli/ad/g073/z1pt tmp.dat 0.1 Using checkpoint file tmp.dat.chkpt Simulating box: number of particles= 2016 (41.5692,42), sigma= 1 Potential cutoff rv= 1.5 T= 0.1 dl100= 1.16415e-12 backtrace full terminate called after throwing an instance of 'std::out_of_range' what(): vector::_M_range_check Program received signal SIGABRT, Aborted. 0xffffe410 in __kernel_vsyscall () (gdb) backtrace full #0 0xffffe410 in __kernel_vsyscall () No symbol table info available. #1 0xb7cf4bf7 in raise () from /lib/libc.so.6 No symbol table info available. #2 0xb7cf6120 in abort () from /lib/libc.so.6 No symbol table info available. #3 0x00000000 in ?? () No symbol table info available. (gdb)