From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#10792: 24.0.93; emacs goes comatose opening C header Date: Sat, 11 Feb 2012 22:17:55 +0200 Message-ID: <83k43tyvik.fsf@gnu.org> References: <20120211200507.GB3969@acm.acm> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1328991533 12014 80.91.229.3 (11 Feb 2012 20:18:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 11 Feb 2012 20:18:53 +0000 (UTC) Cc: 10792@debbugs.gnu.org, john@yates-sheets.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 11 21:18:50 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RwJPE-0007uS-6b for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Feb 2012 21:18:48 +0100 Original-Received: from localhost ([::1]:46495 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RwJPD-0000uq-I0 for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Feb 2012 15:18:47 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:42017) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RwJPA-0000u5-Ic for bug-gnu-emacs@gnu.org; Sat, 11 Feb 2012 15:18:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RwJP9-0000yA-Mo for bug-gnu-emacs@gnu.org; Sat, 11 Feb 2012 15:18:44 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:32830) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RwJP7-0000xq-Jn; Sat, 11 Feb 2012 15:18:41 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1RwJQP-0007a8-Np; Sat, 11 Feb 2012 15:20:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Sat, 11 Feb 2012 20:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10792 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 10792-submit@debbugs.gnu.org id=B10792.132899160029133 (code B ref 10792); Sat, 11 Feb 2012 20:20:01 +0000 Original-Received: (at 10792) by debbugs.gnu.org; 11 Feb 2012 20:20:00 +0000 Original-Received: from localhost ([127.0.0.1]:36453 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RwJQO-0007Zq-4k for submit@debbugs.gnu.org; Sat, 11 Feb 2012 15:20:00 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:40941) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RwJQL-0007Zc-EG for 10792@debbugs.gnu.org; Sat, 11 Feb 2012 15:19:58 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LZ800600W9E7U00@a-mtaout20.012.net.il> for 10792@debbugs.gnu.org; Sat, 11 Feb 2012 22:17:56 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.124.150.51]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LZ8005DOWDUF2E0@a-mtaout20.012.net.il>; Sat, 11 Feb 2012 22:17:55 +0200 (IST) In-reply-to: <20120211200507.GB3969@acm.acm> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:56808 Archived-At: > Date: Sat, 11 Feb 2012 20:05:07 +0000 > From: Alan Mackenzie > Cc: 10792@debbugs.gnu.org > > On Sat, Feb 11, 2012 at 12:26:36PM -0500, John Yates wrote: > > When I attemt to visit the following header emacs locks up. If > > I make the contents of the macro significantly shorted emacs is > > able to open and fontlock it successfully. To me this suggests > > some form of n-squared processing. > > For once, this problem has nothing to do with font locking. It doesn't? If I attach GDB to Emacs, I get this Lisp backtrace: Lisp Backtrace: "c-end-of-macro" (0x827d74) "c-syntactic-end-of-macro" (0x827fc4) "c-state-safe-place" (0x828224) "c-literal-limits" (0x828484) "c-set-fl-decl-start" (0x8286d4) "c-context-set-fl-decl-start" (0x828924) 0x3422320 PVEC_COMPILED "mapc" (0x828d04) "c-font-lock-fontify-region" (0x828f54) <<<<<<<<<<<<<<<<<<<<< "font-lock-fontify-region" (0x8292d8) <<<<<<<<<<<<<<<<<<<<< "run-hook-with-args" (0x8292d4) "byte-code" (0x8294a0) "jit-lock-fontify-now" (0x829894) <<<<<<<<<<<<<<<<<<<<< "jit-lock-function" (0x829c24) <<<<<<<<<<<<<<<<<<<<< "recenter" (0x82f6b4) "end-of-buffer" (0x82f954) "call-interactively" (0x82fb84) > It happens when the buffer length exceeds 3000 bytes. :-) You mean, the macro definition length, right?