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#10664: 24.0.93; JIT font-lock infloops in a C file Date: Mon, 6 Feb 2012 11:09:57 +0000 Message-ID: <20120206110957.GA2731@acm.acm> References: <83wr89qcay.fsf@gnu.org> <83bopdcfe5.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 1328526694 14618 80.91.229.3 (6 Feb 2012 11:11:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Feb 2012 11:11:34 +0000 (UTC) Cc: 10664@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 06 12:11:33 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 1RuMTs-0006aZ-6J for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Feb 2012 12:11:32 +0100 Original-Received: from localhost ([::1]:36281 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuMTq-0002u3-Vx for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Feb 2012 06:11:30 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:34440) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuMTi-0002tl-TB for bug-gnu-emacs@gnu.org; Mon, 06 Feb 2012 06:11:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RuMTf-0005zq-1v for bug-gnu-emacs@gnu.org; Mon, 06 Feb 2012 06:11:22 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52752) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuMTZ-0005ym-18; Mon, 06 Feb 2012 06:11:13 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1RuMUM-0004Zj-7g; Mon, 06 Feb 2012 06:12:02 -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: Mon, 06 Feb 2012 11:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10664 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 10664-submit@debbugs.gnu.org id=B10664.132852666417518 (code B ref 10664); Mon, 06 Feb 2012 11:12:02 +0000 Original-Received: (at 10664) by debbugs.gnu.org; 6 Feb 2012 11:11:04 +0000 Original-Received: from localhost ([127.0.0.1]:56375 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RuMTP-0004YV-M0 for submit@debbugs.gnu.org; Mon, 06 Feb 2012 06:11:03 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:55543 helo=mail.muc.de) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RuMTN-0004Y5-D1 for 10664@debbugs.gnu.org; Mon, 06 Feb 2012 06:11:02 -0500 Original-Received: (qmail 57632 invoked by uid 3782); 6 Feb 2012 11:10:10 -0000 Original-Received: from acm.muc.de (pD9557EEC.dip.t-dialin.net [217.85.126.236]) by colin.muc.de (tmda-ofmipd) with ESMTP; Mon, 06 Feb 2012 12:10:07 +0100 Original-Received: (qmail 2775 invoked by uid 1000); 6 Feb 2012 11:09:57 -0000 Content-Disposition: inline In-Reply-To: <83bopdcfe5.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:56548 Archived-At: Hi, Eli. On Sun, Feb 05, 2012 at 08:18:58PM +0200, Eli Zaretskii wrote: > > Date: Mon, 30 Jan 2012 20:23:49 +0200 > > From: Eli Zaretskii > > I don't have a recipe starting from "emacs -Q", sorry. > > I left my freshly built Emacs 24.0.93 running, and when I returned to > > it a few hours later, I found it unresponsive, endlessly showing in > > the echo area "JIT lock socket.c", interspersed with GC messages > > (I have garbage-collection-messages set non-nil). > > Breaking into Emacs with a debugger produced the backtrace below (it's > > an optimized build, so the backtrace may be inaccurate, sorry). I > > attach the file socket.c (part of the Guile sources) as well. I got something similar for this socket.c. I load it into emacs -Q, then start scrolling downwards, a page at a time. The first five scrolls are fine. Then it hangs on the sixth. However, typing C-g (maybe twice) frees it up, and it does the scroll. Careful perusal reveals that the fontification is incomplete. From now on, most key sequences must be followed by C-g to perform their commands. ;-(. Did you actually try C-g when your session hung? I was able to run elp on this, and I've a fairly good idea where it's got stuck, but not yet why. > > I still have that session in a debugger, so if someone wants me to > > look around and show some values, I can do that. I'm not sure I'd be able to make much out of debugger results. I'm not familiar enough with the internals of Emacs. :-( Can you restart this Emacs session? If so, could you try out C-g (assuming you haven't already done so). > > Lisp Backtrace: > > "c-in-knr-argdecl" (0x82df24) > > "byte-code" (0x82e030) > > "c-beginning-of-decl-1" (0x82e2d4) > > "c-set-fl-decl-start" (0x82e444) > > "c-context-set-fl-decl-start" (0x82e5b4) > > 0x4264f80 PVEC_COMPILED > > "mapc" (0x82e874) > > "c-font-lock-fontify-region" (0x82e9e4) > > "font-lock-fontify-region" (0x82ec68) > > "run-hook-with-args" (0x82ec64) > > "byte-code" (0x82ed60) > > "jit-lock-fontify-now" (0x82f034) > > "jit-lock-stealth-fontify" (0x82f278) > > "apply" (0x82f274) > > "byte-code" (0x82f370) > > "timer-event-handler" (0x82f64c) > > (gdb) p symbol > > $1 = 50731778 > > (gdb) xtype > > Lisp_Symbol > > (gdb) xsymbol > > $2 = (struct Lisp_Symbol *) 0x3061b00 > > "buffer-undo-list" > > (gdb) -- Alan Mackenzie (Nuremberg, Germany).