From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#10792: 24.0.93; emacs goes comatose opening C header Date: Sat, 11 Feb 2012 20:22:53 +0000 Message-ID: <20120211202253.GC3969@acm.acm> References: <20120211200507.GB3969@acm.acm> <83k43tyvik.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1328991831 13915 80.91.229.3 (11 Feb 2012 20:23:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 11 Feb 2012 20:23:51 +0000 (UTC) Cc: 10792@debbugs.gnu.org, john@yates-sheets.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 11 21:23: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 1RwJU3-00027p-ET for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Feb 2012 21:23:47 +0100 Original-Received: from localhost ([::1]:56121 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RwJU2-0001pP-Tq for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Feb 2012 15:23:46 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:43134) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RwJU0-0001pF-Is for bug-gnu-emacs@gnu.org; Sat, 11 Feb 2012 15:23:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RwJTz-0001Z7-Kp for bug-gnu-emacs@gnu.org; Sat, 11 Feb 2012 15:23:44 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:32834) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RwJTx-0001YX-LD; Sat, 11 Feb 2012 15:23:41 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1RwJVF-0007hL-S8; Sat, 11 Feb 2012 15:25:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie 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:25: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.132899187629559 (code B ref 10792); Sat, 11 Feb 2012 20:25:01 +0000 Original-Received: (at 10792) by debbugs.gnu.org; 11 Feb 2012 20:24:36 +0000 Original-Received: from localhost ([127.0.0.1]:36457 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RwJUq-0007gi-2g for submit@debbugs.gnu.org; Sat, 11 Feb 2012 15:24:36 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:39849 helo=mail.muc.de) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RwJUo-0007ga-0G for 10792@debbugs.gnu.org; Sat, 11 Feb 2012 15:24:34 -0500 Original-Received: (qmail 24460 invoked by uid 3782); 11 Feb 2012 20:23:12 -0000 Original-Received: from acm.muc.de (pD951A921.dip.t-dialin.net [217.81.169.33]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 11 Feb 2012 21:23:10 +0100 Original-Received: (qmail 5128 invoked by uid 1000); 11 Feb 2012 20:22:53 -0000 Content-Disposition: inline In-Reply-To: <83k43tyvik.fsf@gnu.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de 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:56809 Archived-At: Hello, Eli. On Sat, Feb 11, 2012 at 10:17:55PM +0200, Eli Zaretskii wrote: > > 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? It hangs for me with font lock disabled. > 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? Sorry, yes. -- Alan Mackenzie (Nuremberg, Germany).