From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#70059: 30.0.50; c-ts-mode crashes emacs Date: Sat, 30 Mar 2024 10:29:37 -0400 Message-ID: References: <877chmccux.fsf@web.de> <86edbtfvge.fsf@gnu.org> <87il15wbtx.fsf@web.de> <86zfuhe0uo.fsf@gnu.org> <878r218e1s.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39124"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Yuan Fu , Felix , 70059@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 30 15:30:20 2024 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 1rqZit-0009xn-K4 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 Mar 2024 15:30:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rqZio-0007nr-M4; Sat, 30 Mar 2024 10:30:14 -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 1rqZia-0007n7-F0 for bug-gnu-emacs@gnu.org; Sat, 30 Mar 2024 10:30:00 -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 1rqZia-0003mt-5e for bug-gnu-emacs@gnu.org; Sat, 30 Mar 2024 10:30:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rqZic-0003Vy-2v for bug-gnu-emacs@gnu.org; Sat, 30 Mar 2024 10:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Mar 2024 14:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70059 X-GNU-PR-Package: emacs Original-Received: via spool by 70059-submit@debbugs.gnu.org id=B70059.171180898713465 (code B ref 70059); Sat, 30 Mar 2024 14:30:02 +0000 Original-Received: (at 70059) by debbugs.gnu.org; 30 Mar 2024 14:29:47 +0000 Original-Received: from localhost ([127.0.0.1]:45957 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rqZiN-0003V6-3C for submit@debbugs.gnu.org; Sat, 30 Mar 2024 10:29:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37630) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rqZiM-0003Ut-AG for 70059@debbugs.gnu.org; Sat, 30 Mar 2024 10:29:46 -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 1rqZiE-0003ls-O0; Sat, 30 Mar 2024 10:29:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=kZfZk+4LsTsNBlTKBb5Qi1ShTzngLzzKBODS5P/HkY0=; b=TMXG1S6tvQEPaE4H3F0j vreUGmltF/b4eTso5tZ+4jsavsom31Jqb2YMaWreRYHIWzvvWurkRG80B+NojXaPSh/VfGqT1zQYg h/cXh4zlyWJpD8522dT86l2k06aG+NxSdAf4k2hGBYbei/4GBt2PWvqyMvOpKQvQmmEhQ8mbFvWbo Qx8GKc63YvG1dkacxOoQ6q4g8K08RODK+w0RzKCpm0/6W14Sn2E7d/RLxK2Sj23yFm5oFA/WMQIuf aZEo2CHA6TWMOnMcZrm9P0UsyDUssfgicRG/Faf1/vdjczyftXQOdo6M+rLTg3C0sRZb5tWLLkLD1 ItMimRnmJRC+og==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1rqZiE-0005mx-01; Sat, 30 Mar 2024 10:29:38 -0400 In-Reply-To: <878r218e1s.fsf@web.de> (Felix via's message of "Fri, 29 Mar 2024 12:37:03 +0100") 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:282374 Archived-At: Felix via "Bug reports for GNU Emacs, the Swiss army knife of text editors" writes: > Eli Zaretskii writes: > >>> From: Felix >>> Cc: Andrea Corallo , 70059@debbugs.gnu.org >>> Date: Fri, 29 Mar 2024 11:51:06 +0100 >>> >>> I rebuild it without native-compilation, and it still crashes. >>> Backtrace: >>> >>> #0 0x000077b79c65c32c in ??? () at /usr/lib/libc.so.6 >>> #1 0x000077b79c60b6c8 in raise () at /usr/lib/libc.so.6 >>> #2 0x00005a5a428f94a2 in terminate_due_to_signal () >>> #3 0x00005a5a42933c23 in emacs_abort () >>> #4 0x00005a5a429ec268 in signal_or_quit () >>> #5 0x00005a5a429eb422 in Fsignal () >>> #6 0x00005a5a429eb401 in xsignal () >>> #7 0x00005a5a429e9aa2 in xsignal2 () >>> #8 0x00005a5a429c0865 in wrong_type_argument () >>> #9 0x00005a5a42965e1f in Fexpand_file_name () >>> #10 0x00005a5a42b3d200 in Fdo_auto_save.7873 () >>> #11 0x00005a5a428f9738 in shut_down_emacs () >>> #12 0x00005a5a428f946a in terminate_due_to_signal () >>> #13 0x00005a5a42935924 in handle_sigsegv () >>> #14 0x000077b79c60b770 in () at /usr/lib/libc.so.6 >>> #15 0x00005a5a429a57f6 in process_mark_stack () >>> #16 0x00005a5a429a677b in mark_char_table () >>> #17 0x00005a5a429a68c6 in mark_char_table () >>> #18 0x00005a5a429a55bd in process_mark_stack () >>> #19 0x00005a5a429a677b in mark_char_table () >>> #20 0x00005a5a429a68c6 in mark_char_table () >>> #21 0x00005a5a429a55bd in process_mark_stack () >>> #22 0x00005a5a429a677b in mark_char_table () >>> #23 0x00005a5a429a68c6 in mark_char_table () >>> #24 0x00005a5a429a55bd in process_mark_stack () >>> #25 0x00005a5a429a677b in mark_char_table () >>> #26 0x00005a5a429a68c6 in mark_char_table () >>> #27 0x00005a5a429a55bd in process_mark_stack () >>> #28 0x00005a5a429a569b in process_mark_stack () >>> #29 0x00005a5a429a569b in process_mark_stack () >>> #30 0x00005a5a429a569b in process_mark_stack () >>> #31 0x00005a5a429a7b8e in garbage_collect () >>> #32 0x00005a5a429e76e7 in Ffuncall () >>> #33 0x00005a5a42a094f7 in mapcar1 () >>> #34 0x00005a5a42a091bf in Fmapconcat () >>> #35 0x00005a5a42ac9d90 in Ftreesit_pattern_expand () >>> #36 0x00005a5a429e87b3 in funcall_subr () >>> #37 0x00005a5a429e77f6 in Ffuncall () >>> #38 0x00005a5a42a094f7 in mapcar1 () >>> #39 0x00005a5a42a091bf in Fmapconcat () >>> #40 0x00005a5a42ac9d90 in Ftreesit_pattern_expand () >>> #41 0x00005a5a429e87b3 in funcall_subr () >>> #42 0x00005a5a429e77f6 in Ffuncall () >>> #43 0x00005a5a42a094f7 in mapcar1 () >>> #44 0x00005a5a42a091bf in Fmapconcat () >>> #45 0x00005a5a42aca243 in treesit_ensure_query_compiled () >>> #46 0x00005a5a42aca5c0 in Ftreesit_query_capture () >> >> Then it's strange, since it doesn't happen here. Does it happen for >> you with any C source file, including those in the Emacs source tree? >> If this happens only for some files, can you post one such file? >> >> Also, what version of the tree-sitter library are you using, and what >> version of the C grammar library? >> >> If you can build the emacs-29 branch, can you try reproducing there? >> >> Yuan, any ideas, based on the backtrace? > > I was using tree-sitter build from the git repository, when i use it > from the official arch linux repos, it doesn't crash (at least until > now). > I think this is tree-sitter related, but it shouldn't be able to crash > emacs, should it? I should not but it could. I used my distro's tree-sitter and could not reproduced. Andrea