Thursday, April 10, 2008

GDB debugger crashing...

Don't you just love it when you go to debug some crashing process and the debugger itself crashes?

bash-3.00# /usr/local/bin/gdb /foo/myprogram /foo/core
GNU gdb 6.0
Copyright 2003 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 "sparc-sun-solaris2.9"...
Core was generated by `/foo/dagent'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/
Bus Error (core dumped)

At least it generated a core file.... Next stop:

bash-3.00# /usr/local/bin/gdb /usr/local/bin/gdb ./core