From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#70438: Emacs error 6 abort when starting rust-ts-mode Date: Sun, 21 Apr 2024 07:47:28 +0300 Message-ID: <86jzkr8gpr.fsf@gnu.org> References: <868r1cgdk9.fsf@gnu.org> <0439FD61-C3EE-4438-B775-043FE098F41E@gmail.com> <86zfto8jfs.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11997"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 70438@debbugs.gnu.org, sh@bytekomplex.de To: Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 21 06:48:13 2024 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 1ryP7c-0002wi-RR for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 21 Apr 2024 06:48:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ryP7G-0006Oy-Tf; Sun, 21 Apr 2024 00:47:50 -0400 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 1ryP7E-0006OS-QZ for bug-gnu-emacs@gnu.org; Sun, 21 Apr 2024 00:47:48 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ryP7E-0002tS-IR for bug-gnu-emacs@gnu.org; Sun, 21 Apr 2024 00:47:48 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ryP7T-0001aP-9P for bug-gnu-emacs@gnu.org; Sun, 21 Apr 2024 00:48:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Apr 2024 04:48:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70438 X-GNU-PR-Package: emacs Original-Received: via spool by 70438-submit@debbugs.gnu.org id=B70438.17136748786055 (code B ref 70438); Sun, 21 Apr 2024 04:48:03 +0000 Original-Received: (at 70438) by debbugs.gnu.org; 21 Apr 2024 04:47:58 +0000 Original-Received: from localhost ([127.0.0.1]:40534 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ryP7M-0001ZJ-Gy for submit@debbugs.gnu.org; Sun, 21 Apr 2024 00:47:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44204) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ryP7K-0001Xx-BP for 70438@debbugs.gnu.org; Sun, 21 Apr 2024 00:47:55 -0400 Original-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 ) id 1ryP6x-0002nG-Rf; Sun, 21 Apr 2024 00:47:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=2mlqoLcdl2by81jpMycgY8Jcc07ai1Q2ElXCb7imw9A=; b=cwtiJAIF50qNV+iLYrq1 kHn3LiOcd9wTvwe8zWHYewinq9yRCuFTqPs4+NORSAZ8D1PPoxfW5go/FzWHfzWKDidR2xA5jaoVs sl+b0CTb/jbb7TTDEtQ++LVsx3CTpGSC1FvQ4gfD/ISJjbsp0SeYlB79zVl6kxfqRYIVJiS6vuHmt X++0JmpVzLeNrM0G0Epm1c+7yxen1/VG9ZC9GGZqTJtIlK5aKCJ0yFV86P+13lqF9//JllEAiiwxl x0WHv93Xk6VYxbWRBK1gyThVom4j/grOI4JanzrBNwD9bBfQowDzWt/loi/eBkVbyDVC+fNF4rnWd yNfs+K2UEnF+hg==; In-Reply-To: (message from Yuan Fu on Sat, 20 Apr 2024 15:20:41 -0700) 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:283755 Archived-At: > From: Yuan Fu > Date: Sat, 20 Apr 2024 15:20:41 -0700 > Cc: Stefan Heitmann , > 70438@debbugs.gnu.org > > > > > On Apr 20, 2024, at 2:36 AM, Eli Zaretskii wrote: > > > >> From: Yuan Fu > >> Date: Sat, 20 Apr 2024 01:28:48 -0700 > >> Cc: Stefan Heitmann , > >> 70438@debbugs.gnu.org > >> > >>> Yuan, can you please look into this? It seems the latest versions of > >>> tree-sitter made some incompatible ABI change (without changing the > >>> shared-library version, I guess? not nice!), so can we have some > >>> workaround for this? > >> > >> I think tree-sitter people are working to fix this [1]. I don’t think we can do much here, AFAICT tree-site changed ABI without bumping ABI version, and Arch and Gentoo are serving old Emacs build this new tree-sitter so, which is incompatible and crashed Emacs. We can’t really do anything to the Emacs build on people’s machines (though, who knows, maybe you CAN cask spells and flip bits). > >> > >> [1] https://github.com/tree-sitter/tree-sitter/issues/3296 > > > > It isn't clear to me what would be their solution. Couldn't we at > > least reject these new versions at configure time, until they fix the > > issue? > > From what I understand, rebuilding Emacs with the new header file should fix the issue? Even if we push some change, users need to rebuild Emacs anyway. I didn't mean to avoid rebuilding Emacs -- that's impossible when changes are made on the C level. I meant to make our sources work with both old and new ABIs. But maybe I don't have a clear idea of what exactly was the incompatible change. Can you describe it here? Is it the signature of one or more tree-sitter functions, or is it something else?