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 08:40:28 +0300 Message-ID: <83bkd0qw8j.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13088"; 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 07:41: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 1qrtss-0003DV-KV for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 15 Oct 2023 07:41:50 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qrtsj-0004OX-2l; Sun, 15 Oct 2023 01:41:41 -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 1qrtsg-0004O4-Rs for bug-gnu-emacs@gnu.org; Sun, 15 Oct 2023 01:41: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 1qrtsg-0007KJ-Jf for bug-gnu-emacs@gnu.org; Sun, 15 Oct 2023 01:41:38 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qrtt4-0005Ea-Hv for bug-gnu-emacs@gnu.org; Sun, 15 Oct 2023 01:42: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 05:42: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.169734847320058 (code B ref 66549); Sun, 15 Oct 2023 05:42:02 +0000 Original-Received: (at 66549) by debbugs.gnu.org; 15 Oct 2023 05:41:13 +0000 Original-Received: from localhost ([127.0.0.1]:51104 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qrtsG-0005DS-NV for submit@debbugs.gnu.org; Sun, 15 Oct 2023 01:41:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47244) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qrtsF-0005DG-N9 for 66549@debbugs.gnu.org; Sun, 15 Oct 2023 01:41:12 -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 1qrtrm-0007Hk-Ce; Sun, 15 Oct 2023 01:40: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=cyZkhlOD03TSt1W195utmy1CANOHxVuRyNTOHrTJvd8=; b=HOE0Y2n05wid bmXENG3DdtMsgYl5GecbxswXsGye55UcF4VVwQmjOq2XG3w9EXpr7yPV6Ywt+jilMaRvjbx3jplYN 2KffkK061SikTjrVGs84KsnviOjH0/LHJz2IrJQUpZapMAJ6Z4m/uWRl0wW/Rab8P/vwaHFiMJ6Yw RJ1ruZQpA17OpyV1IWlZ+0jdttcYZbmc2dw2826piD8MGl9ZakH6pGs5l3Xkr8W8HPfkjyqIuSy63 lSPWJWSniNHGDBGLm8IYkc2/7acs1FLhU4ElDn3VApB75bL4be8Em1FHilvMZkg6hPx3R1wkuOz8I FZgpFPlPJDf1kZeZSy3WmQ==; In-Reply-To: (message from Erik Overdahl on Sat, 14 Oct 2023 15:19:46 -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:272483 Archived-At: > From: Erik Overdahl > Date: Sat, 14 Oct 2023 15:19:46 -0500 > > Emacs is receiving a SIGABRT (Fatal Error 6) with error message > ~munmap_chunk(): invalid pointer~ when parsing any file with the > tree-sitter-hcl grammar. The crash only occurs when Emacs is built with > PGTK. > > I am not sure if this is a bug in the grammar or in Emacs itself. The > fact that the bug only happens with a PGTK build of Emacs leads me to > believe that the bug is within Emacs. However, the crash does not occur > with the ~v1.1.0~ release of the grammar, and so the bug may lay in the > newly rewritten scanner added to the tree-sitter-hcl repo since that > release. > > Full instructions for reproducing the crash can be found at > https://github.com/erik-overdahl/emacs-29-pgtk-ts-crash-bugreport Please repeat them here, so that this report is complete. Please also post the details of your build and configuration as collected by "M-x report-emacs-bug". Last but not least, please post here the full GDB backtrace from the abort. Without the backtrace it is very hard to start reasoning about the causes of this bug. Thanks.