From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" 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, 30 Apr 2019 02:51:03 +0100 Message-ID: <87o94oz210.fsf@tcd.ie> References: <83lgkcgzs9.fsf@gnu.org> <20171022201340.GA16074@ACM> <834lqoa9jj.fsf@gnu.org> <20171024203312.GA5875@ACM> <20171025191137.GA16060@ACM> <83wp3h7tar.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="157449"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Alan Mackenzie , 28850@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 30 04:00:12 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hLI44-000ens-D7 for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Apr 2019 04:00:12 +0200 Original-Received: from localhost ([127.0.0.1]:37743 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLI43-0005Qa-FN for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Apr 2019 22:00:11 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40696) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLI3w-0005QA-6D for bug-gnu-emacs@gnu.org; Mon, 29 Apr 2019 22:00:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hLI3u-0007jx-KZ for bug-gnu-emacs@gnu.org; Mon, 29 Apr 2019 22:00:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54959) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hLI3u-0007jq-H5 for bug-gnu-emacs@gnu.org; Mon, 29 Apr 2019 22:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hLI3u-0000V0-Cn for bug-gnu-emacs@gnu.org; Mon, 29 Apr 2019 22:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Apr 2019 02:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28850 X-GNU-PR-Package: emacs Original-Received: via spool by 28850-submit@debbugs.gnu.org id=B28850.15565895731851 (code B ref 28850); Tue, 30 Apr 2019 02:00:02 +0000 Original-Received: (at 28850) by debbugs.gnu.org; 30 Apr 2019 01:59:33 +0000 Original-Received: from localhost ([127.0.0.1]:40270 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hLI3R-0000Tm-7A for submit@debbugs.gnu.org; Mon, 29 Apr 2019 21:59:33 -0400 Original-Received: from mail-ed1-f41.google.com ([209.85.208.41]:45531) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hLI3P-0000TX-Kp for 28850@debbugs.gnu.org; Mon, 29 Apr 2019 21:59:32 -0400 Original-Received: by mail-ed1-f41.google.com with SMTP id g57so4290192edc.12 for <28850@debbugs.gnu.org>; Mon, 29 Apr 2019 18:59:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:in-reply-to:date:references:user-agent :message-id:mime-version:content-transfer-encoding; bh=39/K6N4lH5FM3STScfi9zsl1zRU/O/GSMw+yTZAdpFg=; b=K3nfDhejxmre9OuM/yC8oA8xdatdZ9jdzniOnYTk/lg+zaRvTuq8bhDyLhvcpwywqq EmwWho8xv/j12vitbQl4ZiB6zJvvBvT6xKL1PA8iRZkTgyzgfb0v+e2va/VJSXXl9rL+ ZaIluPWGaDugkRwHNw3G/8a7aizQNVYOKg9r04ajYdCFMntLNj1LkRRAC7vMbqcGqFvx /ZBQu74f+QSPDhL8HWIrA7g07VzMEfsp8ECOBbDdFJ3hRCG85tpWKLuKI9UttTjLQ9XT typYErbfy+gWdDin2yzUD99ucThzyvQbSVQuwiyZ2Uw+gfc50pnSjEDa49AtV4wWYLpD 0K8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:date:references :user-agent:message-id:mime-version:content-transfer-encoding; bh=39/K6N4lH5FM3STScfi9zsl1zRU/O/GSMw+yTZAdpFg=; b=TX+TTuKQ3ZVJYGzOCtpkBfOW/k20AUs9BhM8Zypr+KMSJVK6f5MJKw5MMsijM0vKXR yUqWH8W3WdBw25tAK7drnSiWheKqx5RzlXWxoeOap8NCn5vEISGNypAYlppDGgOLgfsh d80BUk1QvON4AZ1WfU6PZCOfMEWdtkCE6K1qC9a7ZBYT9wK1225275jN4lcVG0qZdxXm HgfQNEm2Kr1are1MjKVJzRI4teHj/m6ZiC31HXaK1RhyVLyIv6inGezlglZVGhpT/8FS fXG/0nHjxZCcS6lJ1XcftEjzBVhuItIxv++B+DiECFnVO+fu6A59BX0gwvLPVj1PNeIW +3Vg== X-Gm-Message-State: APjAAAWyOS9hkXE4q7iwHF3bl3gKbe58I4p5FbgbyEmjYq6sjdIugpJx 4O6y3VmM9i6dGLsiqUznp4bHQw== X-Google-Smtp-Source: APXvYqxjmqkNMMcsRWl0X8MYqSznTt+wBR/6ONO0MGu9yTMaHTSsnJZXI6cXASsgCir8iOUo+tlcIA== X-Received: by 2002:a17:906:2606:: with SMTP id h6mr8751850ejc.211.1556589565453; Mon, 29 Apr 2019 18:59:25 -0700 (PDT) Original-Received: from localhost ([2a02:8084:20e2:c380:8cad:ae29:555d:852d]) by smtp.gmail.com with ESMTPSA id m4sm9818330ede.0.2019.04.29.18.59.24 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 29 Apr 2019 18:59:24 -0700 (PDT) In-Reply-To: <83wp3h7tar.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 26 Oct 2017 19:44:28 +0300") Original-Received: from localhost ([2a02:8084:20e2:c380:8cad:ae29:555d:852d]) by smtp.gmail.com with ESMTPSA id x21sm1834433eju.83.2019.04.29.18.51.08 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 29 Apr 2019 18:51:08 -0700 (PDT) X-TUID: qLxIYn5VH3+m 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: 209.51.188.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:158471 Archived-At: Eli Zaretskii writes: >> Date: Wed, 25 Oct 2017 19:11:37 +0000 >> Cc: 28850@debbugs.gnu.org >> From: Alan Mackenzie >>=20 >> 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 p= oint)") search-forward-regexp("\\<\\(\\(?:enum\\)\\)\\>[^][{};/#=3D]*{" 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) #)(font-lock-fontify-= region) run-hook-wrapped(#f(compiled-function (fun) #) f= ont-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 2= 61000]) 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? 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)") Thanks, --=20 Basil In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll= bars) of 2019-04-30 built on thunk Repository revision: f478082f9ff22ff41fbd9616ebea75757f9a0311 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12003000 System Description: Debian GNU/Linux buster/sid Configured using: 'configure 'CC=3Dccache gcc' 'CFLAGS=3D-O2 -march=3Dnative' --config-cache --prefix=3D/home/blc/.local --with-mailutils --with-x-toolkit=3Dlucid --with-modules --with-file-notification=3Dyes --with-x' Configured features: XAW3D XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11 XDBE XIM MODULES THREADS LIBSYSTEMD JSON PDUMPER LCMS2 GMP Package: CC Mode 5.33.2 (C/*l) Buffer Style: GNU c-emacs-features: (pps-extended-state col-0-paren posix-char-classes gen-st= ring-delim gen-comment-delim syntax-properties 1-bit) current state: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (setq c-basic-offset 2 c-comment-only-line-offset '(0 . 0) c-indent-comment-alist '((anchored-comment column . 0) (end-block space . = 1) (cpp-end-block space . 2)) c-indent-comments-syntactically-p nil c-block-comment-prefix "" c-comment-prefix-regexp '((pike-mode . "//+!?\\|\\**") (awk-mode . "#+") (other . "//+\\|\\**")) c-doc-comment-style '((java-mode . javadoc) (pike-mode . autodoc) (c-mode . gtkdoc)) c-cleanup-list '(scope-operator) c-hanging-braces-alist '((substatement-open before after) (arglist-cont-no= nempty)) c-hanging-colons-alist nil c-hanging-semi&comma-criteria '(c-semi&comma-inside-parenlist) c-backslash-column 48 c-backslash-max-column 72 c-special-indent-hook '(c-gnu-impose-minimum) c-label-minimum-indentation 1 c-offsets-alist '((inexpr-class . +) (inexpr-statement . +) (lambda-intro-cont . +) (inlambda . c-lineup-inexpr-block) (template-args-cont c-lineup-template-args +) (incomposition . +) (inmodule . +) (innamespace . +) (inextern-lang . +) (composition-close . 0) (module-close . 0) (namespace-close . 0) (extern-lang-close . 0) (composition-open . 0) (module-open . 0) (namespace-open . 0) (extern-lang-open . 0) (objc-method-call-cont c-lineup-ObjC-method-call-colons c-lineup-ObjC-method-call + ) (objc-method-args-cont . c-lineup-ObjC-method-args) (objc-method-intro . [0]) (friend . 0) (cpp-define-intro c-lineup-cpp-define +) (cpp-macro-cont . +) (cpp-macro . [0]) (inclass . +) (stream-op . c-lineup-streamop) (arglist-cont-nonempty c-lineup-gcc-asm-reg c-lineup-arglist) (arglist-cont c-lineup-gcc-asm-reg 0) (comment-intro c-lineup-knr-region-comment c-lineup-comment) (catch-clause . 0) (else-clause . 0) (do-while-closure . 0) (access-label . -) (case-label . 0) (substatement . +) (statement-case-intro . +) (statement . 0) (brace-entry-open . 0) (brace-list-entry . 0) (brace-list-close . 0) (block-close . 0) (block-open . 0) (inher-cont . c-lineup-multi-inher) (inher-intro . +) (member-init-cont . c-lineup-multi-inher) (member-init-intro . +) (annotation-var-cont . +) (annotation-top-cont . 0) (topmost-intro . 0) (knr-argdecl . 0) (func-decl-cont . +) (inline-close . 0) (class-close . 0) (class-open . 0) (defun-block-intro . +) (defun-close . 0) (defun-open . 0) (c . c-lineup-C-comments) (string . c-lineup-dont-change) (topmost-intro-cont first c-lineup-topmost-intro-cont c-lineup-gnu-DEFUN-intro-cont ) (brace-list-intro first c-lineup-2nd-brace-entry-in-arglist c-lineup-class-decl-init-+ + ) (brace-list-open . +) (inline-open . 0) (arglist-close . c-lineup-arglist) (arglist-intro . c-lineup-arglist-intro-after-paren) (statement-cont . +) (statement-case-open . +) (label . 0) (substatement-label . 0) (substatement-open . +) (knr-argdecl-intro . 5) (statement-block-intro . +) ) c-buffer-is-cc-mode 'c-mode c-tab-always-indent t c-syntactic-indentation t c-syntactic-indentation-in-macros t c-ignore-auto-fill '(string cpp code) c-auto-align-backslashes t c-backspace-function 'backward-delete-char-untabify c-delete-function 'delete-char c-electric-pound-behavior nil c-default-style '((java-mode . "java") (awk-mode . "awk") (other . "gnu")) c-enable-xemacs-performance-kludge-p nil c-old-style-variable-behavior nil defun-prompt-regexp nil tab-width 8 comment-column 32 parse-sexp-ignore-comments t parse-sexp-lookup-properties t auto-fill-function nil comment-multi-line t comment-start-skip "\\(//+\\|/\\*+\\)\\s *" fill-prefix nil fill-column 70 paragraph-start "[ ]*\\(//+\\|\\**\\)[ ]*$\\|^\f" adaptive-fill-mode t adaptive-fill-regexp "[ ]*\\(//+\\|\\**\\)[ ]*\\([ ]*\\([-=E2=80=93!|#%= ;>*=C2=B7=E2=80=A2=E2=80=A3=E2=81=83=E2=97=A6]+[ ]*\\)*\\)" )