bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#66549: 29.1.50; SIGABRT received parsing file with tree-sitter in PG


From: Eli Zaretskii
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

> From: Erik Overdahl <erik.overdahl@gmail.com>
> 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:

  #<treesit-node config_file in 1-52>

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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]