I attached myself to myself


I came across my new favorite error message last night while debugging some issues with the Solaris printstack() function:

$ gdb -q /var/tmp/apache2/bin/httpd

(gdb) **shell ps -ef | grep gdb**
matty 9216 8963 1 20:30:34 pts/1 0:00 gdb -q
/var/tmp/apache2/bin/httpd
matty 9217 9216 0 20:30:41 pts/1 0:00 bash -c ps -ef | grep gdb

(gdb) **attach 9216**
Attaching GDB to itself is not a good idea...

You gotta love some geek humor. :)

This article was posted by Matty on 2005-12-29 21:35:00 -0400 -0400