Bug 2843 - Doesn't detect termination of the debugged process, becomes stuck
Summary: Doesn't detect termination of the debugged process, becomes stuck
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: gdb (show other bugs)
Version: unstable
Hardware: all Linux
: P5 major
Assignee: Gleb F-Malinovskiy
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-16 12:51 MSD by Mikhail Zabaluev
Modified: 2005-07-13 15:45 MSD (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail Zabaluev 2003-08-16 12:51:52 MSD
When debugging jabberd, a daemon that setuids to user jabber, a peculiar situation was created. I stop the debugged jabberd with its init script. gdb detects SIGTERM, then SIGPIPE to the jabberd process. Then, when I try to quit, the following dialog occurs:

(gdb) quit
The program is running.  Quit anyway (and detach it)? (y or n) y
Detaching from program: /usr/sbin/jabberd, process 26851
ptrace: No such process.

Only killing gdb would help after this.

---

---

Comment 1 Dmitry V. Levin 2004-04-06 17:32:11 MSD
Should be fixed in new gdb, please reopen if not.