Bug 89952 - Unclean shutdown of attached gdb -> cannot attach any more
Summary: Unclean shutdown of attached gdb -> cannot attach any more
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Enterprise Linux 2.1
Classification: Red Hat
Component: gdb
Version: 2.1
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Alexandre Oliva
QA Contact: Jay Turner
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-04-30 09:58 UTC by Johan Walles
Modified: 2015-01-08 00:04 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-12-30 14:02:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
A program that never finishes. Repro case. (228 bytes, text/plain)
2003-04-30 09:59 UTC, Johan Walles
no flags Details

Description Johan Walles 2003-04-30 09:58:03 UTC
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.

Comment 1 Johan Walles 2003-04-30 09:59:10 UTC
Created attachment 91409 [details]
A program that never finishes.  Repro case.

Comment 2 Johan Walles 2003-04-30 10:22:15 UTC
This has been reported in GDB's bug reporting system as well.  Bug id is  gdb/1196.


Comment 4 Jan Kratochvil 2006-12-30 14:04:10 UTC
External Bug reference URL:
http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view+audit-trail&pr=1196



Note You need to log in before you can comment on or make changes to this bug.