From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: German Pacenza Newsgroups: gmane.emacs.bugs Subject: bug#59832: 30.0.50; [TREESIT] Segfault in treesit_load_language Date: Tue, 06 Dec 2022 10:06:24 -0300 Message-ID: References: <83y1rm816z.fsf@gnu.org> <83h6y999v3.fsf@gnu.org> <83bkoh97s9.fsf@gnu.org> <83y1rk7n9q.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30223"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 59832@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 06 14:07:26 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 1p2XfR-0007b7-PK for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Dec 2022 14:07:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p2Xf5-0002RC-PJ; Tue, 06 Dec 2022 08:07:03 -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 1p2Xf4-0002Qt-4G for bug-gnu-emacs@gnu.org; Tue, 06 Dec 2022 08:07:02 -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 1p2Xf3-00008j-PU for bug-gnu-emacs@gnu.org; Tue, 06 Dec 2022 08:07:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p2Xf3-0001NA-Kv for bug-gnu-emacs@gnu.org; Tue, 06 Dec 2022 08:07:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: German Pacenza Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Dec 2022 13:07:01 +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.16703320025268 (code B ref 59832); Tue, 06 Dec 2022 13:07:01 +0000 Original-Received: (at 59832) by debbugs.gnu.org; 6 Dec 2022 13:06:42 +0000 Original-Received: from localhost ([127.0.0.1]:42896 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p2Xei-0001Ms-Qr for submit@debbugs.gnu.org; Tue, 06 Dec 2022 08:06:42 -0500 Original-Received: from mail-bn1nam02olkn2088.outbound.protection.outlook.com ([40.92.15.88]:60793 helo=NAM02-BN1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p2Xeg-0001Mm-7l for 59832@debbugs.gnu.org; Tue, 06 Dec 2022 08:06:40 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n9UIeIGNinE9Ir0Ngo4OTKBRiTOhSrnhpUX6nvuhztvSfyhMsoXC3ypIw7MBV+S1vErsVHhEHRkK1Ykqtc0oiMqmMlVll0SbU4eZZFuUUUau3dvbI/CaSMGfBYU+MaQOijiR0ftDAnWi1FfJjcErc2kztFPR1aqI0ceOsTra3UUkiJ+eC2/oIDQBLgvPTGRcnDMdm4jOTtDtUHlRqbomWLfgBhyrU9G7tLT3VXDTE81KcBJKfbWwraJLG6TLt8Geb2dDk5QT2Wp/NNDY2z+87Tok0VLrCNouHKvdx0tkDsXPreURUSFrmNj/hCB232xPHElbkADPu+nFSLcj0v3u7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=rb/iXMNTQgQRYAw/tGKNp2QqBvDaLa72aj7kKjX4aww=; b=PsjKi1X7y1vC8Eqq3NXr495YgqYaqdECjTbbK/ne+gU9GtiZBoC4la2dpihIPTbjcslKaD8xPv5l7F/aPIA3Hu2iBAYeKLlLGachfDms9VgyQj8WmKP6QF955iW5cwCokkTB5G+Ae1rGdmvGozmbU0pkxr8sTJIL5A5KcEZzvxbzsis17ob2WpB8zVoDQTDN4JZ7++5KitGbNG5WLZt0qyvRoslgdM8NSgs6Y/Mi+qNSLDE5ZvV6Sg2nybiAstaMl5OjFaZvzmkhc8MJlYqFTX75tYtP0axASjrmIQ2fOX9CH6BZdaBTbxm1m+PQuTtprz1eqNdaOuYIPWuWnJyTTQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rb/iXMNTQgQRYAw/tGKNp2QqBvDaLa72aj7kKjX4aww=; b=FI9nDqZ4YK4KWFA22xIKG0K+O0tCht0S6dmbblL5GSAanRGpT8BIDH5TkO3Vu5raaPztKV0wNkFTIRyG4oRTJaL76qM86l/dzTDRSO2IPK71Y5ZPq9bcmOAp8GsjFRHk7q2icx8SOy0leZDPuuGNS8/CHimbuNi+p/C8smZbq1SjUIEbjrfC/eNyzMWg13AVCLeT6vWuYGNtT+f6QXoPG0IdynHzR1wBOXu9xkGNwB+0cbpz+983HAoebtDF+m7dNPMARuwk3DGca68QtsesvFndzPQm1xoemEQLJ1uDJ1L9ZUou9+OhiSmPf/tt4UewhibUPp9pQTv+gFHg+Zz39A== Original-Received: from DM5PR2201MB1161.namprd22.prod.outlook.com (2603:10b6:4:2f::19) by MN2PR22MB2048.namprd22.prod.outlook.com (2603:10b6:208:20a::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.11; Tue, 6 Dec 2022 13:06:31 +0000 Original-Received: from DM5PR2201MB1161.namprd22.prod.outlook.com ([fe80::846:b278:294b:51fe]) by DM5PR2201MB1161.namprd22.prod.outlook.com ([fe80::846:b278:294b:51fe%7]) with mapi id 15.20.5880.013; Tue, 6 Dec 2022 13:06:31 +0000 In-Reply-To: <83y1rk7n9q.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 06 Dec 2022 07:03:25 -0500") X-TMN: [G3c9FMjtykQ7J4eP1c27MP8+NWvoruxb] X-ClientProxiedBy: CP4P284CA0021.BRAP284.PROD.OUTLOOK.COM (2603:10d6:103:126::20) To DM5PR2201MB1161.namprd22.prod.outlook.com (2603:10b6:4:2f::19) X-Microsoft-Original-Message-ID: <87wn74ptpr.fsf@hotmail.com> X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM5PR2201MB1161:EE_|MN2PR22MB2048:EE_ X-MS-Office365-Filtering-Correlation-Id: b8f9ec27-23d6-4355-66c5-08dad78ab170 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: o+2I8sWXSyQA2aNqLNsJAxYOWpXmNMOwVm179H7680dWOjh1ICRfWca53thpe4ExZM6Gnhh2U3aW88pE/vArto9UfGbdtY8pKMrHcOML0UuPqFmkbRGGJQ9vObfLZbccnP7jmCA5YH0duwazVvwW1/N1OU96ooMAUPQtmg7zWxsC1hbWe/3q6vDOPFyYw2ib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85MgB1H66wjj9CkXrSlsIyKoEz5Mr+DhIMIOFvoCTHN0ExRYFuigfHLbPmwFyvKSBnqMZ3R/g+PnuuvIz8lZuY6niEdXwOWqTCDQo3JOEsjL681hp3pj/H2Wb6H+WdlxG2hiTTFK72l+XUCpmUZfR6ytKhIMaIRwXDP2/gbXcygBvD3fNaoJPYSsK5yjapDhuI234bVvYBfhfFh8PhTQz8hPzdN2GMEEodz5/6FKyGg9BxTh0d7UJbMZeQ56ZpEkjGcgbr+0nw9rS t6sPQKsggPawb31Mky3P+9uu7WJbuWZRc7th5kKtRs5Ub0+iKNzwUWMmAJYeQfZLK6p/qdKCX0sTQX5SpvOfHI38x/oA3SgRuo X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-c3c87.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: b8f9ec27-23d6-4355-66c5-08dad78ab170 X-MS-Exchange-CrossTenant-AuthSource: DM5PR2201MB1161.namprd22.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Dec 2022 13:06:31.4207 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR22MB2048 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:250107 Archived-At: Eli Zaretskii writes: > Strange, it shouldn't have happened. How is CFLAGS set on src/Makefile? It > should be something like this: > > CFLAGS = -O2 -g3 git clean -fxd ./autogen.sh CFLAGS="-O2 -g3" ./configure --without-modules ... Inside src/Makefile is CFLAGS = -O2 -g3 I also tried ggdb3 with the same result file src/emacs: src/emacs: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=3cc057b3a7d0f18ff7c819c55a4da8d7ac355846, for GNU/Linux 4.4.0, with debug_info, not stripped > > 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. Running from src directory: gdb ./emacs GNU gdb (GDB) 12.1 Copyright (C) 2022 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from ./emacs... SIGINT is used by the debugger. Are you sure you want to change it? (y or n) [answered Y; input not from terminal] DISPLAY = :0 WAYLAND_DISPLAY = wayland-0 TERM = foot Breakpoint 1 at 0x46a18: file emacs.c, line 426. (gdb) source .gdbinit SIGINT is used by the debugger. Are you sure you want to change it? (y or n) [answered Y; input not from terminal] Redefine command "xgetptr"? (y or n) [answered Y; input not from terminal] Redefine command "xgetint"? (y or n) [answered Y; input not from terminal] Redefine command "xgettype"? (y or n) [answered Y; input not from terminal] Redefine command "xgetsym"? (y or n) [answered Y; input not from terminal] Redefine command "xsymname"? (y or n) [answered Y; input not from terminal] Redefine command "pr"? (y or n) [answered Y; input not from terminal] Redefine command "pp"? (y or n) [answered Y; input not from terminal] Redefine command "pv"? (y or n) [answered Y; input not from terminal] Redefine command "xfmt"? (y or n) [answered Y; input not from terminal] Redefine command "ppt"? (y or n) [answered Y; input not from terminal] Redefine command "pitmethod"? (y or n) [answered Y; input not from terminal] Redefine command "pitx"? (y or n) [answered Y; input not from terminal] Redefine command "pit"? (y or n) [answered Y; input not from terminal] Redefine command "prowx"? (y or n) [answered Y; input not from terminal] Redefine command "prow"? (y or n) [answered Y; input not from terminal] Redefine command "pcursorx"? (y or n) [answered Y; input not from terminal] Redefine command "pcursor"? (y or n) [answered Y; input not from terminal] Redefine command "pwinx"? (y or n) [answered Y; input not from terminal] Redefine command "pwin"? (y or n) [answered Y; input not from terminal] Redefine command "pbiditype"? (y or n) [answered Y; input not from terminal] Redefine command "pgx"? (y or n) [answered Y; input not from terminal] Redefine command "pg"? (y or n) [answered Y; input not from terminal] Redefine command "pgi"? (y or n) [answered Y; input not from terminal] Redefine command "pgn"? (y or n) [answered Y; input not from terminal] --Type for more, q to quit, c to continue without paging--c Redefine command "pgrowx"? (y or n) [answered Y; input not from terminal] Redefine command "pgrow"? (y or n) [answered Y; input not from terminal] Redefine command "pgrowit"? (y or n) [answered Y; input not from terminal] Redefine command "prowlims"? (y or n) [answered Y; input not from terminal] Redefine command "pmtxrows"? (y or n) [answered Y; input not from terminal] Redefine command "xtype"? (y or n) [answered Y; input not from terminal] Redefine command "pvectype"? (y or n) [answered Y; input not from terminal] Redefine command "xvectype"? (y or n) [answered Y; input not from terminal] Redefine command "pvecsize"? (y or n) [answered Y; input not from terminal] Redefine command "xvecsize"? (y or n) [answered Y; input not from terminal] Redefine command "xint"? (y or n) [answered Y; input not from terminal] Redefine command "xptr"? (y or n) [answered Y; input not from terminal] Redefine command "xmarker"? (y or n) [answered Y; input not from terminal] Redefine command "xoverlay"? (y or n) [answered Y; input not from terminal] Redefine command "xsymwithpos"? (y or n) [answered Y; input not from terminal] Redefine command "xsymbol"? (y or n) [answered Y; input not from terminal] Redefine command "xstring"? (y or n) [answered Y; input not from terminal] Redefine command "xvector"? (y or n) [answered Y; input not from terminal] Redefine command "xprocess"? (y or n) [answered Y; input not from terminal] Redefine command "xframe"? (y or n) [answered Y; input not from terminal] Redefine command "xcompiled"? (y or n) [answered Y; input not from terminal] Redefine command "xwindow"? (y or n) [answered Y; input not from terminal] Redefine command "xwinconfig"? (y or n) [answered Y; input not from terminal] Redefine command "xsubr"? (y or n) [answered Y; input not from terminal] Redefine command "xchartable"? (y or n) [answered Y; input not from terminal] Redefine command "xsubchartable"? (y or n) [answered Y; input not from terminal] Redefine command "xboolvector"? (y or n) [answered Y; input not from terminal] Redefine command "xbuffer"? (y or n) [answered Y; input not from terminal] Redefine command "xhashtable"? (y or n) [answered Y; input not from terminal] Redefine command "xcons"? (y or n) [answered Y; input not from terminal] Redefine command "nextcons"? (y or n) [answered Y; input not from terminal] Redefine command "xcar"? (y or n) [answered Y; input not from terminal] Redefine command "xcdr"? (y or n) [answered Y; input not from terminal] Redefine command "xlist"? (y or n) [answered Y; input not from terminal] Redefine command "xfloat"? (y or n) [answered Y; input not from terminal] Redefine command "xscrollbar"? (y or n) [answered Y; input not from terminal] Redefine command "xpr"? (y or n) [answered Y; input not from terminal] Redefine command "xprintstr"? (y or n) [answered Y; input not from terminal] Redefine command "xprintsym"? (y or n) [answered Y; input not from terminal] Redefine command "xcoding"? (y or n) [answered Y; input not from terminal] Redefine command "xcharset"? (y or n) [answered Y; input not from terminal] Redefine command "xfontset"? (y or n) [answered Y; input not from terminal] Redefine command "xfont"? (y or n) [answered Y; input not from terminal] Redefine command "xbacktrace"? (y or n) [answered Y; input not from terminal] Redefine command "xprintbytestr"? (y or n) [answered Y; input not from terminal] Redefine command "xwhichsymbols"? (y or n) [answered Y; input not from terminal] Redefine command "hookpost-backtrace"? (y or n) [answered Y; input not from terminal] Redefine command "ff"? (y or n) [answered Y; input not from terminal] DISPLAY = :0 WAYLAND_DISPLAY = wayland-0 TERM = foot Breakpoint 2 at 0x46a18: file emacs.c, line 426. (gdb) pp path_candidates No symbol "path_candidates" in current context. (gdb) run Starting program: /home/german/repos/emacs-test/src/emacs [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". [New Thread 0x7fffee7fe6c0 (LWP 71788)] [New Thread 0x7fffedffd6c0 (LWP 71789)] [New Thread 0x7fffed7fc6c0 (LWP 71790)] [New Thread 0x7fffecffb6c0 (LWP 71791)] [Detaching after vfork from child process 71792] [Detaching after vfork from child process 71796] Thread 1 "emacs" received signal SIGSEGV, Segmentation fault. treesit_load_language (language_symbol=, signal_symbol=0x7fffffffd4e8, signal_data=0x7fffffffd4f0) at treesit.c:565 565 char *library_name = SSDATA (XCAR (tail)); (gdb) pp path_candidates [Thread 0x7fffedffd6c0 (LWP 71789) exited] nil (gdb) -- German Pacenza