GNU bug report logs - #66637
29.1; Emacs crashes with activating tree-sitter modes

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Kristjon Ciko <kristjoc@HIDDEN>; dated Thu, 19 Oct 2023 12:56:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 66637 <at> debbugs.gnu.org:


Received: (at 66637) by debbugs.gnu.org; 20 Oct 2023 11:34:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 20 07:34:02 2023
Received: from localhost ([127.0.0.1]:38821 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qtnlS-00077s-4t
	for submit <at> debbugs.gnu.org; Fri, 20 Oct 2023 07:34:02 -0400
Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]:51335)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1qtnlR-00077X-0d
 for 66637 <at> debbugs.gnu.org; Fri, 20 Oct 2023 07:34:01 -0400
Received: by mail-ed1-x533.google.com with SMTP id
 4fb4d7f45d1cf-53df747cfe5so1008212a12.2
 for <66637 <at> debbugs.gnu.org>; Fri, 20 Oct 2023 04:33:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1697801607; x=1698406407; darn=debbugs.gnu.org;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=uqTpI8kjclFdgrW1GtGxhlkV9Aoe/qzGJ7rQuLe4mi8=;
 b=iGta5fYWE9THcn/Nsx85UaudnUAd10gx7aLKepJeOLL2J9m/41QVz47Hsy0SpFGd/u
 sHTJOFMQlui7gap5wBlS3aoYHGnU5cbp0KTNhCTvmxVogQjtF06qOZxJFrSmExZ2J7Cb
 tBpSs4BeY0vehgAs6+K2p6Sx3SCVD8pQh0MLpo1EOg3C+BlTXLk00G0aNggI26vFAlaQ
 uddtPBm1LWIRNAhEVYkgOTGCQi/LfozgYv6KM8Ewct3ETLFzTcl9f/HWgl9fhI7O2SHW
 kyd9oM3gMsLCSc6Mt5TwpNFK4R+kYgHqDtcpfHegUF+HOaDNNXypa61TAm2QFlz+gM6K
 E+Nw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1697801607; x=1698406407;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=uqTpI8kjclFdgrW1GtGxhlkV9Aoe/qzGJ7rQuLe4mi8=;
 b=C6CgbwX9x8LygbKZqEqkG7c8ARLyXQKGxL+xGCrLI8UdxzKedCwomq+AyCVLolAvtN
 lTnD9LCVhuxeTtvsSbBz3asiD8YSyFXMYAGeN0t7eSpKfbN9LOObLSglH3BXKxTqYeiZ
 mFUBn+Uw510LWML57ZIcxhzTGZ0Pj9Rg5TE9dBzIXYHc01q3YjHDaCbW5sOh+sLhTwIJ
 ImndQEORxN4D1F9QJ26C8AFQoE0CMCaimcLddqZ5OmdmaTe0jM1LgXMHz9laoCZRAlqj
 o7pBz0ANprRiNoLEE63M8bE6vU+wZAwKfm0JPQUvrCKpDraM1naX1wc1Xcw5SioAFrgI
 0B6w==
X-Gm-Message-State: AOJu0Yz9+uqsT0BM+I2OXYnQErL1HAhCqHSr8dAqTnNlNCKZBX3F0MhL
 rPbwK/5fHT51GAtWT5683NaNsJHbit4=
X-Google-Smtp-Source: AGHT+IFoXe84+Ga+zA4R0i09mq1QZNiZ10EYz+R94EwYKki1YbT81xbC6zXyOh7JIV8SvEEvrqhq/w==
X-Received: by 2002:a50:d0c5:0:b0:53d:bde4:fa15 with SMTP id
 g5-20020a50d0c5000000b0053dbde4fa15mr1217641edf.0.1697801607437; 
 Fri, 20 Oct 2023 04:33:27 -0700 (PDT)
Received: from Pro.fritz.box (pd9e365ba.dip0.t-ipconnect.de. [217.227.101.186])
 by smtp.gmail.com with ESMTPSA id
 t20-20020a50ab54000000b00533e915923asm1301236edc.49.2023.10.20.04.33.26
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 20 Oct 2023 04:33:27 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: Kristjon Ciko <kristjoc@HIDDEN>
Subject: Re: bug#66637: 29.1; Emacs crashes with activating tree-sitter modes
In-Reply-To: <879c6144884f46fcbb0ac6b8d5a178f0@HIDDEN> (Kristjon Ciko's
 message of "Fri, 20 Oct 2023 11:09:33 +0000")
References: <3171ef13c57b47768e9449047337ca95@HIDDEN>
 <83jzriu5v3.fsf@HIDDEN> <879c6144884f46fcbb0ac6b8d5a178f0@HIDDEN>
Date: Fri, 20 Oct 2023 13:33:26 +0200
Message-ID: <m2fs25sf3t.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 66637
Cc: Eli Zaretskii <eliz@HIDDEN>,
 "66637 <at> debbugs.gnu.org" <66637 <at> debbugs.gnu.org>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Kristjon Ciko <kristjoc@HIDDEN> writes:

> It seems like this is a MacOS-specific issue; more precisely, a MacOS Sonoma-specific since I did not have this problem before the upgrade.
>
> I reinstalled Emacs using `sudo port install emacs-app` and I found
> out that the issue occurs **ONLY** when Emacs (vanilla Emacs, no
> config files involved) is launched from the Spotlight search, which
> points to /Applications/MacPorts/Emacs.app.  Everything works just
> fine if I run emacs from the terminal (`which emacs` =>
> /Applications/MacPorts/Emacs.app/Contents/MacOS/emacs)
>
> Same case with my own config; launching it from terminal seems the way to go.

Have you make sure that Emacs, when started via Spotlight for instance,
has the same environment variables that you have in the shell (PATH for
example)? It doesn't if you don't do something, like using the
exec-path-from-shell package.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66637; Package emacs. Full text available.

Message received at 66637 <at> debbugs.gnu.org:


Received: (at 66637) by debbugs.gnu.org; 20 Oct 2023 11:22:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 20 07:22:23 2023
Received: from localhost ([127.0.0.1]:38788 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qtnaA-00045a-7I
	for submit <at> debbugs.gnu.org; Fri, 20 Oct 2023 07:22:23 -0400
Received: from mail-out02.uio.no ([2001:700:100:8210::71]:60427)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <kristjoc@HIDDEN>) id 1qtnOG-0003k3-FD
 for 66637 <at> debbugs.gnu.org; Fri, 20 Oct 2023 07:10:07 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ifi.uio.no; 
 s=key2103;
 h=MIME-Version:Content-Transfer-Encoding:Content-Type:In-Reply-To:
 References:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To:Content-ID:
 Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
 :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe:
 List-Post:List-Owner:List-Archive;
 bh=Ix3KkeijLblzI35yOVGDl0zB50c+QyBHbL4qaJHj6rM=; b=ERWk2QXmXaaKxmXyblQ8/11BoW
 S/oszKIfFu1CbSozhD1qWAyuap7e1KXeXspJH3ku/DGLzunWSA/ZPH0vlYjRiDQyKxbDBW5grgwLw
 dKyM/50/7GLpXNfknczHl2ZUAJGflWk7Jjp2byG0yrqw83jFcgXkZpO/DI28yzXJrGhRD+w0uD1cq
 +pYw5xuIvlzW6zuldQOylVIB/EZZtVDkeTeCXqckEOPszv+PmYrAcag5rrpoCoSfxbFN/FvE3MggL
 NsCc2S9DlASJBypUXLdK/19xeFymVa6KVDsBgYBOB2aygwus6GmIrHwhd1TVs1l03xvkQ5dHnNbx4
 4yZ1IBkg==;
Received: from mail-mx01.uio.no ([129.240.10.26])
 by mail-out02.uio.no with esmtps (TLS1.2) tls
 TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 (Exim 4.96)
 (envelope-from <kristjoc@HIDDEN>) id 1qtnNm-003Ol9-0R;
 Fri, 20 Oct 2023 13:09:34 +0200
Received: from mail-ex31.exprod.uio.no ([129.240.52.51])
 by mail-mx01.uio.no with esmtps (TLS1.2:ECDHE-ECDSA-AES256-GCM-SHA384:256)
 (Exim 4.96) (envelope-from <kristjoc@HIDDEN>)
 id 1qtnNl-0007oO-1q; Fri, 20 Oct 2023 13:09:34 +0200
Received: from mail-ex23.exprod.uio.no (2001:700:100:120::122) by
 mail-ex31.exprod.uio.no (2001:700:100:52::51) with Microsoft SMTP Server
 (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 15.2.1258.27; Fri, 20 Oct 2023 13:09:33 +0200
Received: from mail-ex23.exprod.uio.no ([fe80::968e:1f6d:9df8:75be]) by
 mail-ex23.exprod.uio.no ([fe80::968e:1f6d:9df8:75be%7]) with mapi id
 15.02.1258.027; Fri, 20 Oct 2023 13:09:33 +0200
From: Kristjon Ciko <kristjoc@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#66637: 29.1; Emacs crashes with activating tree-sitter modes
Thread-Topic: bug#66637: 29.1; Emacs crashes with activating tree-sitter modes
Thread-Index: AQHaAmzxZ83MzAMGyUOO+18SNOwXsLBREu7fgAFwZ2c=
Date: Fri, 20 Oct 2023 11:09:33 +0000
Message-ID: <879c6144884f46fcbb0ac6b8d5a178f0@HIDDEN>
References: <3171ef13c57b47768e9449047337ca95@HIDDEN>,
 <83jzriu5v3.fsf@HIDDEN>
In-Reply-To: <83jzriu5v3.fsf@HIDDEN>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [2001:700:100:8042::222]
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-UiO-SPF-Received: Received-SPF: neutral (mail-mx01.uio.no: 129.240.52.51 is
 neither permitted nor denied by domain of ifi.uio.no) client-ip=129.240.52.51;
 envelope-from=kristjoc@HIDDEN; helo=mail-ex31.exprod.uio.no; 
X-UiO-Spam-info: not spam, SpamAssassin (score=-5.0, required=5.0,
 autolearn=disabled, AWL=0.000, UIO_MAIL_IS_INTERNAL=-5)
X-UiO-Scanned: DD032C3BF3A4EA28223203ADF8CCDF117CDD470B
X-UiOonly: 7F907890BC81682AA74D74E8E4A876A97FA1630C
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 66637
X-Mailman-Approved-At: Fri, 20 Oct 2023 07:22:21 -0400
Cc: "66637 <at> debbugs.gnu.org" <66637 <at> debbugs.gnu.org>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

It seems like this is a MacOS-specific issue; more precisely, a MacOS Sonom=
a-specific since I did not have this problem before the upgrade.

I reinstalled Emacs using `sudo port install emacs-app` and I found out tha=
t the issue occurs **ONLY** when Emacs (vanilla Emacs, no config files invo=
lved) is launched from the Spotlight search, which points to /Applications/=
MacPorts/Emacs.app.  Everything works just fine if I run emacs from the ter=
minal (`which emacs` =3D> /Applications/MacPorts/Emacs.app/Contents/MacOS/e=
macs)

Same case with my own config; launching it from terminal seems the way to g=
o.

Cheers=20
________________________________________
From: Eli Zaretskii <eliz@HIDDEN>
Sent: Thursday, October 19, 2023 2:57 PM
To: Kristjon Ciko
Cc: 66637 <at> debbugs.gnu.org
Subject: Re: bug#66637: 29.1; Emacs crashes with activating tree-sitter mod=
es

> From: Kristjon Ciko <kristjoc@HIDDEN>
> Date: Thu, 19 Oct 2023 09:17:11 +0000
>
>
> How to reproduce:
>
> ;; Launch Emacs
> emacs -Q
>
> ;; Install grammars for C and C++
> M-x treesit-install-language-grammar
> ;; Libraries installed to ~/.emacs.d/tree-sitter/libtree-sitter-c.dylib
> and ~/.emacs.d/tree-sitter/libtree-sitter-cpp.dylib
>
> ;; Open a C file
> C-x C-f test.c
>
> ;; Activate c-ts-mode

This doesn't crash for me, although I use c-ts-mode all the time.

I'm not on macOS, so either this is macOS-specific, or your personal
copies of the tree-sitter and/or the grammar libraries is faulty.  In
any case, please show the backtrace from the crashes by running Emacs
under a debugger.

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66637; Package emacs. Full text available.

Message received at 66637 <at> debbugs.gnu.org:


Received: (at 66637) by debbugs.gnu.org; 19 Oct 2023 12:58:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 19 08:58:33 2023
Received: from localhost ([127.0.0.1]:36078 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qtSbh-0003R1-IQ
	for submit <at> debbugs.gnu.org; Thu, 19 Oct 2023 08:58:33 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:59648)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1qtSbf-0003Qp-7T
 for 66637 <at> debbugs.gnu.org; Thu, 19 Oct 2023 08:58:32 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1qtSb9-0002QM-7C; Thu, 19 Oct 2023 08:57:59 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=AikfYPQ2BmNdVW++bxPH/CU+xeXxQCw8QiQAYxblMCM=; b=bTJSp46uA8HT
 hZprpqsV6/gAnzZYWOOWesllhOWrWjkBIYuLjo9WE477fFgiMfv5Toi8cmILq7FgLJl7uKawNk9hD
 td8mcwDedb0R2ZIGoKlwSIm9p6ymuoE+kmR4viSLyUf2a/c3IFsCTsVtHHnv5kbjyySLv3s+hbW0B
 MVEZxVOXKG+4u/M++iDurYFd1vyk0lGwd51Vw91L1Qn/FZHzcHzuaDEKeNQGR4Zc3XD/BE+hiuQs8
 UdllCJCzEuEYqVLLAgRTZxxiAC8e0erP4vIezPOe2MNheMnspC4aQK2LPrsX+sx6H8RHyl7yKmHST
 a+qvHJu5dnly+UuVD+eVQQ==;
Date: Thu, 19 Oct 2023 15:57:52 +0300
Message-Id: <83jzriu5v3.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Kristjon Ciko <kristjoc@HIDDEN>
In-Reply-To: <3171ef13c57b47768e9449047337ca95@HIDDEN> (message from
 Kristjon Ciko on Thu, 19 Oct 2023 09:17:11 +0000)
Subject: Re: bug#66637: 29.1; Emacs crashes with activating tree-sitter modes
References: <3171ef13c57b47768e9449047337ca95@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 66637
Cc: 66637 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Kristjon Ciko <kristjoc@HIDDEN>
> Date: Thu, 19 Oct 2023 09:17:11 +0000
> 
> 
> How to reproduce:
> 
> ;; Launch Emacs
> emacs -Q
> 
> ;; Install grammars for C and C++
> M-x treesit-install-language-grammar
> ;; Libraries installed to ~/.emacs.d/tree-sitter/libtree-sitter-c.dylib
> and ~/.emacs.d/tree-sitter/libtree-sitter-cpp.dylib
> 
> ;; Open a C file
> C-x C-f test.c
> 
> ;; Activate c-ts-mode

This doesn't crash for me, although I use c-ts-mode all the time.

I'm not on macOS, so either this is macOS-specific, or your personal
copies of the tree-sitter and/or the grammar libraries is faulty.  In
any case, please show the backtrace from the crashes by running Emacs
under a debugger.

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#66637; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 19 Oct 2023 12:55:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 19 08:55:13 2023
Received: from localhost ([127.0.0.1]:36072 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qtSYR-0003Ln-Ot
	for submit <at> debbugs.gnu.org; Thu, 19 Oct 2023 08:55:13 -0400
Received: from lists.gnu.org ([2001:470:142::17]:55744)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <kristjoc@HIDDEN>) id 1qtPAP-0002Mg-62
 for submit <at> debbugs.gnu.org; Thu, 19 Oct 2023 05:18:11 -0400
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 <kristjoc@HIDDEN>)
 id 1qtP9o-00018s-0W
 for bug-gnu-emacs@HIDDEN; Thu, 19 Oct 2023 05:17:36 -0400
Received: from mail-out04.uio.no ([2001:700:100:8210::76])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <kristjoc@HIDDEN>)
 id 1qtP9j-0005OY-W8
 for bug-gnu-emacs@HIDDEN; Thu, 19 Oct 2023 05:17:31 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ifi.uio.no; 
 s=key2103;
 h=MIME-Version:Content-Transfer-Encoding:Content-Type:Message-ID:
 Date:Subject:To:From:Sender:Reply-To:Cc:Content-ID:Content-Description:
 Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:
 In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:
 List-Post:List-Owner:List-Archive;
 bh=5BTh0yyBeCPKAPbXH4d0xQkSnZgFjwnLOrFF2NDe9wA=; b=r5+Ic7oX1kPgff2BzvMp8k1Ki4
 FY96nA0sO4f74EZmrxnxLuwwNHRaoSzpcu54zupYiS1AICLeOzTgxrGrhrftSVjW9h0Tjp7nbBd01
 Nsbcb6ud1Em4IwzyYCASpQZm1tpvEZlbpzGJQuYy7n3M6p3jSpHjZRejVyc4yym2URTSzStYFuCTZ
 h3rvUvuaviDA1ZuidTWdWEzx2VnVDWbmoT19gI/jzyLwUCOJO/6PLVDWPUKMo23SiNliI3/WKr88d
 p0smzSUsW9xw8uBdXRgbXyTpVgoduK+rmfexWQpn8N6MnIRvK7XDggJmQcxcbdh1I8j3VnYUpy7df
 EqwEqyzw==;
Received: from mail-mx02.uio.no ([129.240.10.43])
 by mail-out04.uio.no with esmtps (TLS1.2) tls
 TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 (Exim 4.96)
 (envelope-from <kristjoc@HIDDEN>) id 1qtP9U-002xaJ-31
 for bug-gnu-emacs@HIDDEN; Thu, 19 Oct 2023 11:17:12 +0200
Received: from mail-ex22.exprod.uio.no ([129.240.120.121])
 by mail-mx02.uio.no with esmtps (TLS1.2:ECDHE-ECDSA-AES256-GCM-SHA384:256)
 (Exim 4.96) (envelope-from <kristjoc@HIDDEN>) id 1qtP9U-0004Za-0X
 for bug-gnu-emacs@HIDDEN; Thu, 19 Oct 2023 11:17:12 +0200
Received: from mail-ex23.exprod.uio.no (2001:700:100:120::122) by
 mail-ex22.exprod.uio.no (2001:700:100:120::121) with Microsoft SMTP Server
 (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 15.2.1258.27; Thu, 19 Oct 2023 11:17:11 +0200
Received: from mail-ex23.exprod.uio.no ([fe80::968e:1f6d:9df8:75be]) by
 mail-ex23.exprod.uio.no ([fe80::968e:1f6d:9df8:75be%7]) with mapi id
 15.02.1258.027; Thu, 19 Oct 2023 11:17:11 +0200
From: Kristjon Ciko <kristjoc@HIDDEN>
To: "bug-gnu-emacs@HIDDEN" <bug-gnu-emacs@HIDDEN>
Subject: 29.1; Emacs crashes with activating tree-sitter modes
Thread-Topic: 29.1; Emacs crashes with activating tree-sitter modes
Thread-Index: AQHaAmzxZ83MzAMGyUOO+18SNOwXsA==
Date: Thu, 19 Oct 2023 09:17:11 +0000
Message-ID: <3171ef13c57b47768e9449047337ca95@HIDDEN>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [2001:700:100:8042::222]
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-UiO-SPF-Received: Received-SPF: neutral (mail-mx02.uio.no: 129.240.120.121
 is neither permitted nor denied by domain of ifi.uio.no)
 client-ip=129.240.120.121; envelope-from=kristjoc@HIDDEN;
 helo=mail-ex22.exprod.uio.no; 
X-UiO-Spam-info: not spam, SpamAssassin (score=-5.4, required=5.0,
 autolearn=disabled, AWL=-0.400, UIO_MAIL_IS_INTERNAL=-5)
X-UiO-Scanned: 1B64838C980B482E5EBD01632AD4FFE6B7C1FB9F
X-UiOonly: 64DF77DFC566790C0E0604B0BC022CFEB97B1E2B
Received-SPF: pass client-ip=2001:700:100:8210::76;
 envelope-from=kristjoc@HIDDEN; helo=mail-out04.uio.no
X-Spam_score_int: -19
X-Spam_score: -2.0
X-Spam_bar: --
X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Thu, 19 Oct 2023 08:55:10 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.3 (/)


How to reproduce:

;; Launch Emacs
emacs -Q

;; Install grammars for C and C++
M-x treesit-install-language-grammar
;; Libraries installed to ~/.emacs.d/tree-sitter/libtree-sitter-c.dylib
and ~/.emacs.d/tree-sitter/libtree-sitter-cpp.dylib

;; Open a C file
C-x C-f test.c

;; Activate c-ts-mode



In GNU Emacs 29.1 (build 2, aarch64-apple-darwin23.0.0, NS
 appkit-2487.00 Version 14.0 (Build 23A344)) of 2023-10-04 built on
 macbookpro.local
Windowing system distributor 'Apple', version 10.3.2487
System Description:  macOS 14.0

Configured using:
 'configure --prefix=3D/opt/local --disable-silent-rules --without-dbus
 --without-gconf --without-libotf --without-m17n-flt --with-libgmp
 --with-gnutls --with-json --with-xml2 --with-modules --with-sqlite3
 --with-webp --infodir /opt/local/share/info/emacs --with-ns
 --with-lcms2 --without-harfbuzz --without-imagemagick --without-xaw3d
 --with-rsvg --with-native-compilation=3Daot --with-tree-sitter
 'CFLAGS=3D-pipe -Os -Wno-attributes
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch
 arm64' 'CPPFLAGS=3D-I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk'
 'LDFLAGS=3D-L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-rpath
 /opt/local/lib/gcc12 -Wl,-no_pie
 -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk
 -arch arm64''

Configured features:
ACL GIF GLIB GMP GNUTLS JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP
NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM ZLIB

Important settings:
  locale-coding-system: utf-8-unix

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 org-element org-persist org-id org-refile
avl-tree generator oc-basic ol-eww eww xdg url-queue thingatpt mm-url
ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect gnus-art mm-uu mml2015
mm-view mml-smime smime gnutls dig gnus-sum shr pixel-fill kinsoku
url-file svg dom browse-url url url-proxy url-privacy url-expand
url-methods url-history url-cookie generate-lisp-file url-domsuf
url-util url-parse auth-source eieio eieio-core json map byte-opt
url-vars gnus-group gnus-undo gnus-start gnus-dbus dbus xml gnus-cloud
nnimap nnmail mail-source utf7 nnoo parse-time gnus-spec gnus-int
gnus-range gnus-win gnus nnheader range wid-edit ol-docview doc-view
filenotify jka-compr image-mode exif ol-bibtex bibtex iso8601 ol-bbdb
ol-w3m ol-doi org-link-doi org ob ob-tangle ob-ref ob-lob ob-table
ob-exp org-macro org-src ob-comint org-pcomplete pcomplete comint
ansi-osc ansi-color ring org-list org-footnote org-faces org-entities
noutline outline ob-emacs-lisp ob-core ob-eval org-cycle org-table ol
org-fold org-fold-core org-keys oc org-loaddefs find-func cal-menu
calendar cal-loaddefs org-version org-compat org-macs format-spec
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 mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils time-date cl-loaddefs comp comp-cstr
warnings icons subr-x rx cl-seq cl-macs gv cl-extra help-mode bytecomp
byte-compile cl-lib rmc iso-transl tooltip cconv eldoc paren electric
uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel
term/ns-win ns-win ucs-normalize mule-util term/common-win 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 kqueue cocoa ns lcms2
multi-tty make-network-process native-compile emacs)

Memory information:
((conses 16 252019 20656)
 (symbols 48 20321 0)
 (strings 32 70906 3122)
 (string-bytes 1 2188700)
 (vectors 16 40178)
 (vector-slots 8 712572 28662)
 (floats 8 338 149)
 (intervals 56 355 0)
 (buffers 984 13))




Acknowledgement sent to Kristjon Ciko <kristjoc@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#66637; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 20 Oct 2023 11:45:01 UTC

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