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: Tue, 7 Feb 2012 19:20:33 +0000 Message-ID: <20120207192032.GA17530@acm.acm> References: <83wr89qcay.fsf@gnu.org> <83bopdcfe5.fsf@gnu.org> <20120206110957.GA2731@acm.acm> <83wr7zc2r2.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 1328642489 6086 80.91.229.3 (7 Feb 2012 19:21:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 7 Feb 2012 19:21:29 +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 Tue Feb 07 20:21:28 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 1RuqbW-0004lp-5T for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Feb 2012 20:21:26 +0100 Original-Received: from localhost ([::1]:45204 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuqbV-0005DP-NG for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Feb 2012 14:21:25 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:55397) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuqbQ-0005AA-Bt for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2012 14:21:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RuqbH-0001cm-Ey for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2012 14:21:20 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55693) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuqbC-0001bS-P3; Tue, 07 Feb 2012 14:21:06 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Ruqc7-0003vU-I9; Tue, 07 Feb 2012 14:22:03 -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: Tue, 07 Feb 2012 19:22:03 +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.132864251115052 (code B ref 10664); Tue, 07 Feb 2012 19:22:03 +0000 Original-Received: (at 10664) by debbugs.gnu.org; 7 Feb 2012 19:21:51 +0000 Original-Received: from localhost ([127.0.0.1]:59312 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ruqbt-0003uf-3v for submit@debbugs.gnu.org; Tue, 07 Feb 2012 14:21:49 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:43429 helo=mail.muc.de) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ruqbo-0003uR-Ns for 10664@debbugs.gnu.org; Tue, 07 Feb 2012 14:21:46 -0500 Original-Received: (qmail 45965 invoked by uid 3782); 7 Feb 2012 19:20:46 -0000 Original-Received: from acm.muc.de (pD9557B8E.dip.t-dialin.net [217.85.123.142]) by colin.muc.de (tmda-ofmipd) with ESMTP; Tue, 07 Feb 2012 20:20:44 +0100 Original-Received: (qmail 17559 invoked by uid 1000); 7 Feb 2012 19:20:33 -0000 Content-Disposition: inline In-Reply-To: <83wr7zc2r2.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:56664 Archived-At: Hi, Eli. I've done a binary chop on this, and the following revision made this bug apparent: revno: 106729 committer: Alan Mackenzie branch nick: trunk timestamp: Sat 2011-12-24 19:32:31 +0000 message: Introduce a mechanism to widen the region used in context font locking. Use this to protect declarations from losing their contexts. I'll see what I can work out from this. At least it's one of mine. ;-) -- Alan Mackenzie (Nuremberg, Germany). On Mon, Feb 06, 2012 at 07:04:17PM +0200, Eli Zaretskii wrote: > > Date: Mon, 6 Feb 2012 11:09:57 +0000 > > Cc: 10664@debbugs.gnu.org > > From: Alan Mackenzie > > 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'm quite sure I did. But that was on Windows, where C-g is less > powerful than on Posix platforms (since keyboard input is not > interrupt driven). So it could be that what you can interrupt on > GNU/Linux, I cannot on Windows. > > I was able to run elp on this, and I've a fairly good idea where it's got > > stuck, but not yet why. > Let me know if you need any further help. > > > > 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. :-( > That's good, because I needed to kill that session in order to rebuild > Emacs. > > Can you restart this Emacs session? > No, but I can start another and do the same (i.e. wait for it to hang > in the same way). The problem is reproducible in my configuration. > But I think it would be better to wait for you to fix that problem you > are zeroing in, and then see if it also fixes my hangs. > Thanks.