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#59832: 30.0.50; [TREESIT] Segfault in treesit_load_language Date: Tue, 06 Dec 2022 14:02:57 +0200 Message-ID: <83y1rk7n9q.fsf@gnu.org> References: <83y1rm816z.fsf@gnu.org> <83h6y999v3.fsf@gnu.org> <83bkoh97s9.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29707"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59832@debbugs.gnu.org To: German Pacenza Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 06 13:04:40 2022 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 1p2Wgi-0007VE-5G for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Dec 2022 13:04:40 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p2WgK-0005pG-9f; Tue, 06 Dec 2022 07:04:16 -0500 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 1p2Wg6-0005l6-Hh for bug-gnu-emacs@gnu.org; Tue, 06 Dec 2022 07:04:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p2Wg6-0003IB-A0 for bug-gnu-emacs@gnu.org; Tue, 06 Dec 2022 07:04:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p2Wg6-0006mI-4Y for bug-gnu-emacs@gnu.org; Tue, 06 Dec 2022 07:04:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Dec 2022 12:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59832 X-GNU-PR-Package: emacs Original-Received: via spool by 59832-submit@debbugs.gnu.org id=B59832.167032821226045 (code B ref 59832); Tue, 06 Dec 2022 12:04:02 +0000 Original-Received: (at 59832) by debbugs.gnu.org; 6 Dec 2022 12:03:32 +0000 Original-Received: from localhost ([127.0.0.1]:42567 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p2Wfb-0006m1-PN for submit@debbugs.gnu.org; Tue, 06 Dec 2022 07:03:32 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56132) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p2Wfa-0006lu-Go for 59832@debbugs.gnu.org; Tue, 06 Dec 2022 07:03:30 -0500 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 1p2WfI-0003AH-OE; Tue, 06 Dec 2022 07:03:25 -0500 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=hlmbbXc1t/VnENGSt3vZwJ5mj7HmAOF4Bjs8+hUPSNI=; b=IefPsVPPS66v 6/7i33qmxvGRLLCFHSnfx3CRVPIWcbQhtZ56K0OqO9ZaEyeZs9+SxZ7h0K80iPwiJoXyMGvX40vEm 0x4mZvCAhBsDPJu1aXkB4fziM+ji36jVaFNAyEWU8EZhZEFnL+4/7gQGf8HFNVKjPDXqX+EO1Ep/8 PT/69chKKmOIyJZcpdw0iyBN2xo0BOtD1wdBA115QayxdsTHZG76OA9QV/ClzkSY9Q69Uu6pB04e2 Y3FrxSPAVhRl4dXWYrxiYElPIMncZRkT8i7nD+eYZWaHY0ATRQh77uL3/zm15iG3/AoobeW4qU+bv OMIuqG6SuzhKV+VNgIsoPQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p2WfH-0003YO-W8; Tue, 06 Dec 2022 07:03:12 -0500 In-Reply-To: (message from German Pacenza on Mon, 05 Dec 2022 17:47:43 -0300) 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:250100 Archived-At: > From: German Pacenza > Cc: 59832@debbugs.gnu.org > Date: Mon, 05 Dec 2022 17:47:43 -0300 > > > The crash happens when compiling with '--without-modules', if I remove > it emacs doesn't crash. > > > Eli Zaretskii writes: > > >> Running that after it crashes shows: > >> > >> (gdb) frame 0 > >> #0 treesit_load_language (language_symbol=, signal_symbol=0x7fffffffd2f8, > >> signal_data=0x7fffffffd300) at treesit.c:565 > >> 565 char *library_name = SSDATA (XCAR (tail)); > >> (gdb) print XCAR(tail) > >> No symbol "XCAR" in current context. > >> (gdb) > > > > That's because your build is without -g3. Can you rebuild with > > > > CFLAGS='-O2 -g3' ./configure ... > > > > ? > > I get the same result. Strange, it shouldn't have happened. How is CFLAGS set on src/Makefile? It should be something like this: CFLAGS = -O2 -g3 Also, please try printing the value of the full list of the candidate libraries: (gdb) source .gdbinit (gdb) pp path_candidates The file .gdbinit is in the src directory of the Emacs source tree, so if you start GDB not from that directory, you will need to type the full absolute file name of .gdbinit in the "source" command.