unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: "Basil L. Contovounesios" <contovob@tcd.ie>
Cc: 28850@debbugs.gnu.org
Subject: bug#28850: 26.0.90; Error running timer 'jit-lock-stealth-fontify': (error "Invalid search bound (wrong side of point)")
Date: Tue, 30 Apr 2019 09:24:25 +0000	[thread overview]
Message-ID: <20190430092425.GA4142@ACM> (raw)
In-Reply-To: <87o94oz210.fsf@tcd.ie>

Hello, Basil.

On Tue, Apr 30, 2019 at 02:51:03 +0100, Basil L. Contovounesios wrote:
> Eli Zaretskii <eliz@gnu.org> writes:

> >> Date: Wed, 25 Oct 2017 19:11:37 +0000
> >> Cc: 28850@debbugs.gnu.org
> >> From: Alan Mackenzie <acm@muc.de>

> >> Actually, it wasn't that difficult to amend that form generator.  Would
> >> you please try out the patch below, which should apply cleanly to
> >> master.

> > I think you've solved the problem, because I let Emacs run idle for 10
> > hours, and it didn't hit this error even once.

> It seems to have returned in some way.  I can't reproduce this on Emacs
> 26, but on latest master, the following steps:

> 0. emacs -Q
> 1. (progn (setq debug-on-error t)
>           (setq jit-lock-stealth-nice nil)
>           (setq jit-lock-stealth-time 0)
>           (find-function #'next-property-change))
> 2. C-x C-e

> almost immediately lead to the following backtrace:

> Debugger entered--Lisp error: (error "Invalid search bound (wrong side of point)")
>   search-forward-regexp("\\<\\(\\(?:enum\\)\\)\\>[^][{};/#=]*{" 1673 t)
>   c-font-lock-enum-body(1673)
>   font-lock-fontify-keywords-region(1123 1673 nil)
>   font-lock-default-fontify-region(1123 1673 nil)
>   c-font-lock-fontify-region(1173 1673 nil)
>   font-lock-fontify-region(1173 1673)
>   #f(compiled-function (fun) #<bytecode 0x1565bb8a9581>)(font-lock-fontify-region)
>   run-hook-wrapped(#f(compiled-function (fun) #<bytecode 0x1565bb8a9581>) font-lock-fontify-region)
>   jit-lock--run-functions(1173 1673)
>   jit-lock-fontify-now(1173 1673)
>   jit-lock-stealth-fontify(t)
>   apply(jit-lock-stealth-fontify t)
>   timer-event-handler([t 0 0 974323 nil jit-lock-stealth-fontify (t) idle 261000])

Yes, I see this too, on master.  However, I don't see it on Emacs 26.2,
even while running an up to date CC Mode.  So I think it's likely to be
the breaking of some (possibly implicit) interface requirement with CC Mode.

> I'm not sure if this says anything, but when the *Backtrace* buffer is
> displayed, the textprop.c buffer is marked as modified.  Could this be
> related to the before/after change machinery?

It could.  There's a macro in CC Mode, c-tentative-buffer-changes, which
executes a ,@body, then undoes its changes when the result of ,@body is
nil.  Possibly the exception happened there.

> A similar error I occasionally see, but have not yet figured out how to
> reproduce:

>   Error during redisplay: (jit-lock-function 19569)
>     signaled (error "Invalid search bound (wrong side of point)")

Maybe that's the same bug.  :-)

I'll look into this problem with find-function.

> Thanks,

> -- 
> Basil

[ .... ]

-- 
Alan Mackenzie (Nuremberg, Germany).





  reply	other threads:[~2019-04-30  9:24 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-15 16:07 bug#28850: 26.0.90; Error running timer 'jit-lock-stealth-fontify': (error "Invalid search bound (wrong side of point)") Eli Zaretskii
2017-10-17 16:42 ` Alan Mackenzie
2017-10-22 20:13 ` Alan Mackenzie
2017-10-24 14:46   ` Eli Zaretskii
2017-10-24 20:33     ` Alan Mackenzie
2017-10-25 19:11       ` Alan Mackenzie
2017-10-26 16:44         ` Eli Zaretskii
2017-10-26 18:36           ` Alan Mackenzie
2019-04-30  1:51           ` Basil L. Contovounesios
2019-04-30  9:24             ` Alan Mackenzie [this message]
2019-04-30 11:33             ` Alan Mackenzie
2019-04-30 12:57               ` Basil L. Contovounesios
2019-04-30 13:32                 ` Alan Mackenzie
2019-04-30 13:44                   ` Basil L. Contovounesios
2019-04-30 15:35                     ` Eli Zaretskii
2019-04-30 15:50                       ` Alan Mackenzie
2019-05-06 18:44                     ` Alan Mackenzie
2019-05-07  0:35                       ` Basil L. Contovounesios
2019-04-30 15:30                   ` Eli Zaretskii
2019-04-30 15:43                     ` Alan Mackenzie
2019-04-30 15:26                 ` Eli Zaretskii
2019-05-01 18:49                   ` Eli Zaretskii
2019-05-04 12:41                     ` Alan Mackenzie
2019-05-04 13:36                       ` Eli Zaretskii
2019-05-05  9:06                         ` Alan Mackenzie
2019-05-06 15:35                           ` Eli Zaretskii
2019-05-06 18:10                             ` Alan Mackenzie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190430092425.GA4142@ACM \
    --to=acm@muc.de \
    --cc=28850@debbugs.gnu.org \
    --cc=contovob@tcd.ie \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).