emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#70559: closed (29.3; treesit crash emacs in json-ts-mode or js-ts-mo


From: GNU bug Tracking System
Subject: bug#70559: closed (29.3; treesit crash emacs in json-ts-mode or js-ts-mode)
Date: Thu, 25 Apr 2024 09:21:06 +0000

Your message dated Thu, 25 Apr 2024 12:19:48 +0300
with message-id <86wmol240b.fsf@gnu.org>
and subject line Re: bug#70559: 29.3; treesit crash emacs in json-ts-mode or 
js-ts-mode
has caused the debbugs.gnu.org bug report #70559,
regarding 29.3; treesit crash emacs in json-ts-mode or js-ts-mode
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
70559: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=70559
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: 29.3; treesit crash emacs in json-ts-mode or js-ts-mode Date: Thu, 25 Apr 2024 03:10:44 +0800

1. open a *.js file.
2. try to enable treesit mode with M-x js-ts-mode.
3. now emacs just crash with some logs and core dumped.

Here is the log:

```
$ emacs -Q
*** stack smashing detected ***: terminated
Fatal error 6: Aborted
Backtrace:
emacs(+0x140096)[0x5c5d29026096]
emacs(+0x20330)[0x5c5d28f06330]
emacs(+0x21153)[0x5c5d28f07153]
emacs(+0x29ad8d)[0x5c5d29180d8d]
/usr/lib/libc.so.6(+0x3c770)[0x7e0ffb6fd770]
/usr/lib/libc.so.6(+0x8d32c)[0x7e0ffb74e32c]
/usr/lib/libc.so.6(gsignal+0x18)[0x7e0ffb6fd6c8]
/usr/lib/libc.so.6(abort+0xd7)[0x7e0ffb6e54b8]
/usr/lib/libc.so.6(+0x25395)[0x7e0ffb6e6395]
/usr/lib/libc.so.6(+0x11475b)[0x7e0ffb7d575b]
/usr/lib/libc.so.6(+0x115a76)[0x7e0ffb7d6a76]
emacs(+0x24a063)[0x5c5d29130063]
/usr/lib/emacs/29.3/native-lisp/29.3-4b59e32f/treesit-37439c61-97df641d.eln(F747265657369742d666f6e742d6c6f636b2d666f6e746966792d726567696f6e_treesit_font_lock_fontify_region_0+0x1f2)[0x7e0fefe28832]
emacs(+0x1b661e)[0x5c5d2909c61e]
/usr/bin/../lib/emacs/29.3/native-lisp/29.3-4b59e32f/preloaded/font-lock-895216f6-1f3b244f.eln(F666f6e742d6c6f636b2d666f6e746966792d73796e746163746963616c6c792d726567696f6e_font_lock_fontify_syntactically_region_0+0x62)[0x7e0ff6e61f42]
emacs(+0x1b661e)[0x5c5d2909c61e]
/usr/bin/../lib/emacs/29.3/native-lisp/29.3-4b59e32f/preloaded/font-lock-895216f6-1f3b244f.eln(F666f6e742d6c6f636b2d64656661756c742d666f6e746966792d726567696f6e_font_lock_default_fontify_region_0+0x4af)[0x7e0ff6e5fbef]
emacs(+0x1b661e)[0x5c5d2909c61e]
/usr/bin/../lib/emacs/29.3/native-lisp/29.3-4b59e32f/preloaded/font-lock-895216f6-1f3b244f.eln(F666f6e742d6c6f636b2d666f6e746966792d726567696f6e_font_lock_fontify_region_0+0x93)[0x7e0ff6e5e873]
emacs(+0x2078be)[0x5c5d290ed8be]
emacs(+0x1b661e)[0x5c5d2909c61e]
emacs(+0x1bac31)[0x5c5d290a0c31]
emacs(+0x1b567c)[0x5c5d2909b67c]
/usr/bin/../lib/emacs/29.3/native-lisp/29.3-4b59e32f/preloaded/jit-lock-8a988e43-a9956d8b.eln(F6a69742d6c6f636b2d2d72756e2d66756e6374696f6e73_jit_lock__run_functions_0+0xd8)[0x7e0ff6abec88]
emacs(+0x1b661e)[0x5c5d2909c61e]
/usr/bin/../lib/emacs/29.3/native-lisp/29.3-4b59e32f/preloaded/jit-lock-8a988e43-a9956d8b.eln(F6a69742d6c6f636b2d666f6e746966792d6e6f77_jit_lock_fontify_now_0+0x80a)[0x7e0ff6abf59a]
emacs(+0x1b661e)[0x5c5d2909c61e]
/usr/bin/../lib/emacs/29.3/native-lisp/29.3-4b59e32f/preloaded/jit-lock-8a988e43-a9956d8b.eln(F6a69742d6c6f636b2d66756e6374696f6e_jit_lock_function_0+0x26f)[0x7e0ff6abe98f]
emacs(+0x1b661e)[0x5c5d2909c61e]
emacs(+0x29e8d1)[0x5c5d291848d1]
emacs(+0x4d90b)[0x5c5d28f3390b]
emacs(+0x53a10)[0x5c5d28f39a10]
emacs(+0x57d96)[0x5c5d28f3dd96]
emacs(+0x5da76)[0x5c5d28f43a76]
emacs(+0x54976)[0x5c5d28f3a976]
emacs(+0x76af9)[0x5c5d28f5caf9]
emacs(+0x7ea02)[0x5c5d28f64a02]
emacs(+0x6f4c3)[0x5c5d28f554c3]
emacs(+0x1b3aec)[0x5c5d29099aec]
emacs(+0x6f418)[0x5c5d28f55418]
emacs(+0x7315c)[0x5c5d28f5915c]
...
Aborted (core dumped)
```

I can provide the core dump file if needed, just tell me where should I
put it.


In GNU Emacs 29.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41,
cairo version 1.18.0)
System Description: Arch Linux

Configured using:
 'configure --with-pgtk --with-native-compilation=aot --sysconfdir=/etc
 --prefix=/usr --libexecdir=/usr/lib --with-tree-sitter
 --localstatedir=/var --with-cairo --disable-build-details
 --with-harfbuzz --with-libsystemd --with-modules 'CFLAGS=-march=x86-64
 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2
 -Wformat -Werror=format-security -fstack-clash-protection
 -fcf-protection -g
 -ffile-prefix-map=/build/emacs/src="" -flto=auto'
 'LDFLAGS=-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro
 -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto'
 'CXXFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions
 -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security
 -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g
 -ffile-prefix-map=/build/emacs/src="" -flto=auto''

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY
PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM GTK3 ZLIB

Important settings:
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=fcitx
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message mailcap yank-media puny dired
dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068
epg-config gnus-util text-property-search time-date mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs
comp comp-cstr warnings icons subr-x rx cl-seq cl-macs gv cl-extra
help-mode bytecomp byte-compile cl-lib sendmail rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils rmc iso-transl tooltip cconv
eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type
elisp-mode mwheel term/pgtk-win pgtk-win term/common-win pgtk-dnd
tool-bar dnd fontset image regexp-opt fringe tabulated-list replace
newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar
rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock
font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq
simple cl-generic indonesian philippine cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite emoji-zwj charscript charprop case-table
epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button
loaddefs theme-loaddefs faces cus-face macroexp files window
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget keymap hashtable-print-readable backquote threads dbusbind
inotify dynamic-setting system-font-setting font-render-setting cairo
gtk pgtk lcms2 multi-tty make-network-process native-compile emacs)

Memory information:
((conses 16 76853 8788)
 (symbols 48 7107 0)
 (strings 32 19596 1453)
 (string-bytes 1 594018)
 (vectors 16 15659)
 (vector-slots 8 327770 11052)
 (floats 8 27 46)
 (intervals 56 252 0)
 (buffers 984 11))

--- End Message ---
--- Begin Message --- Subject: Re: bug#70559: 29.3; treesit crash emacs in json-ts-mode or js-ts-mode Date: Thu, 25 Apr 2024 12:19:48 +0300
> From: Rudolf Schlatte <rudi@constantly.at>
> Date: Thu, 25 Apr 2024 09:58:39 +0200
> 
> Hao Fang <fanghao90s@gmail.com> writes:
> 
> > 1. open a *.js file.
> > 2. try to enable treesit mode with M-x js-ts-mode.
> > 3. now emacs just crash with some logs and core dumped.
> 
> Your tree-sitter got updated from 0.22.2 to 0.22.4 or above, which
> introduced an accidental incompatible change in the tree-sitter ABI.
> Recompiling Emacs from source fixed similar crashes for me.

Indeed, so I'm closing this bug, as the problem is not in Emacs.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]