From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: dan orzechowski Newsgroups: gmane.emacs.bugs Subject: bug#61351: 29.0.60; emacs 29 crashes when treesit-load-name-override-list is set Date: Tue, 7 Feb 2023 13:45:13 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000f6748e05f4208c01" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29612"; mail-complaints-to="usenet@ciao.gmane.io" To: 61351@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 07 19:50:40 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pPT3A-0007UT-Ft for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Feb 2023 19:50:40 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pPT1r-0003UL-Pu; Tue, 07 Feb 2023 13:49:19 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pPT1c-0003FB-6h for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2023 13:49:07 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pPT1b-0001A3-8w for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2023 13:49:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pPT1b-0004q2-4g for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2023 13:49:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: dan orzechowski Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Feb 2023 18:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61351 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.167579569818486 (code B ref -1); Tue, 07 Feb 2023 18:49:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Feb 2023 18:48:18 +0000 Original-Received: from localhost ([127.0.0.1]:54062 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pPT0r-0004ny-T6 for submit@debbugs.gnu.org; Tue, 07 Feb 2023 13:48:18 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:54698) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pPSyK-0004gZ-CZ for submit@debbugs.gnu.org; Tue, 07 Feb 2023 13:45:41 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pPSyB-00007J-0R for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2023 13:45:32 -0500 Original-Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pPSy7-0000Zw-7A for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2023 13:45:30 -0500 Original-Received: by mail-ed1-x534.google.com with SMTP id u21so17331619edv.3 for ; Tue, 07 Feb 2023 10:45:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=JY4AwN0P2QPo2zcA01XAleNaJH8MFe0VvJq4V3WuhHs=; b=GPu3Fnqs7DyWJhyohC61YvKujupQ1LYm1Q4l1IcJPmePMrgtOjFUamw8+ppLxA1plU AVBguFnJmh8w5DneUP2QkkeF3EPFT1+uWf0oO/ZnLQgymtTLUT6MVGQofgW2PdgMBLTi aUvbNmbNJzH6fvxMfFpNf8+mQ1LzoKSgNLRnqoEEDQM6PJVKEcKeA8LNn/YTqhnXnZP1 1q+uvZK1oWfLElU5iP06MZrmfcqcmKH5O841WSpjdZv4AzWQZ8StxYCvdOYYWoSWaKCe /FEJXu7ZvRzzX7SXcbG2hOR4f6u+qorlNnjrK5barW3VPtnHArvC1Gak0kgN97Yg3vfn 7Dyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=JY4AwN0P2QPo2zcA01XAleNaJH8MFe0VvJq4V3WuhHs=; b=r/PcHRXaAYFMtTJxr6SAUTi5uxibPO33BUYKaWXGoB5O0kP5LVezo0IGbOh6ymDRHR h76o81h2rsJOp0m3q709fbuqJKHiynfCyt8eTWlVwDzLbS8CxAopoVbG9ww9uItSv/fg NMBC7ZtyxVDA5IC/JnTqWuJ6Jx7F5Ek8TgBJbQP+AM+tm7vOWCr5d/BuZ9W/I0ri18hh zznFIkk7xKTHy/LDCfi/4U4LyVk2sJfVSk1ISaBYd7WkHyzjy8X37N/8gIqans74zBBw E72JQDuxCngS0QDv+W/V5hGzmnqVVlNCmM0TQQRm89BSNBgKnf0CHAFvhgYKuusRLJfk VAUA== X-Gm-Message-State: AO0yUKVkwqV/IQy/ZOBA9ULzr2yqfZo3WzBOxSmCvc6rZK9wHrfg19KL gv4WB+AFLYLojC88fMc3wD9Kz0hGxBD7mhZDkloUriHV6gs= X-Google-Smtp-Source: AK7set+Z4Tge1tVLr3JhC2FIdQXI/H3VbU31kyf4+cM8ko5mOQJGq/3RJUvU7MrZxp46tAqcDwFcjbUU9GIXClDY+JM= X-Received: by 2002:a50:d4d4:0:b0:4aa:b2d2:3627 with SMTP id e20-20020a50d4d4000000b004aab2d23627mr1152859edj.31.1675795524644; Tue, 07 Feb 2023 10:45:24 -0800 (PST) Received-SPF: pass client-ip=2a00:1450:4864:20::534; envelope-from=orzechod@gmail.com; helo=mail-ed1-x534.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 07 Feb 2023 13:48:15 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:255072 Archived-At: --000000000000f6748e05f4208c01 Content-Type: text/plain; charset="UTF-8" 1. emacs -Q 2. `(setq treesit-load-name-override-list '((tsx "libtree-sitter-tsx" "tree_sitter_typescript")))` 3. `(tsx-ts-mode)` this also crashes for me: 1. emacs -Q 2. `(setq treesit-load-name-override-list '((typescript "libtree-sitter-typescript" "tree_sitter_typescript")))` 3. `(typescript-ts-mode)` which is surprising since this does not crash for me: 1. emacs -Q 2. `(typescript-ts-mode)` (it gives me a warning that the TSX language grammar is unavailable, which I would expect. but I am able to activate typescript-ts-mode and see the correct indentation and syntax highlighting.) I have libtree-sitter-tsx.so and libtree-sitter-typescript.so in ~/emacs.d/tree-sitter , both of which were created via `treesit-install-language-grammar` in case that matters. I believe the entrypoint for both libraries is `tree_sitter_typescript` but please correct me if I'm mistaken (FWIW opening a shell and running those .so files through `strings` does give that as a result). emacs was built in a container using this Dockerfile and these commands: https://github.com/orzechowskid/emacs-docker/blob/main/src/Dockerfile https://github.com/orzechowskid/emacs-docker/blob/main/src/build-emacs.sh In GNU Emacs 29.0.60 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.16.0) of 2023-02-07 built on buildkitsandbox Repository revision: 746748f5c283b98a221571e725833affe304a748 Repository branch: emacs-29 Windowing system distributor 'The X.Org Foundation', version 11.0.12013000 System Description: Ubuntu 22.04.1 LTS Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LIBSELINUX LIBSYSTEMD MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB Important settings: locale-coding-system: nil Major mode: Fundamental Minor modes in effect: tooltip-mode: t global-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 blink-cursor-mode: t buffer-read-only: 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 cl-print byte-opt gv bytecomp byte-compile treesit cl-seq thingatpt help-fns radix-tree help-mode 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 subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs 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/x-win x-win term/common-win x-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 move-toolbar gtk x-toolkit xinput2 x multi-tty make-network-process emacs) Memory information: ((conses 16 53605 19942) (symbols 48 6189 0) (strings 32 18850 1951) (string-bytes 1 509089) (vectors 16 11856) (vector-slots 8 172857 17236) (floats 8 31 50) (intervals 56 352 0) (buffers 984 12)) --000000000000f6748e05f4208c01 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

1. emacs -Q
2. `(setq treesit-load-name-override-li= st '((tsx "libtree-sitter-tsx" "tree_sitter_typescript&q= uot;)))`
3. `(tsx-ts-mode)`

this also crashes for me:

1. e= macs -Q
2. `(setq treesit-load-name-override-list '((typescript
&= quot;libtree-sitter-typescript" "tree_sitter_typescript")))`=
3. `(typescript-ts-mode)`

which is surprising since this does no= t crash for me:

1. emacs -Q
2. `(typescript-ts-mode)`

(it = gives me a warning that the TSX language grammar is unavailable,
which I= would expect. =C2=A0but I am able to activate typescript-ts-mode and
se= e the correct indentation and syntax highlighting.)

I have libtree-s= itter-tsx.so and libtree-sitter-typescript.so in
~/emacs.d/tree-sitter ,= both of which were created via
`treesit-install-language-grammar` in ca= se that matters.=C2=A0 I believe the entrypoint for both
libraries is `t= ree_sitter_typescript` but please correct me if I'm mistaken (FWIW open= ing a shell and=C2=A0running those .so files through `strings` does give th= at as a result).

emacs was built in a container using th= is Dockerfile and these commands:
= https://github.com/orzechowskid/emacs-docker/blob/main/src/build-emacs.sh


In GNU Emacs 29.0.60 (build 1, x86_64-pc-linux-gnu, GTK+ Vers= ion
=C2=A03.24.33, cairo version 1.16.0) of 2023-02-07 built on buildkit= sandbox
Repository revision: 746748f5c283b98a221571e725833affe304a748Repository branch: emacs-29
Windowing system distributor 'The X.Org= Foundation', version 11.0.12013000
System Description: Ubuntu 22.04= .1 LTS

Configured features:
CAIRO DBUS FREETYPE GIF GLIB GMP GNUT= LS GSETTINGS HARFBUZZ JPEG JSON
LIBSELINUX LIBSYSTEMD MODULES NOTIFY INO= TIFY PDUMPER PNG RSVG SECCOMP
SOUND THREADS TIFF TOOLKIT_SCROLL_BARS TRE= E_SITTER X11 XDBE XIM XINPUT2
XPM GTK3 ZLIB

Important settings:=C2=A0 locale-coding-system: nil

Major mode: Fundamental

Mi= nor modes in effect:
=C2=A0 tooltip-mode: t
=C2=A0 global-eldoc-mode:= t
=C2=A0 show-paren-mode: t
=C2=A0 electric-indent-mode: t
=C2=A0= mouse-wheel-mode: t
=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar-mode: t<= br>=C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-lock-mode: t
= =C2=A0 blink-cursor-mode: t
=C2=A0 buffer-read-only: t
=C2=A0 line-nu= mber-mode: t
=C2=A0 indent-tabs-mode: t
=C2=A0 transient-mark-mode: t=
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t
= =C2=A0 auto-compression-mode: t

Load-path shadows:
None found.
Features:
(shadow sort mail-extr cl-print byte-opt gv bytecomp byte= -compile
treesit cl-seq thingatpt help-fns radix-tree help-mode emacsbug= message
mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec=
password-cache epa derived epg rfc6068 epg-config gnus-util
text-pro= perty-search time-date subr-x mm-decode mm-bodies mm-encode
mail-parse r= fc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib
sendmail rfc20= 47 rfc2045 ietf-drums mm-util mail-prsvr mail-utils rmc
iso-transl toolt= ip cconv eldoc paren electric uniquify ediff-hook
vc-hooks lisp-float-ty= pe elisp-mode mwheel term/x-win x-win
term/common-win x-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 isea= rch easymenu timer select
scroll-bar mouse jit-lock font-lock syntax fon= t-core term/tty-colors
frame minibuffer nadvice seq simple cl-generic in= donesian philippine
cham georgian utf-8-lang misc-lang vietnamese tibeta= n thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romani= an slovak czech
european ethiopic indian cyrillic chinese composite emoj= i-zwj charscript
charprop case-table epa-hook jka-cmpr-hook help abbrev = obarray oclosure
cl-preloaded button loaddefs theme-loaddefs faces cus-f= ace macroexp
files window text-properties overlay sha1 md5 base64 format= env
code-pages mule custom widget keymap hashtable-print-readable backq= uote
threads dbusbind inotify dynamic-setting system-font-setting
fon= t-render-setting cairo move-toolbar gtk x-toolkit xinput2 x multi-tty
ma= ke-network-process emacs)

Memory information:
((conses 16 53605 1= 9942)
=C2=A0(symbols 48 6189 0)
=C2=A0(strings 32 18850 1951)
=C2= =A0(string-bytes 1 509089)
=C2=A0(vectors 16 11856)
=C2=A0(vector-slo= ts 8 172857 17236)
=C2=A0(floats 8 31 50)
=C2=A0(intervals 56 352 0)<= br>=C2=A0(buffers 984 12))
--000000000000f6748e05f4208c01--