From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Erik Overdahl 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 15:03:09 -0500 Message-ID: References: <83bkd0qw8j.fsf@gnu.org> <83a5sjpuna.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15876"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 66549@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 16 00:32:21 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 1qs9en-0003ww-Rd for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 16 Oct 2023 00:32:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qs9e8-0004m5-Kj; Sun, 15 Oct 2023 18:31: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 1qs9e6-0004lO-TD for bug-gnu-emacs@gnu.org; Sun, 15 Oct 2023 18:31: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 1qs9e6-0005nl-KY for bug-gnu-emacs@gnu.org; Sun, 15 Oct 2023 18:31:38 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qs9eV-00028m-1E for bug-gnu-emacs@gnu.org; Sun, 15 Oct 2023 18:32:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Erik Overdahl Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Oct 2023 22:32:03 +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.16974090878137 (code B ref 66549); Sun, 15 Oct 2023 22:32:03 +0000 Original-Received: (at 66549) by debbugs.gnu.org; 15 Oct 2023 22:31:27 +0000 Original-Received: from localhost ([127.0.0.1]:54575 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qs9dv-000273-3t for submit@debbugs.gnu.org; Sun, 15 Oct 2023 18:31:27 -0400 Original-Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]:48233) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qs7Ku-0005Wn-Hf for 66549@debbugs.gnu.org; Sun, 15 Oct 2023 16:03:42 -0400 Original-Received: by mail-pg1-x534.google.com with SMTP id 41be03b00d2f7-578b407045bso2880966a12.0 for <66549@debbugs.gnu.org>; Sun, 15 Oct 2023 13:03:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697400190; x=1698004990; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ptg3BTuH04865TQx2EA8C1cVrqgx6y8UIIg0r9eKlbQ=; b=C3ITKEjQkqeKXCNusm4j0Lu0pfqFBnmY5B3LlLV+nMl89qqk4l+Vyj9VsJh0ISCDx1 6BfC3ye90dZ49d0UccTT/M2ejRlioSx0L4T4qHemhQjxn8N2WDFCMWhdoQ/azMBZ1+Zp 5iheuVPSd/jDC40LH7OsVq7mlBbNlX6d6selD5o/UHL2hTeqtuu5GY6bd3ybrE7NFlxb XDgrDWaB/7uufQspggwtJBaAB13Ou9s/5L9GZ4xw0sXnpmnYdCZ+FLJzMHR76O5OdVwd b2LwizOJzZ/VwjJoZbDui3c6s/kjjuN1hKdp6SvRRyiS8FB8V458ClQNTJpqQ5LoVt6U Guig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697400190; x=1698004990; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ptg3BTuH04865TQx2EA8C1cVrqgx6y8UIIg0r9eKlbQ=; b=Y1PZcSg3UbwrU+5SG8fdJ+XiejX5mjSSDmPUT2w4FYZbdXe65J6BufYic7QSuJVadv MOyHPYrVECST5oEsBUP9gW+uwBha3IgCJdo7fOVNyt+KBA3hy+Vy9092LMqfRDNyU00G qK/jfr95EQWz68x+CCZTJKABJphexTgF7os83LplPvOkkYaNfM7CYNTKcTyYW8bfY+zy wGflL0Ebs0KaONF+9m7QWUxJ3E0OwQAMg7NSfTTOOFm0bOsH9+Hmz8xY2byw1Iz11Rli oIkf2HXz1DO9wzNO2fGhisStqAPFrMjn9gR12jz2YfesALD6EgPnAouYUyEDf28fiM0g 3jTQ== X-Gm-Message-State: AOJu0YzJCQBE+XQ0dZkkP+eD8CI5SRwHQCZJfP2Dy6X/se3rqPmXR4Ml fiqSCfy/jIHymYenbQKh8HJOYyrcSAU/GfuLRa8= X-Google-Smtp-Source: AGHT+IF18xRZwH7giyFI3MIKL8884XbaMfGl/LiMcA806/iaE775KwJTeygQoB1ez24/ba21/GuN+5WCvk5eTdvq1H4= X-Received: by 2002:a05:6a21:3b45:b0:171:878f:8f98 with SMTP id zy5-20020a056a213b4500b00171878f8f98mr15760370pzb.57.1697400189944; Sun, 15 Oct 2023 13:03:09 -0700 (PDT) Original-Received: by 2002:a05:7022:1005:b0:6c:6ee4:26de with HTTP; Sun, 15 Oct 2023 13:03:09 -0700 (PDT) In-Reply-To: <83a5sjpuna.fsf@gnu.org> X-Mailman-Approved-At: Sun, 15 Oct 2023 18:31:24 -0400 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:272539 Archived-At: I am unable to reproduce this; a manually built shared object still crashes for me. I am not sure what steps you took to build the grammar. When I build it manually, I still get the crash. However, the tree-sitter-hcl maintainer had the same success that you did: https://github.com/MichaHoffmann/tree-sitter-hcl/issues/38#issuecomment-1763385350. Does the crash occur if you build the grammar using `treesit-install-language-grammar`? Regarding the difference in environment - this is what I was hoping to avoid by providing container files in which I know the crash is reliably reproduced. I hope the backtrace file I provided is adequate. Apologies for the delay on that. On 10/15/23, Eli Zaretskii wrote: >> 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. >