Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Dec 2000 20:27:07 -0800 (PST)
From:      andy@silverbrook.com.au
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   gnu/23678: gdb won't exit if attached process disappears
Message-ID:  <200012200427.eBK4R7d40265@freefall.freebsd.org>
Resent-Message-ID: <200012200430.eBK4U1q40422@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         23678
>Category:       gnu
>Synopsis:       gdb won't exit if attached process disappears
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 19 20:30:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Andy Newman
>Release:        RELENG_4
>Organization:
Silverbrook Research
>Environment:
FreeBSD bebop.silverbrook.com.au 4.2-STABLE FreeBSD 4.2-STABLE #0: Wed Nov 22 08:52:41 EST 2000     toor@bebop.silverbrook.com.au:/usr/obj/usr/src/sys/bebop  i386

>Description:
If gdb is attached to a process and that process subsequently exits
prior to gdb detaching then gdb fails to detach, issues an error
message and won't exit.  You have to kill gdb to quit.

Here's a sample of gdb's output at such a time,
(gdb) Quit
(gdb) The program is running.  Quit anyway (and detach it)? (y or n) y
Detaching from program: /home/andy/tmp/tstp, process 25834, thread 1
ptrace: No such process.
(gdb)

>How-To-Repeat:
Attach to process in gdb. Have process exit. Then try to quit gdb.

>Fix:
Seems likely to be a simple test of errno at the appropriate point.


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200012200427.eBK4R7d40265>