Bug 81732

Summary: bad handling of stopped process while quitting in gdb
Product: Red Hat Enterprise Linux 2.1 Reporter: Magnus Ihse <ihse>
Component: gdbAssignee: Jeff Johnston <jjohnstn>
Status: CLOSED RAWHIDE QA Contact: Jay Turner <jturner>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.1CC: ezannoni, srevivo
Target Milestone: ---   
Target Release: ---   
Hardware: ia64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-08-22 19:09:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Magnus Ihse 2003-01-13 16:04:54 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)

Description of problem:
Start gdb and attach to a running process.

Stop the process from another shell. Now try to quit gdb:

(gdb) quit
(gdb) The program is running.  Quit anyway (and detach it)? (y or n) y
Can't detach LWP 6865: No such process
(gdb) 

To quit gdb, you need to do "kill" first. (Unless you despair and kill gdb from 
another shell). A quit should never fail.


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
See description.

Actual Results:  gdb says:
Can't detach LWP 6865: No such process
(gdb) 
and doesn't quit.

Expected Results:  gdb should have quit.

Additional info:

Comment 1 Jeff Johnston 2003-08-22 19:09:33 UTC
Fixed in latest release.  Removed error() call for
detach failure.