From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#5145: 23.1.50; GDB/CPU-Usage spikes Date: Sat, 12 Dec 2009 11:41:38 -0500 Message-ID: <87zl5oi1q5.fsf@stupidchicken.com> Reply-To: Chong Yidong , 5145@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1260637868 2641 80.91.229.12 (12 Dec 2009 17:11:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Dec 2009 17:11:08 +0000 (UTC) Cc: 5145@emacsbugs.donarmstrong.com, Tom Rauchenwald To: Nick Roberts Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 12 18:11:01 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 1NJVUi-0002Q4-GM for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Dec 2009 18:11:00 +0100 Original-Received: from localhost ([127.0.0.1]:44572 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NJVUi-00037u-C3 for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Dec 2009 12:11:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NJVRS-0007ON-Hg for bug-gnu-emacs@gnu.org; Sat, 12 Dec 2009 12:07:38 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NJVRN-0007HC-9Q for bug-gnu-emacs@gnu.org; Sat, 12 Dec 2009 12:07:37 -0500 Original-Received: from [199.232.76.173] (port=43196 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NJVRN-0007Gx-42 for bug-gnu-emacs@gnu.org; Sat, 12 Dec 2009 12:07:33 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:60770) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NJVRM-0007WG-KI for bug-gnu-emacs@gnu.org; Sat, 12 Dec 2009 12:07:32 -0500 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 nBCH7SW6027253; Sat, 12 Dec 2009 09:07:29 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nBCGtAu4025009; Sat, 12 Dec 2009 08:55:10 -0800 Resent-Date: Sat, 12 Dec 2009 08:55:10 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Chong Yidong Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Sat, 12 Dec 2009 16:55:10 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 5145 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 5145-submit@emacsbugs.donarmstrong.com id=B5145.126063610622556 (code B ref 5145); Sat, 12 Dec 2009 16:55:10 +0000 Original-Received: (at 5145) by emacsbugs.donarmstrong.com; 12 Dec 2009 16:41:46 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from pantheon-po29.its.yale.edu (pantheon-po29.its.yale.edu [130.132.50.124]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nBCGfim4022542 for <5145@emacsbugs.donarmstrong.com>; Sat, 12 Dec 2009 08:41:45 -0800 Original-Received: from furry (adsl-99-58-202-243.dsl.wlfrct.sbcglobal.net [99.58.202.243]) (authenticated bits=0) by pantheon-po29.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id nBCGfcCF009646 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 12 Dec 2009 11:41:38 -0500 Original-Received: by furry (Postfix, from userid 1000) id 20786C071; Sat, 12 Dec 2009 11:41:38 -0500 (EST) X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sat, 12 Dec 2009 12:07:37 -0500 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:33527 Archived-At: > emacs -Q > > Compile the following program with gcc -g test.c -o test > > ,----[ test.c ] > | > | int main(int argc, char **args) > | { > | return 0; > | } > `---- > > Run the debugger with M-x gdb RET RET, and type run in the GDB-Buffer. > > Emacs starts to use 100% cpu for me, although the program has stopped. > Also, the Modeline says Debugger:run [unknown] I can reproduce this. The problem seems to go away if I revert the following change. Nick, could you take a look? Thanks. 2009-08-30 Nick Roberts * process.c (wait_reading_process_output): Keep the descriptor when pty is used by a non-child process, e.g., in I/O buffer of GDB this allows inferior to be restarted.