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#66549: 29.1.50; SIGABRT received parsing file with tree-sitter in PGTK Emacs Date: Sun, 15 Oct 2023 22:12:25 +0300 Message-ID: <83a5sjpuna.fsf@gnu.org> References: <83bkd0qw8j.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26677"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 66549@debbugs.gnu.org To: Erik Overdahl Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 15 21:13:52 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 1qs6Yi-0006l2-2i for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 15 Oct 2023 21:13:52 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qs6YW-0006oc-47; Sun, 15 Oct 2023 15:13:40 -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 1qs6YU-0006oR-K4 for bug-gnu-emacs@gnu.org; Sun, 15 Oct 2023 15:13:38 -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 1qs6YU-0006nN-CI for bug-gnu-emacs@gnu.org; Sun, 15 Oct 2023 15:13:38 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qs6Ys-0001P1-CT for bug-gnu-emacs@gnu.org; Sun, 15 Oct 2023 15:14:02 -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, 15 Oct 2023 19:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66549 X-GNU-PR-Package: emacs Original-Received: via spool by 66549-submit@debbugs.gnu.org id=B66549.16973972005333 (code B ref 66549); Sun, 15 Oct 2023 19:14:02 +0000 Original-Received: (at 66549) by debbugs.gnu.org; 15 Oct 2023 19:13:20 +0000 Original-Received: from localhost ([127.0.0.1]:54137 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qs6Y8-0001Ns-Ru for submit@debbugs.gnu.org; Sun, 15 Oct 2023 15:13:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43784) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qs6Y4-0001Nb-0q for 66549@debbugs.gnu.org; Sun, 15 Oct 2023 15:13:16 -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 1qs6Xa-0006V4-6X; Sun, 15 Oct 2023 15:12:42 -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=AptoklosOcAWVxiyeZRT2wC54ljeNHg7Z9Hbc+3wRfk=; b=L7nQGyP31uIR GQFWTOG0DqqD5SpRHqBXBo74wNRxtBDYgYr1/NyZfFD70/8sHLuVzfXyIxzW2+8ngMFp92zZVY5+C 3NX2aRHF7bejRVweupXBkuSaQXxG0ZNQ7ObUsACGCfxLsQXuroXAeFubdb1rDASHzv8YR4qQXhc/0 QNCKcv6544pX4zGRswSIJwDBoNYzCnyLo/JodSLyqY/TmYA4UeNlC8t1zsjkIYxRNRiPnoVBI7aIH jIB0jjf86zHprZ8vtY+OccwZo0dW9xbyB189N1R7JEazAnbK1f9d3aFd+vJGblu91dBoq/xvES4H7 aMSaPc8bZZNfKigfxAkdPg==; In-Reply-To: (message from Erik Overdahl on Sun, 15 Oct 2023 13:36:26 -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:272534 Archived-At: > From: Erik Overdahl > Date: Sun, 15 Oct 2023 13:36:26 -0500 > Cc: 66549@debbugs.gnu.org > > The reproduction instructions included in my bug report are all that > is required. The linked GitHub repo contains Dockerfiles that allow > the bug to be reproduced exactly, but does not have any information > that is missing from this bug report. > > Here is a minimal HCL file that I can confirm causes the SIGABRT when parsed: > > resource "example" "literals" { > attr1 = "val1" > } Thanks. My configuration is different from yours, but I tried to reproduce the problem as best I could, and failed. Here's what I did: . cloned the treesit-hcl grammar, built it and installed it . started Emacs as "emacs -Q" . M-x load-library RET treesit RET . M-: (treesit-ready-p 'hcl) RET -- this yielded t, so the grammar is installed and available . typed the following in *scratch*: (with-temp-buffer (insert-file-contents "~/data/example.hcl") ;; `treesit-parser-create' creates a parser for the buffer that is ;; then invoked lazily. Using `treesit-parse-string' to force parse. (treesit-parse-string (buffer-string) 'hcl)) . evaluated this expression with C-x C-e The result was: # So I'm unable to reproduce the abort. This is why I asked you to run Emacs under GDB and post the backtrace when it crashes.