From: Dirk Farin <d.s.farin@tue.nl>
Cc: bug-cc-mode@gnu.org, bug-gnu-emacs@gnu.org
Subject: Re: emacs hangs in c++ font-lock-mode
Date: Sat, 16 Apr 2005 19:34:00 +0200 [thread overview]
Message-ID: <42614C88.8050704@tue.nl> (raw)
In-Reply-To: <Pine.LNX.3.96.1050415203406.254A-100000@acm.acm>
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.
next prev parent reply other threads:[~2005-04-16 17:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1466.1113474986.2895.bug-gnu-emacs@gnu.org>
2005-04-16 16:50 ` emacs hangs in c++ font-lock-modeo Alan Mackenzie
2005-04-16 17:34 ` Dirk Farin [this message]
2005-04-14 10:24 emacs hangs in c++ font-lock-mode Dirk Farin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42614C88.8050704@tue.nl \
--to=d.s.farin@tue.nl \
--cc=bug-cc-mode@gnu.org \
--cc=bug-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).