Script started on Thu Jan 8 07:44:08 2015 root@bsd:~ # gdb Test GNU gdb 6.1.1 [FreeBSD] Copyright 2004 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 "amd64-marcel-freebsd"...(no debugging symbols found)... (gdb) r Starting program: /root/Test (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...[New LWP 100618] (no debugging symbols found)...(no debugging symbols found)...[New Thread 802006400 (LWP 100618/Test)] hello Program exited normally. (gdb) r Starting program: /root/Test (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...[New LWP 100639] (no debugging symbols found)...(no debugging symbols found)...[New Thread 802006400 (LWP 100639/Test)] ^C Program received signal SIGINT, Interrupt. [Switching to Thread 802006400 (LWP 100639/Test)] 0x00000008017dab7a in select () from /lib/libc.so.7 (gdb) bt #0 0x00000008017dab7a in select () from /lib/libc.so.7 #1 0x000000080147cb32 in select () from /lib/libthr.so.3 #2 0x0000000000483362 in awaitEvent () #3 0x00007fffffffe950 in ?? () #4 0x00000008014833c7 in pthread_timedjoin_np () from /lib/libthr.so.3 Previous frame inner to this frame (corrupt stack?) (gdb) info threads * 2 Thread 802006400 (LWP 100639/Test) 0x00000008017dab7a in select () from /lib/libc.so.7 (gdb) k Kill the program being debugged? (y or n) y (gdb) q root@bsd:~ # exit Script done on Thu Jan 8 07:45:04 2015