From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dirk Farin Newsgroups: gmane.emacs.bugs Subject: Re: emacs hangs in c++ font-lock-mode Date: Sat, 16 Apr 2005 19:34:00 +0200 Message-ID: <42614C88.8050704@tue.nl> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1113672669 4148 80.91.229.2 (16 Apr 2005 17:31:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 16 Apr 2005 17:31:09 +0000 (UTC) Cc: bug-cc-mode@gnu.org, bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 16 19:31:07 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DMr7u-0006Sq-2x for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Apr 2005 19:30:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DMrBd-00088D-4t for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Apr 2005 13:34:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DMrBa-00086q-K1 for bug-gnu-emacs@gnu.org; Sat, 16 Apr 2005 13:34:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DMrBY-00085e-9v for bug-gnu-emacs@gnu.org; Sat, 16 Apr 2005 13:34:25 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DMrBX-00084v-DU for bug-gnu-emacs@gnu.org; Sat, 16 Apr 2005 13:34:23 -0400 Original-Received: from [131.155.3.6] (helo=kweetal.tue.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DMrCJ-0006Ut-1x; Sat, 16 Apr 2005 13:35:11 -0400 Original-Received: by kweetal.tue.nl (Postfix, from userid 40) id 0B4EE13B6CB; Sat, 16 Apr 2005 19:34:02 +0200 (CEST) Original-Received: from [131.155.241.245] (t-indiv6-245.athome.tue.nl [131.155.241.245]) by kweetal.tue.nl (Postfix) with ESMTP id B8B2813B6A4; Sat, 16 Apr 2005 19:34:00 +0200 (CEST) User-Agent: Debian Thunderbird 1.0 (X11/20050116) X-Accept-Language: en-us, en Original-To: Alan Mackenzie In-Reply-To: X-Spam-DCC: : X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:11173 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:11173 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.