unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#60352: 30.0.50; Keep getting "Error in syntax_table logic for to-the-end intervals"
@ 2022-12-27  9:41 Ihor Radchenko
  2022-12-27 12:37 ` Eli Zaretskii
  2023-01-20 14:10 ` Ihor Radchenko
  0 siblings, 2 replies; 5+ messages in thread
From: Ihor Radchenko @ 2022-12-27  9:41 UTC (permalink / raw)
  To: 60352

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>





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#60352: 30.0.50; Keep getting "Error in syntax_table logic for to-the-end intervals"
  2022-12-27  9:41 bug#60352: 30.0.50; Keep getting "Error in syntax_table logic for to-the-end intervals" Ihor Radchenko
@ 2022-12-27 12:37 ` Eli Zaretskii
  2022-12-27 15:13   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-01-20 14:10 ` Ihor Radchenko
  1 sibling, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2022-12-27 12:37 UTC (permalink / raw)
  To: Ihor Radchenko, Stefan Monnier; +Cc: 60352

> From: Ihor Radchenko <yantar92@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?





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#60352: 30.0.50; Keep getting "Error in syntax_table logic for to-the-end intervals"
  2022-12-27 12:37 ` Eli Zaretskii
@ 2022-12-27 15:13   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 0 replies; 5+ messages in thread
From: Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-12-27 15:13 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Ihor Radchenko, 60352

>> 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






^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#60352: 30.0.50; Keep getting "Error in syntax_table logic for to-the-end intervals"
  2022-12-27  9:41 bug#60352: 30.0.50; Keep getting "Error in syntax_table logic for to-the-end intervals" Ihor Radchenko
  2022-12-27 12:37 ` Eli Zaretskii
@ 2023-01-20 14:10 ` Ihor Radchenko
  2023-01-20 15:13   ` Eli Zaretskii
  1 sibling, 1 reply; 5+ messages in thread
From: Ihor Radchenko @ 2023-01-20 14:10 UTC (permalink / raw)
  To: 60352

Ihor Radchenko <yantar92@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>





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#60352: 30.0.50; Keep getting "Error in syntax_table logic for to-the-end intervals"
  2023-01-20 14:10 ` Ihor Radchenko
@ 2023-01-20 15:13   ` Eli Zaretskii
  0 siblings, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2023-01-20 15:13 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: 60352-done

> From: Ihor Radchenko <yantar92@posteo.net>
> Date: Fri, 20 Jan 2023 14:10:34 +0000
> 
> Ihor Radchenko <yantar92@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.





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-01-20 15:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-27  9:41 bug#60352: 30.0.50; Keep getting "Error in syntax_table logic for to-the-end intervals" Ihor Radchenko
2022-12-27 12:37 ` Eli Zaretskii
2022-12-27 15:13   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-01-20 14:10 ` Ihor Radchenko
2023-01-20 15:13   ` Eli Zaretskii

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).