GNU bug report logs - #60352
30.0.50; Keep getting "Error in syntax_table logic for to-the-end intervals"

Previous Next

Package: emacs;

Reported by: Ihor Radchenko <yantar92 <at> posteo.net>

Date: Tue, 27 Dec 2022 09:43:01 UTC

Severity: normal

Found in version 30.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 60352 in the body.
You can then email your comments to 60352 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#60352; Package emacs. (Tue, 27 Dec 2022 09:43:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ihor Radchenko <yantar92 <at> posteo.net>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 27 Dec 2022 09:43:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ihor Radchenko <yantar92 <at> posteo.net>
To: bug-gnu-emacs <at> gnu.org
Subject: 30.0.50; Keep getting "Error in syntax_table logic for to-the-end
 intervals"
Date: Tue, 27 Dec 2022 09:41:56 +0000
Hi,

I keep getting the following backtrace:

Debugger entered--Lisp error: (error "Error in syntax_table logic for to-the-end intervals")
  (re-search-forward "\\(?:\\(?:\\<DEADLINE: *\\(\\(?:<\\(?:[[:digit:]]\\{4\\}-[..." nil move)

It only happens in Emacs 30 (master) and is not regular.

The error sounds like some kind of internal error.
Does it signify some Emacs issue? Or may it be third-party code issue?

Best,
Ihor

In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
 3.24.35, cairo version 1.17.6) of 2022-12-26 built on localhost
Repository revision: cc29fab3a66c59e77d0ff67c0f3e2e34ec80a03c
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101004
System Description: Gentoo Linux

Configured using:
 'configure --prefix=/usr --build=x86_64-pc-linux-gnu
 --host=x86_64-pc-linux-gnu --mandir=/usr/share/man
 --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
 --localstatedir=/var/lib --datarootdir=/usr/share
 --disable-silent-rules --docdir=/usr/share/doc/emacs-30.0.9999
 --htmldir=/usr/share/doc/emacs-30.0.9999/html --libdir=/usr/lib64
 --program-suffix=-emacs-30-vcs --includedir=/usr/include/emacs-30-vcs
 --infodir=/usr/share/info/emacs-30-vcs --localstatedir=/var
 --enable-locallisppath=/etc/emacs:/usr/share/emacs/site-lisp
 --without-compress-install --without-hesiod --without-pop
 --with-file-notification=inotify --with-pdumper --enable-acl
 --with-dbus --with-modules --without-gameuser --with-libgmp --with-gpm
 --with-native-compilation=aot --with-json --without-kerberos
 --without-kerberos5 --with-lcms2 --with-xml2 --without-mailutils
 --without-selinux --without-sqlite3 --with-gnutls --without-libsystemd
 --with-threads --without-tree-sitter --with-wide-int --with-sound=alsa
 --with-zlib --with-x --without-pgtk --without-ns --without-gconf
 --without-gsettings --without-toolkit-scroll-bars --with-xpm --with-xft
 --with-cairo --with-harfbuzz --without-libotf --without-m17n-flt
 --with-x-toolkit=gtk3 --with-xwidgets --with-gif --with-jpeg --with-png
 --with-rsvg --with-tiff --without-webp --with-imagemagick
 --with-dumping=pdumper 'CFLAGS=-march=native -O3 -pipe'
 'LDFLAGS=-Wl,-O1 -Wl,--as-needed''

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM HARFBUZZ IMAGEMAGICK
JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG
RSVG SECCOMP SOUND THREADS TIFF X11 XDBE XIM XINPUT2 XPM XWIDGETS GTK3
ZLIB

Important settings:
  value of $LC_COLLATE: C
  value of $LANG: en_US.utf8
  locale-coding-system: utf-8-unix

Memory information:
((conses 16 12323124 1209714)
 (symbols 48 88200 901)
 (strings 32 679891 79950)
 (string-bytes 1 56390157)
 (vectors 16 485822)
 (vector-slots 8 11654563 1455134)
 (floats 8 4210 7464)
 (intervals 56 230985 4918)
 (buffers 976 52))

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#60352; Package emacs. (Tue, 27 Dec 2022 12:38:02 GMT) Full text and rfc822 format available.

Message #8 received at 60352 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Ihor Radchenko <yantar92 <at> posteo.net>,
 Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 60352 <at> debbugs.gnu.org
Subject: Re: bug#60352: 30.0.50;
 Keep getting "Error in syntax_table logic for to-the-end intervals"
Date: Tue, 27 Dec 2022 14:37:13 +0200
> From: Ihor Radchenko <yantar92 <at> posteo.net>
> Date: Tue, 27 Dec 2022 09:41:56 +0000
> 
> I keep getting the following backtrace:
> 
> Debugger entered--Lisp error: (error "Error in syntax_table logic for to-the-end intervals")
>   (re-search-forward "\\(?:\\(?:\\<DEADLINE: *\\(\\(?:<\\(?:[[:digit:]]\\{4\\}-[..." nil move)
> 
> It only happens in Emacs 30 (master) and is not regular.
> 
> The error sounds like some kind of internal error.
> Does it signify some Emacs issue? Or may it be third-party code issue?

Adding Stefan.  Any comments or suggestions?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#60352; Package emacs. (Tue, 27 Dec 2022 15:14:01 GMT) Full text and rfc822 format available.

Message #11 received at 60352 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Ihor Radchenko <yantar92 <at> posteo.net>, 60352 <at> debbugs.gnu.org
Subject: Re: bug#60352: 30.0.50; Keep getting "Error in syntax_table logic
 for to-the-end intervals"
Date: Tue, 27 Dec 2022 10:13:21 -0500
>> Debugger entered--Lisp error: (error "Error in syntax_table logic for to-the-end intervals")
>>   (re-search-forward "\\(?:\\(?:\\<DEADLINE: *\\(\\(?:<\\(?:[[:digit:]]\\{4\\}-[..." nil move)
>>
>> It only happens in Emacs 30 (master) and is not regular.
>>
>> The error sounds like some kind of internal error.

It is, indeed.

>> Does it signify some Emacs issue? Or may it be third-party code issue?

No, it's a bug in the C code somewhere.
Presumably somewhere between the `regexp-emacs.c` code and the
`syntax.c` code.

The regexp code keeps a global state in `gl_state` to speed up looks up
of the `syntax-table` text-property.  The above error indicates that
this global state is inconsistent for some reason.

Maybe we somehow ran a regexp search during the regexp search?
I know this can happen via the automatic calls to `syntax-propertize`,
but `syntax.c:parse_sexp_propertize` is careful to (re)call
`SETUP_SYNTAX_TABLE` after running ELisp code, so that shouldn't be the
source of the problem.

Maybe there's some other way to re-enter regexp search and that one
isn't careful to call `SETUP_SYNTAX_TABLE` before returning to the outer
regexp search?


        Stefan





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#60352; Package emacs. (Fri, 20 Jan 2023 14:11:02 GMT) Full text and rfc822 format available.

Message #14 received at 60352 <at> debbugs.gnu.org (full text, mbox):

From: Ihor Radchenko <yantar92 <at> posteo.net>
To: 60352 <at> debbugs.gnu.org
Subject: Re: bug#60352: 30.0.50; Keep getting "Error in syntax_table logic
 for to-the-end intervals"
Date: Fri, 20 Jan 2023 14:10:34 +0000
Ihor Radchenko <yantar92 <at> posteo.net> writes:

> I keep getting the following backtrace:
>
> Debugger entered--Lisp error: (error "Error in syntax_table logic for to-the-end intervals")
>   (re-search-forward "\\(?:\\(?:\\<DEADLINE: *\\(\\(?:<\\(?:[[:digit:]]\\{4\\}-[..." nil move)

For the last few weeks, I am not seeing this issue anymore on the latest
master. I think that the bug can be closed as auto-magically resolved.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>




Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Fri, 20 Jan 2023 15:15:02 GMT) Full text and rfc822 format available.

Notification sent to Ihor Radchenko <yantar92 <at> posteo.net>:
bug acknowledged by developer. (Fri, 20 Jan 2023 15:15:02 GMT) Full text and rfc822 format available.

Message #19 received at 60352-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Ihor Radchenko <yantar92 <at> posteo.net>
Cc: 60352-done <at> debbugs.gnu.org
Subject: Re: bug#60352: 30.0.50;
 Keep getting "Error in syntax_table logic for to-the-end intervals"
Date: Fri, 20 Jan 2023 17:13:55 +0200
> From: Ihor Radchenko <yantar92 <at> posteo.net>
> Date: Fri, 20 Jan 2023 14:10:34 +0000
> 
> Ihor Radchenko <yantar92 <at> posteo.net> writes:
> 
> > I keep getting the following backtrace:
> >
> > Debugger entered--Lisp error: (error "Error in syntax_table logic for to-the-end intervals")
> >   (re-search-forward "\\(?:\\(?:\\<DEADLINE: *\\(\\(?:<\\(?:[[:digit:]]\\{4\\}-[..." nil move)
> 
> For the last few weeks, I am not seeing this issue anymore on the latest
> master. I think that the bug can be closed as auto-magically resolved.

OK, closing.  If you see this again, please reopen.

Thanks.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 18 Feb 2023 12:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 68 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.