From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.devel Subject: tree-sitter crashes Emacs Date: Thu, 25 Apr 2024 08:58:45 +0200 Message-ID: <86wmokcp3c.fsf@p200300d6272f170fb9ce529a1eae86f3.dip0.t-ipconnect.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28153"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.12.2; emacs 29.3 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Apr 26 13:59:49 2024 Return-path: Envelope-to: ged-emacs-devel@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 1s0KF1-00073y-8u for ged-emacs-devel@m.gmane-mx.org; Fri, 26 Apr 2024 13:59:49 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s0KEQ-0000d4-3C; Fri, 26 Apr 2024 07:59:12 -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 1s0KEG-0000aa-Ho for emacs-devel@gnu.org; Fri, 26 Apr 2024 07:59:01 -0400 Original-Received: from fhigh2-smtp.messagingengine.com ([103.168.172.153]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s0KEA-00066c-Us for emacs-devel@gnu.org; Fri, 26 Apr 2024 07:59:00 -0400 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfhigh.nyi.internal (Postfix) with ESMTP id CBDF01140065 for ; Fri, 26 Apr 2024 07:58:51 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Fri, 26 Apr 2024 07:58:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= cc:content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to; s=fm3; t=1714132731; x=1714219131; bh=RU1h3LVJTCnsmH1ScHKBZWDn+e3l4xM6 9lz6s1zk4SQ=; b=JqBTcUZMPWp4n8gsIBtVwvOIDEk5JrM+/qRsdl7g+M3SfffQ ELkThoUv1pu2obsn/0EMyr8etBIMAEjEYqIDG1ogmjrl2nwCrISEYUEttR6BJjv6 P4sbPJgKzfpAa5spncaI/O5ctVwmsaw0b1fIDOt9KKJmMJNFZetlUo4aBX6SOVm4 CJqSZRpwm+u4XLC63ntTzMpd284bxlUhZsF/0NLFFCzX7rNFnWhvTBYXxY6wXZ1e qW4grmCFr3KUWKZyozpBkuXZR5xy6vYoBVGqCdYNW7j1AREo2usyQHHXidY1QSme Q4JArNnjDK/2ToE3G8vyinERnwaudVco2AhPYA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1714132731; x=1714219131; bh=RU1h3LVJTCnsmH1ScHKBZWDn+e3l4xM69lz 6s1zk4SQ=; b=WDn778r68pfjNm8s46diDhUB4wO37H8wy+3hLjwsBFoudH7QujJ u/Wc3c2i0Y7Q/53JntbLqEOceI6ewei229qcbHo+neH5/mrjgZHs0wJsZiBdTZ5b Z1c/ND0inslhkTSaNrE7a3305aJmhu+dKDGHv45WhKW0A2DVgf9Srj5HxJU/EYzT QAMTeEeRBDAyalXmFAsbu5uvVfvKXOLndeBar/irNQxOMbRxlQnny+uXtmevqkMm EvjCvDtvcnKZw0iNWtyWU7xsHNGptqSklfNg2fWasZwHCusWGSBpIOlT1+PW7nXT HwZgYxQGL77ONkKOiGeQ/2lAX+dq/2UwpWQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudelledggeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffuffgfkfggtgesthdtredttd ertdenucfhrhhomheplfhoohhsthcumfhrvghmvghrshcuoehjohhoshhtkhhrvghmvghr shesfhgrshhtmhgrihhlrdhfmheqnecuggftrfgrthhtvghrnhepgeffueetgeduvddvje etveduueeugfdvgedvhfehhfejvdejgffhleejgeeujeelnecuffhomhgrihhnpehgihht hhhusgdrtghomhdprghrtghhlhhinhhugidrohhrghenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehjohhoshhtkhhrvghmvghrshesfhgrshht mhgrihhlrdhfmh X-ME-Proxy: Feedback-ID: ie15541ac:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Fri, 26 Apr 2024 07:58:50 -0400 (EDT) Received-SPF: pass client-ip=103.168.172.153; envelope-from=joostkremers@fastmail.fm; helo=fhigh2-smtp.messagingengine.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_24_48=1.34, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:318126 Archived-At: Hi list, A week ago or so, I opened a Python file in Emacs and saw Emacs crash hard. Bisecting my init file, I found that the culprit was tree-sitter. As it turns out, some change was made in tree-sitter that caused the ABI to change, and when I upgraded my distro's tree-sitter package, the new ABI caused Emacs to crash. There is a thread about this issue on the tree-sitter GitHub page: https://github.com/tree-sitter/tree-sitter/issues/3296 The consensus there seems to be, however, that the current problem should not be solved by the tree-sitter project, but rather by the relevant Linux distributions and/or by Emacs itself. A bug has been opened for Arch Linux (the distro I'm using): https://gitlab.archlinux.org/archlinux/packaging/packages/emacs/-/issues/2 That issue, however, is labelled with "status:waiting-upstream", which suggests that nothing's going to happen until the tree-sitter project does something. Which is not going to happen, I fear, because the tree-sitter issue has been closed. Since I haven't seen the issue mentioned here and given that it was suggested it might be an Emacs issue, I wanted to ask the opinion of the maintainers: can this be considered an Emacs bug, or is it really something that should be solved upstream? TIA -- Joost Kremers Life has its moments