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#70059: 30.0.50; c-ts-mode crashes emacs Date: Fri, 29 Mar 2024 15:08:21 +0300 Message-ID: <86wmpldyve.fsf@gnu.org> References: <877chmccux.fsf@web.de> <86edbtfvge.fsf@gnu.org> <87il15wbtx.fsf@web.de> <86zfuhe0uo.fsf@gnu.org> <878r218e1s.fsf@web.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23795"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com, 70059@debbugs.gnu.org To: Felix Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 29 13:09:29 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 1rqB31-0005w9-3J for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 29 Mar 2024 13:09:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rqB2e-0007AA-0d; Fri, 29 Mar 2024 08:09:04 -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 1rqB2a-00079y-VS for bug-gnu-emacs@gnu.org; Fri, 29 Mar 2024 08:09: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 1rqB2a-0001yw-N5 for bug-gnu-emacs@gnu.org; Fri, 29 Mar 2024 08:09:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rqB2b-0005fv-V0 for bug-gnu-emacs@gnu.org; Fri, 29 Mar 2024 08:09:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Mar 2024 12:09:01 +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.171171411421746 (code B ref 70059); Fri, 29 Mar 2024 12:09:01 +0000 Original-Received: (at 70059) by debbugs.gnu.org; 29 Mar 2024 12:08:34 +0000 Original-Received: from localhost ([127.0.0.1]:41854 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rqB29-0005ef-0n for submit@debbugs.gnu.org; Fri, 29 Mar 2024 08:08:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57116) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rqB26-0005dx-6S for 70059@debbugs.gnu.org; Fri, 29 Mar 2024 08:08:30 -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 1rqB1z-0001ur-JN; Fri, 29 Mar 2024 08:08:23 -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=+5m7/+KzJyDalTAibresHl5KONBJZnJPt+vNGUjcYb8=; b=diKO3OHeUoSI Ma+6ZwnB9Vpet+HLuPMRl7IW1aFwgR+zpdzWc8+KekTdvSH10JDNjsEbrt7lgzixwGrzkVuXwsLeL lJ58SAddOQALeQTXHNTu4AN5ptmdI6OCRl8rMyVDczn7vTfehyW6cFfFzjgghmArs7OqFtVwq9OX+ heHQAt85l1BlMajPUWY1y3j1UgOjoGrhoANUWsU23T4FZHIoA51VRhzEoOnGpOYeXZY3mUWKQ4RLj F9wZLVW52uLjsfG5PGeDodr+GCsIjqUpaBao+7bDZfVuONSMVza6L1xKCUlhtOhb7gJYCB2ZbENPg LRLEEXK5cn+okgqgMYJpPQ==; In-Reply-To: <878r218e1s.fsf@web.de> (message from Felix on 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:282289 Archived-At: > From: Felix > Cc: Yuan Fu , 70059@debbugs.gnu.org > Date: Fri, 29 Mar 2024 12:37:03 +0100 > > 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? It shouldn't, unless there's some memory-related snafu (which could explain why the crash is always in GC). I hope Yuan will be able to tell.