From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: nickrob@snap.net.nz (Nick Roberts) Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#4437: 23.1.50; Quitting gdb leaves a process behind Date: Wed, 16 Sep 2009 14:00:10 +1200 Message-ID: <19120.18090.883591.554535@totara.tehura.co.nz> References: <83ab0xfdrb.fsf@kalahari.s2.org> Reply-To: Nick Roberts , 4437@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1253068041 15816 80.91.229.12 (16 Sep 2009 02:27:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Sep 2009 02:27:21 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org To: Hannu Koivisto , 4437@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 16 04:27:14 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MnkEj-00081W-HV for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Sep 2009 04:27:13 +0200 Original-Received: from localhost ([127.0.0.1]:44499 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MnkEi-0004pq-P1 for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Sep 2009 22:27:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MnkEd-0004od-Kv for bug-gnu-emacs@gnu.org; Tue, 15 Sep 2009 22:27:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MnkEZ-0004kR-SZ for bug-gnu-emacs@gnu.org; Tue, 15 Sep 2009 22:27:07 -0400 Original-Received: from [199.232.76.173] (port=57406 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MnkEZ-0004k1-K1 for bug-gnu-emacs@gnu.org; Tue, 15 Sep 2009 22:27:03 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:56634) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MnkEZ-0008Lf-0t for bug-gnu-emacs@gnu.org; Tue, 15 Sep 2009 22:27:03 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8G2R0Rc014115; Tue, 15 Sep 2009 19:27:00 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n8G2A5fT011191; Tue, 15 Sep 2009 19:10:05 -0700 Resent-Date: Tue, 15 Sep 2009 19:10:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: nickrob@snap.net.nz (Nick Roberts) Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Wed, 16 Sep 2009 02:10:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4437 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4437-submit@emacsbugs.donarmstrong.com id=B4437.12530664229044 (code B ref 4437); Wed, 16 Sep 2009 02:10:05 +0000 Original-Received: (at 4437) by emacsbugs.donarmstrong.com; 16 Sep 2009 02:00:22 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from viper.snap.net.nz (viper.snap.net.nz [202.37.101.25]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8G20KrY009037 for <4437@emacsbugs.donarmstrong.com>; Tue, 15 Sep 2009 19:00:22 -0700 Original-Received: from totara (167.31.255.123.dynamic.snap.net.nz [123.255.31.167]) by viper.snap.net.nz (Postfix) with ESMTP id DAA413D9E1D; Wed, 16 Sep 2009 14:00:14 +1200 (NZST) Original-Received: by totara (Postfix, from userid 1000) id CB8C6C164; Wed, 16 Sep 2009 14:00:12 +1200 (NZST) In-Reply-To: <83ab0xfdrb.fsf@kalahari.s2.org> X-Mailer: VM 7.19 under Emacs 22.2.1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Tue, 15 Sep 2009 22:27:07 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:31128 gmane.emacs.pretest.bugs:25057 Archived-At: > Start emacs with -q option, start gdb to debug any program > (M-x gdb RET C-a gdb -i=mi ./some-program), quit immediately by typing > quit RET to gdb command line (and answer "yes" to the question > whether to kill the process associated to the buffer) and finally list > processes with M-x list-processes RET. > > Expected result: no processes. > Actual result: > > Proc Status Buffer Tty Command > ---- ------ ------ --- ------- > gdb-inferior run (Killed) /dev/pts/15 > > If I start gdb again after this, I get a new gdb-inferior<1> > process which again is left running when I quit gdb. If you want to run the same, but possibly newly compiled executable it's generally best not to quit GDB. GDB will automatically load the new code and it has the advantage of keeping shell history, breakpoints etc. You may need to change the line numbers on some breakpoints if the surrounding code has changed. If you want to run a different executable then it's best to kill the GUD buffer before starting a new session. > I've also seen cases where "quit" command to gdb does absolutely > nothing. In at least some sub-cases, if I then say M-x list-processes > RET, _then_ I get the question whether to kill the process associated to > the buffer and if I say "yes", the debugger quits and I get "Debugger > finished" in the gdb buffer. Similar problems were reported as part of bug#4375. I'm still looking in to it. -- Nick http://www.inet.net.nz/~nickrob