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#71681: 29.3.50; tree-sitter crash Date: Sun, 23 Jun 2024 08:32:47 +0300 Message-ID: <867cegfclc.fsf@gnu.org> References: <86h6dny3om.fsf@mail.linkov.net> <9D0E4C93-9CCC-4C0E-BDF7-CB6F09132C23@gmail.com> 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="14751"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71681@debbugs.gnu.org, juri@linkov.net To: Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 23 07:33:18 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 1sLFqn-0003cL-Ru for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 23 Jun 2024 07:33:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sLFqY-00044n-Rr; Sun, 23 Jun 2024 01:33:02 -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 1sLFqX-00044f-QO for bug-gnu-emacs@gnu.org; Sun, 23 Jun 2024 01:33:01 -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 1sLFqX-00075X-IS for bug-gnu-emacs@gnu.org; Sun, 23 Jun 2024 01:33:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sLFqX-0006jB-OJ for bug-gnu-emacs@gnu.org; Sun, 23 Jun 2024 01:33:01 -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, 23 Jun 2024 05:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71681 X-GNU-PR-Package: emacs Original-Received: via spool by 71681-submit@debbugs.gnu.org id=B71681.171912078025853 (code B ref 71681); Sun, 23 Jun 2024 05:33:01 +0000 Original-Received: (at 71681) by debbugs.gnu.org; 23 Jun 2024 05:33:00 +0000 Original-Received: from localhost ([127.0.0.1]:45221 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLFqW-0006iu-3O for submit@debbugs.gnu.org; Sun, 23 Jun 2024 01:33:00 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42950) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLFqT-0006if-PO for 71681@debbugs.gnu.org; Sun, 23 Jun 2024 01:32:58 -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 1sLFqL-00073I-Tm; Sun, 23 Jun 2024 01:32:50 -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=RYiqRes6ZDyWApwN5IO7/cydfVFarj5YMfMQaXqW9rA=; b=M2jx2L3LMwHdv7/KKwg0 CGnwSCq/NSyQtNcwgEp3AICPcw63ZTy5gaTG4qtP0nDwA0GsL8Ls5ZtGy5Rt7hyc+lS7hpozpF73E jMjCiNtMVFRGiuddAO7lTmRiVetAUy51LD1zfdf6I0DYXKgfeEYztMt+2N/ipCvsLymM/ZRjaQtiZ 2wn27bVAl4B8ataVx/WALiNBlJfVxa2aUbBHQO91Jj9BJCkvRQY3bq2gTaJtGvvUMprP+6YNJrNXt VeKhwP3OMa/dHHFBV/d/H2iWWp8/KtP/dkDvpfcDxiru2hc041J2czquHMRbNBHLRKvECXiw+Sa2q tRB+KTvYqJDLhg==; In-Reply-To: <9D0E4C93-9CCC-4C0E-BDF7-CB6F09132C23@gmail.com> (message from Yuan Fu on Sat, 22 Jun 2024 16:55:38 -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:287761 Archived-At: > Cc: 71681@debbugs.gnu.org > From: Yuan Fu > Date: Sat, 22 Jun 2024 16:55:38 -0700 > > > > > On Jun 20, 2024, at 9:33 AM, Juri Linkov wrote: > > > > Evaluating this expression causes a crash: > > > > (progn > > (find-file (expand-file-name "src/treesit.c" installation-directory)) > > (c-ts-mode) > > (font-lock-ensure 63209 63387)) > > > > in latest master, but not in latest emacs-29 (only in 5-months old emacs-29). > > > > If this is not reproducible, I could provide more details. > > > > libtree-sitter is at the latest version. > > Hmm, I can’t reproduce with latest master and libtree-sitter. Maybe you can send me the exact commits that you used? > > Here’s mine: > > Emacs: 72f2b01e318 > Tree-sitter: 6ec478c1 I can reproduce this with tree-sitter version 0.20.8. Can you try building Emacs with that version? I know it's somewhat old, but given the ABI breakage issue, I expect quite a few people avoid upgrading to a later version (I didn't).