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: Mon, 16 Oct 2023 14:29:00 +0300 Message-ID: <835y36q003.fsf@gnu.org> References: <83bkd0qw8j.fsf@gnu.org> <83a5sjpuna.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37553"; 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 Mon Oct 16 13:30:05 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 1qsLnR-0009YQ-8X for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 16 Oct 2023 13:30:05 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qsLn2-0003uO-Ne; Mon, 16 Oct 2023 07:29: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 1qsLn0-0003u0-Nr for bug-gnu-emacs@gnu.org; Mon, 16 Oct 2023 07:29: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 1qsLn0-0008K7-E7 for bug-gnu-emacs@gnu.org; Mon, 16 Oct 2023 07:29:38 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qsLnO-0003Fk-N7 for bug-gnu-emacs@gnu.org; Mon, 16 Oct 2023 07:30: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: Mon, 16 Oct 2023 11:30: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.169745579312323 (code B ref 66549); Mon, 16 Oct 2023 11:30:02 +0000 Original-Received: (at 66549) by debbugs.gnu.org; 16 Oct 2023 11:29:53 +0000 Original-Received: from localhost ([127.0.0.1]:55394 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qsLnC-0003BA-Mj for submit@debbugs.gnu.org; Mon, 16 Oct 2023 07:29:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48148) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qsLn7-0003Ak-Qt for 66549@debbugs.gnu.org; Mon, 16 Oct 2023 07:29:49 -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 1qsLmd-0008GZ-Pi; Mon, 16 Oct 2023 07:29:15 -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=+vjf58EvbM9pDkDzIOfssRqaFYGX4smJqLHydZ4pCZ4=; b=HpD52xoHtP1l DQ4+I0k3IslIIaC45h/8aohRzuPncZInmomQWWx5Poewn2VqplT53oViB6YlhxP7YCQabeNJExSJ9 f1kuH9TpDdbTzBH7Zvbxi4E2AOGZpJFNWdg3UDggQkoD6j24SbeqvuMnQed6rVMaO3BdWpsrdsI0a VbAvMgsLF+tuOYa0dE0lUVa85XwFY2cypAJL0F6xX3OoRwVta+C2/k1MgnIVJxCqHps8L5A4vYOCf 0o2JpHAbyTOkpr1cxaz9uZoIcEYkyQ7rXs1oBhA6lc02CL8jNxFQyQr9rPHqLAfG5f88SguwVmdFf zTCmcA619xYAVEv9+hN6Ng==; In-Reply-To: (message from Erik Overdahl on Sun, 15 Oct 2023 15:03:09 -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:272562 Archived-At: > From: Erik Overdahl > Date: Sun, 15 Oct 2023 15:03:09 -0500 > Cc: 66549@debbugs.gnu.org > > 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. After cloning the repository, I ran the following commands: cd src gcc -O2 -I. -MMD -MF ./parser.d -MP -c -o parser.o parser.c gcc -O2 -I. -MMD -MF ./scanner.d -MP -c -o scanner.o scanner.c gcc -shared parser.o scanner.o -ltree-sitter -o libtree-sitter-hcl.dll (This is on Windows, thus the .dll extension and no -fPIC compiler switch.) Your link command line, viz.: cc -fPIC -shared *.o -o libtree-sitter-hcl.so lacks the -ltree-sitter switch, though, which may or may not be the problem.