From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#6942: 24.0.50; Uses 100% CPU and eats memory with trivial C++ code Date: Wed, 15 Sep 2010 18:26:46 +0000 Message-ID: <20100915182646.GA10526__23349.0602150143$1284576368$gmane$org@muc.de> References: <8739txrl2h.fsf@telefonica.net> <87d3st9wov.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1284576368 470 80.91.229.12 (15 Sep 2010 18:46:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 15 Sep 2010 18:46:08 +0000 (UTC) Cc: Nathaniel Flath , 6942@debbugs.gnu.org To: Chong Yidong , =?UTF-8?Q?=C3=93scar?= Fuentes Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 15 20:46:01 2010 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.69) (envelope-from ) id 1OvwzZ-00031h-5i for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Sep 2010 20:46:01 +0200 Original-Received: from localhost ([127.0.0.1]:39277 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ovwua-0005RW-5C for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Sep 2010 14:40:52 -0400 Original-Received: from [140.186.70.92] (port=56245 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OvwuS-0005Pe-A9 for bug-gnu-emacs@gnu.org; Wed, 15 Sep 2010 14:40:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OvwuL-00062e-EE for bug-gnu-emacs@gnu.org; Wed, 15 Sep 2010 14:40:38 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35646) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OvwuJ-000625-8X; Wed, 15 Sep 2010 14:40:35 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OvwTe-0004Ul-Dz; Wed, 15 Sep 2010 14:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Wed, 15 Sep 2010 18:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6942 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 6942-submit@debbugs.gnu.org id=B6942.128457433517261 (code B ref 6942); Wed, 15 Sep 2010 18:13:02 +0000 Original-Received: (at 6942) by debbugs.gnu.org; 15 Sep 2010 18:12:15 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OvwSs-0004UM-VO for submit@debbugs.gnu.org; Wed, 15 Sep 2010 14:12:15 -0400 Original-Received: from colin.muc.de ([193.149.48.1] helo=mail.muc.de) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OvwSq-0004UH-1D for 6942@debbugs.gnu.org; Wed, 15 Sep 2010 14:12:12 -0400 Original-Received: (qmail 27801 invoked by uid 3782); 15 Sep 2010 18:14:28 -0000 Original-Received: from acm.muc.de (pD9E23EB7.dip.t-dialin.net [217.226.62.183]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Wed, 15 Sep 2010 20:14:26 +0200 Original-Received: (qmail 11652 invoked by uid 1000); 15 Sep 2010 18:26:46 -0000 Content-Disposition: inline In-Reply-To: <87d3st9wov.fsf@stupidchicken.com> User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 15 Sep 2010 14:13:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org 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:40184 Archived-At: Hi, Yidong, Hi, Óscar, On Sat, Sep 04, 2010 at 02:43:12PM -0400, Chong Yidong wrote: > Óscar Fuentes writes: > > emacs -Q [ENTER] > > C-x C-f foo.cpp [ENTER] > > template > 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. > 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. I've just committed a fix, though I wasn't able to test it as thoroughly as I would like, because the trunk currently won't build. :-( I'd appreciate a confirmation from you that the bug is actually fixed. Thanks in advance! -- Alan Mackenzie (Nuremberg, Germany).