GNU bug report logs - #6942
24.0.50; Uses 100% CPU and eats memory with trivial C++ code

Previous Next

Packages: emacs, cc-mode;

Reported by: Óscar Fuentes <ofv <at> wanadoo.es>

Date: Mon, 30 Aug 2010 00:38:02 UTC

Severity: normal

Found in version 24.0.50

Done: Óscar Fuentes <ofv <at> wanadoo.es>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Alan Mackenzie <acm <at> muc.de>
To: Chong Yidong <cyd <at> stupidchicken.com>
Cc: Óscar Fuentes <ofv <at> wanadoo.es>, Nathaniel Flath <flat0103 <at> gmail.com>, 6942 <at> debbugs.gnu.org
Subject: bug#6942: 24.0.50; Uses 100% CPU and eats memory with trivial C++ code
Date: Sun, 5 Sep 2010 13:05:16 +0000
Hi, everybody!

On Sat, Sep 04, 2010 at 02:43:12PM -0400, Chong Yidong wrote:
> Óscar Fuentes <ofv <at> wanadoo.es> writes:

> > emacs -Q [ENTER]
> > C-x C-f foo.cpp [ENTER]
> > template <typename T,

> > As soon as the comma is typed, Emacs hangs and starts eating several MB
> > of RAM per second. Pressing C-g takes effect after a few seconds.

When the comma is typed?  You should be so lucky!  I get an infinite
recursion on typing the <, after which nothing should surprise.  ;-)

> Thanks, I can reproduce the bug.  It seems to a regression due to the
> 2010-07-31 template changes in CC mode.  Alan or Nathaniel, could either
> of you please take a look?  Thanks.

The infinite recursion is in c-forward-<>-arglist-recur, a function which
has been changed quite a bit recently.

-- 
Alan Mackenzie (Nuremberg, Germany).




This bug report was last modified 14 years and 312 days ago.

Previous Next


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