sydneyfong:~/tempfiles> cat test.c #include int main() { printf("%d\n", 0/0); } sydneyfong:~/tempfiles> gcc -g test.c test.c: In function ‘main’: test.c:3: warning: division by zero sydneyfong:~/tempfiles> gdb ./a.out GNU gdb 6.4.90-debian Copyright (C) 2006 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 "i486-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1". (gdb) run Starting program: /home/sydneyfong/tempfiles/a.out Failed to read a valid object file image from memory. Program received signal SIGFPE, Arithmetic exception. 0x08048374 in main () at test.c:3 3 printf("%d\n", 0/0); (gdb) quit The program is running. Exit anyway? (y or n) y