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: Tue, 17 Oct 2023 05:29:10 +0300 Message-ID: <83pm1enfrd.fsf@gnu.org> References: <83bkd0qw8j.fsf@gnu.org> <83a5sjpuna.fsf@gnu.org> <835y36q003.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2239"; 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 Tue Oct 17 04:29:57 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 1qsZqG-0000MX-K1 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 17 Oct 2023 04:29:56 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qsZpz-0007pX-Sx; Mon, 16 Oct 2023 22:29:39 -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 1qsZpy-0007pM-7D for bug-gnu-emacs@gnu.org; Mon, 16 Oct 2023 22: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 1qsZpx-0002Xp-V2 for bug-gnu-emacs@gnu.org; Mon, 16 Oct 2023 22:29:37 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qsZqM-0007h3-MD for bug-gnu-emacs@gnu.org; Mon, 16 Oct 2023 22: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: Tue, 17 Oct 2023 02: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.169750980029541 (code B ref 66549); Tue, 17 Oct 2023 02:30:02 +0000 Original-Received: (at 66549) by debbugs.gnu.org; 17 Oct 2023 02:30:00 +0000 Original-Received: from localhost ([127.0.0.1]:58232 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qsZqK-0007gO-1Q for submit@debbugs.gnu.org; Mon, 16 Oct 2023 22:30:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43282) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qsZqE-0007g3-TG for 66549@debbugs.gnu.org; Mon, 16 Oct 2023 22:29:58 -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 1qsZpk-0002X8-Bx; Mon, 16 Oct 2023 22:29:24 -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=pLWzJZwEBIL/eDODKyuEv0aQplZ8iH4/c/S/bSheE/Q=; b=N/FFLuZSG7dc ZDYKj2SmPtQHOuo6D2ZTaou1XE+HQmMfkVTOrFef2sjpyjEvnI/cNewUbVpdjYrue654BWjoV3Wea mSjiS0rF2BjJlce0uQHL9y5oEmvkrxQVlKCof6MqwhuiJwV0Asq/Ju9bAoiE9i6P/uX/6+LnfDUkj GBcvYpds6o0DZkQ+P9ChXchKSbVEPYTR6ELRYtzjZRI53sstQ5eiFlMx90mXZ1CakkigvEWF2hl4d ngKiwytmsg9pSqxVKdSCge6bri2MdEkVYS0+co8SYArAdHgWXtvgzlb9N7JayXF+Gx6LAIY/w5NAu aPZmMHxgXcUmP8bgaARXWA==; In-Reply-To: (message from Erik Overdahl on Mon, 16 Oct 2023 18:21: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:272592 Archived-At: [Please use Reply All when replying to keep the bug tracker CC'ed.] > From: Erik Overdahl > Date: Mon, 16 Oct 2023 18:21:26 -0500 > > > 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. > > If there is a problem with the command I used to build the grammar, then there is a problem with the > function `treesit-install-language-grammar`, as I copied the commands directly from there. I imagine > this is how most users would install this grammar? Maybe there is a problem, but please try compiling using the above commands, and see if the problem is gone. We must establish the root cause before we assign blame or consider where and how to fix the problem. So: did the above commands fix the problem for you. > I have discovered another oddity. Thanks, but I'm not sure this is related. I think we should focus on fixing the crash first.