From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20030210 Description of problem: If you have gdb attached to a program and gdb is killed, it is no longer possible to attach another instance of gdb to the running program. I have reproduced this on RHAS on ia32 and ia64. Version-Release number of selected component (if applicable): 5.1-1 on ia32 and 5.2-2 on ia64 How reproducible: Always Steps to Reproduce: 1. Start a program that runs for a long time (will attach example). 2. Attach to it with gdb. 3. killall -9 gdb 4. Attach to it with a new gdb instance. Actual Results: Gdb hangs trying to attach to the program. Expected Results: Gdb should have attached to the program. Additional info: Will attach example program.
Created attachment 91409 [details] A program that never finishes. Repro case.
This has been reported in GDB's bug reporting system as well. Bug id is gdb/1196.
External Bug reference URL: http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view+audit-trail&pr=1196