bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacs hangs in c++ font-lock-mode


From: Dirk Farin
Subject: Re: emacs hangs in c++ font-lock-mode
Date: Sat, 16 Apr 2005 19:34:00 +0200
User-agent: Debian Thunderbird 1.0 (X11/20050116)


First the good news: the problem does not appear anymore in the current
Emacs CVS version 22.0.50 (with cc-mode 5.30.9).

I have got a C++ source file that causes "GNU Emacs 21.4.1" (current Debian
testing) to hang with 100% cpu. To reproduce the bug, load the attached
source file and turn font-lock-mode on in C++ mode. If you move the cursor
down, at some position, emacs will hang and accept no more keyboard inputs.

I know that everything will still be set up to their defaults, but could
you perhaps give us some more details just the same:

How powerful is your computer?  (Processor speed in MHz or GHz).

2.6 GHz, x86, but I tested on a variety of different systems with the
same result.

What version of CC Mode have you got?  (M-x c-version)

"Using CC Mode version 5.28"

Did you start your session with "emacs -q --no-site-file"?  (I.e. without
your .emacs and any site-lisp.el loaded.)  If not, do you still get the
problem when you do?

Does not change anything.

Does Emacs _always_ hang up, _usually_ hang up or _sometimes_ hang up?

always

How long does it take after loading the file before it hangs?  Does it
free up if you leave it running 8 or 12 hours or more?

It occurs immediately. Start a new emacs, load the provided source code,
scroll down and it hangs.
I didn't check for several hours, but it stays locked for at least
10 minutes without increasing memory consumption.

What support mode are you using in font lock?  (C-h v
font-lock-support-mode).  Probably jit-lock-mode, the default.  Does the
problem go away if you use lazy lock instead?  (Do M-: (setq

Yes, it it jit-lock-mode. If I switch to lazy mode, it locks already
while loading the file. Last message before it dies:
  "Fontifying emacs_hang.cc... (regexps...............)"





[OT good news:  My city council has just decided to use Debian as the
replacement for MS-Windows on its several thousand desktop PCs.  They're
hoping to start rolling it out at the end of this year.  :-]

Ja, schoen. Habe ich auch gerade in den DLF Nachrichten gehoert.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]