unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#6942: 24.0.50; Uses 100% CPU and eats memory with trivial C++ code
@ 2010-08-30  0:38 Óscar Fuentes
  2010-09-04 18:43 ` Chong Yidong
       [not found] ` <87d3st9wov.fsf@stupidchicken.com>
  0 siblings, 2 replies; 5+ messages in thread
From: Óscar Fuentes @ 2010-08-30  0:38 UTC (permalink / raw)
  To: 6942

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.


In GNU Emacs 24.0.50.3 (x86_64-unknown-linux-gnu, X toolkit)
 of 2010-08-12 on qcore
Windowing system distributor `The X.Org Foundation', version 11.0.10706000
configured using `configure  '--without-toolkit-scroll-bars' '--with-x-toolkit=lucid''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  whitespace-mode: t
  TeX-PDF-mode: t
  show-paren-mode: t
  diff-auto-refine-mode: t
  ido-everywhere: t
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t

Recent input:
M-x g n u s <return> C-x C-g q y <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <menu-bar> 
<help-menu> <send-emacs-bug-report>

Recent messages:
Reading active file from archive via nnfolder...
Opening nnfolder server on archive...done
Reading active file from archive via nnfolder...done
No new newsgroups
Checking new news...
Opening nntp server on news.gmane.org...done
Checking new news...done
No more unread newsgroups
Are you sure you want to quit reading news? (y or n) 
(No changes need to be saved)

Load-path shadows:
~/elisp/magit hides /usr/local/share/emacs/site-lisp/magit

Features:
(shadow sort mail-extr emacsbug parse-time nnfolder pop3 nnml nndraft
nnmh auth-source netrc gnus-agent gnus-srvr gnus-score score-mode
nnvirtual gnus-msg gnus-art mm-uu mml2015 epg-config mm-view smime
password-cache dig mailcap nntp gnus-cache gnus-sum nnoo gnus-group
time-date gnus-undo nnmail mail-source format-spec smtpmail sendmail
gnus-start gnus-spec gnus-int gnus-range message rfc822 mml mml-sec
mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045
ietf-drums mailabbrev gmm-utils mailheader gnus-win gnus gnus-ems
nnheader gnus-util mail-utils mm-util mail-prsvr package org-install
whitespace jka-compr find-func timeclock timeclock-x vc-git compile
comint lp0-mode preview prv-emacs info reporter desktop latex tex-style
tex-buf tex tex-site auto-loads paren uniquify magit ediff server
pcomplete psvn byte-opt warnings bytecomp byte-compile derived edmacro
kmacro wid-edit cl cl-19 log-edit ring pcvs-util add-log diff-mode pp
elp ediff-merg ediff-diff ediff-wind ediff-mult ediff-help ediff-init
ediff-util dired easymenu bbdb-autoloads bbdb regexp-opt timezone
easy-mmode ido advice help-fns advice-preload tooltip ediff-hook
vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image
fringe lisp-mode register page menu-bar rfn-eshadow timer select
scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core
frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai
tai-viet lao korean japanese hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help
simple abbrev loaddefs button minibuffer faces cus-face files
text-properties overlay md5 base64 format env code-pages mule custom
widget hashtable-print-readable backquote make-network-process
dynamic-setting font-render-setting x-toolkit x multi-tty emacs)





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#6942: 24.0.50; Uses 100% CPU and eats memory with trivial C++ code
  2010-08-30  0:38 bug#6942: 24.0.50; Uses 100% CPU and eats memory with trivial C++ code Óscar Fuentes
@ 2010-09-04 18:43 ` Chong Yidong
       [not found] ` <87d3st9wov.fsf@stupidchicken.com>
  1 sibling, 0 replies; 5+ messages in thread
From: Chong Yidong @ 2010-09-04 18:43 UTC (permalink / raw)
  To: Alan Mackenzie, Nathaniel Flath; +Cc: Óscar Fuentes, 6942

Óscar Fuentes <ofv@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.

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.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#6942: 24.0.50; Uses 100% CPU and eats memory with trivial C++ code
       [not found] ` <87d3st9wov.fsf@stupidchicken.com>
@ 2010-09-05 13:05   ` Alan Mackenzie
  2010-09-15 18:26   ` Alan Mackenzie
       [not found]   ` <20100915182646.GA10526@muc.de>
  2 siblings, 0 replies; 5+ messages in thread
From: Alan Mackenzie @ 2010-09-05 13:05 UTC (permalink / raw)
  To: Chong Yidong; +Cc: Óscar Fuentes, Nathaniel Flath, 6942

Hi, everybody!

On Sat, Sep 04, 2010 at 02:43:12PM -0400, Chong Yidong wrote:
> Óscar Fuentes <ofv@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).





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#6942: 24.0.50; Uses 100% CPU and eats memory with trivial C++ code
       [not found] ` <87d3st9wov.fsf@stupidchicken.com>
  2010-09-05 13:05   ` Alan Mackenzie
@ 2010-09-15 18:26   ` Alan Mackenzie
       [not found]   ` <20100915182646.GA10526@muc.de>
  2 siblings, 0 replies; 5+ messages in thread
From: Alan Mackenzie @ 2010-09-15 18:26 UTC (permalink / raw)
  To: Chong Yidong, Óscar Fuentes; +Cc: Nathaniel Flath, 6942

Hi, Yidong, Hi, Óscar,

On Sat, Sep 04, 2010 at 02:43:12PM -0400, Chong Yidong wrote:
> Óscar Fuentes <ofv@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.

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





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#6942: 24.0.50; Uses 100% CPU and eats memory with trivial C++ code
       [not found]   ` <20100915182646.GA10526@muc.de>
@ 2010-09-15 19:39     ` Óscar Fuentes
  0 siblings, 0 replies; 5+ messages in thread
From: Óscar Fuentes @ 2010-09-15 19:39 UTC (permalink / raw)
  To: Alan Mackenzie; +Cc: 6942-done, Chong Yidong, Nathaniel Flath

Hello Alan.

Alan Mackenzie <acm@muc.de> 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.
>
> 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.  :-(

Boostrapping did the trick for me.

> I'd appreciate a confirmation from you that the bug is actually fixed.
> Thanks in advance!

Yep, it works. Thanks!





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-09-15 19:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-30  0:38 bug#6942: 24.0.50; Uses 100% CPU and eats memory with trivial C++ code Óscar Fuentes
2010-09-04 18:43 ` Chong Yidong
     [not found] ` <87d3st9wov.fsf@stupidchicken.com>
2010-09-05 13:05   ` Alan Mackenzie
2010-09-15 18:26   ` Alan Mackenzie
     [not found]   ` <20100915182646.GA10526@muc.de>
2010-09-15 19:39     ` Óscar Fuentes

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).