GNU bug report logs - #5145
23.1.50; GDB/CPU-Usage spikes

Previous Next

Package: emacs;

Reported by: Tom Rauchenwald <sehnsucht.nach.unendlichkeit <at> quantentunnel.de>

Date: Mon, 7 Dec 2009 16:25:05 UTC

Severity: important

Merged with 4545, 9839

Fixed in version 24.0.91

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Nick Roberts  <nickrob <at> snap.net.nz>
Cc: Tom Rauchenwald <sehnsucht.nach.unendlichkeit <at> quantentunnel.de>,
        5145 <at> debbugs.gnu.org
Subject: bug#5145: 23.1.50; GDB/CPU-Usage spikes
Date: Sat, 12 Dec 2009 11:41:38 -0500
> 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  <nickrob <at> snap.net.nz>

  * 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.



This bug report was last modified 13 years and 209 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.