From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#28850: 26.0.90; Error running timer 'jit-lock-stealth-fontify': (error "Invalid search bound (wrong side of point)") Date: Tue, 17 Oct 2017 16:42:34 +0000 Message-ID: <20171017164234.GA4725@ACM> References: <83lgkcgzs9.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1508260801 15516 195.159.176.226 (17 Oct 2017 17:20:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 17 Oct 2017 17:20:01 +0000 (UTC) User-Agent: Mutt/1.7.2 (2016-11-26) Cc: 28850@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 17 19:19:51 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e4VWq-0002CN-Cl for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Oct 2017 19:19:44 +0200 Original-Received: from localhost ([::1]:40747 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4VWx-0004dh-QO for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Oct 2017 13:19:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47611) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4V1F-0002ws-S4 for bug-gnu-emacs@gnu.org; Tue, 17 Oct 2017 12:47:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e4V1B-0003pI-OM for bug-gnu-emacs@gnu.org; Tue, 17 Oct 2017 12:47:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37854) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e4V1B-0003p9-K8 for bug-gnu-emacs@gnu.org; Tue, 17 Oct 2017 12:47:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e4V1B-0000dL-E7 for bug-gnu-emacs@gnu.org; Tue, 17 Oct 2017 12:47:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Oct 2017 16:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28850 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.150825876731966 (code B ref -1); Tue, 17 Oct 2017 16:47:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Oct 2017 16:46:07 +0000 Original-Received: from localhost ([127.0.0.1]:46534 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e4V0J-0008JG-5f for submit@debbugs.gnu.org; Tue, 17 Oct 2017 12:46:07 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55755) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e4V0I-0008DI-8W for submit@debbugs.gnu.org; Tue, 17 Oct 2017 12:46:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e4V0C-0003JZ-FD for submit@debbugs.gnu.org; Tue, 17 Oct 2017 12:46:01 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:40987) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e4V0C-0003JU-Br for submit@debbugs.gnu.org; Tue, 17 Oct 2017 12:46:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46686) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4V0B-0001kH-2D for bug-gnu-emacs@gnu.org; Tue, 17 Oct 2017 12:45:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e4V06-0003G8-NA for bug-gnu-emacs@gnu.org; Tue, 17 Oct 2017 12:45:59 -0400 Original-Received: from ocolin.muc.de ([193.149.48.4]:17995 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1e4V06-0003ET-Hi for bug-gnu-emacs@gnu.org; Tue, 17 Oct 2017 12:45:54 -0400 Original-Received: (qmail 41564 invoked by uid 3782); 17 Oct 2017 16:45:50 -0000 Original-Received: from acm.muc.de (p548C70A0.dip0.t-ipconnect.de [84.140.112.160]) by colin.muc.de (tmda-ofmipd) with ESMTP; Tue, 17 Oct 2017 18:45:50 +0200 Original-Received: (qmail 4754 invoked by uid 1000); 17 Oct 2017 16:42:34 -0000 Content-Disposition: inline In-Reply-To: <83lgkcgzs9.fsf@gnu.org> X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:138632 Archived-At: Hello, Eli. On Sun, Oct 15, 2017 at 19:07:50 +0300, Eli Zaretskii wrote: > This bug is bugging me for quite some time now, and my hopes for it to > be resolved are now gone, so I finally sat down to debug it. > I have jit-lock-stealth turned on in my sessions, so whenever I > restart Emacs (e.g., when I build a new binary, or after a system > restart), and restore my session using desktop.el, Emacs starts > fontifying in the background. At some point, sometimes more than > once, I get this error: > Error running timer 'jit-lock-stealth-fontify': (error "Invalid search bound (wrong side of point)") > Today I ran Emacs under a debugger, and caught this error. The > details are below, but in a nutshell, CC mode's fontification > functions call re-search-forward with BOUND that is before point. I > hope the data below is enough to understand why that happens and fix > it; if not, please tell what additional data is needed to diagnose the > problem. > Here're the C and Lisp backtraces from the error, and some relevant > data that explains why the error happened: Thanks for the bug report, and what you've worked out, so far. I'm afraid it's going to be several days before I get a chance to look at it properly, with things in Real Life interfering significantly at the moment. I will look at it, though. [ .... ] -- Alan Mackenzie (Nuremberg, Germany).