This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
gdb/1196: Unclean shutdown of attached gdb -> cannot attach any more
- From: d92-jwa at nada dot kth dot se
- To: gdb-gnats at sources dot redhat dot com
- Date: 30 Apr 2003 10:12:56 -0000
- Subject: gdb/1196: Unclean shutdown of attached gdb -> cannot attach any more
- Reply-to: d92-jwa at nada dot kth dot se
>Number: 1196
>Category: gdb
>Synopsis: Unclean shutdown of attached gdb -> cannot attach any more
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Apr 30 10:18:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: d92-jwa@nada.kth.se
>Release: 5.1 and 5.2
>Organization:
>Environment:
Linux: Redhat Advanced Server 2.1AS on ia32 and ia64.
>Description:
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.
Attached is a simple test program you can use to attach to.
This has been reported to Redhat as well at: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=89952
>How-To-Repeat:
1. Start a program that runs for a long time.
2. Attach to it with gdb.
3. killall -9 gdb
4. Attach to it with a new gdb instance.
Current behaviour:
gdb hangs while trying to attach.
Expected behaviour:
gdb should have attached to the program.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="neverfinish.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="neverfinish.c"
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDx1bmlzdGQuaD4KI2luY2x1ZGUgPHN5cy90eXBl
cy5oPgoKaW50IG1haW4oaW50IGFyZ2MsIGNoYXIgKmFyZ3ZbXSkgewogICBwcmludGYoIlBpZCAl
ZCBzcGlubmluZy4uLlxuIiwgZ2V0cGlkKCkpOwoKICAgd2hpbGUgKDEpIHsKICAgICAgLy8gVGhp
cyBibG9jayBpbnRlbnRpb25hbGx5IGxlZnQgYmxhbmsKICAgfQogICAKICAgcmV0dXJuIDA7Cn0K