From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Felix via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#70059: 30.0.50; c-ts-mode crashes emacs Date: Fri, 29 Mar 2024 12:37:03 +0100 Message-ID: <878r218e1s.fsf@web.de> References: <877chmccux.fsf@web.de> <86edbtfvge.fsf@gnu.org> <87il15wbtx.fsf@web.de> <86zfuhe0uo.fsf@gnu.org> Reply-To: Felix Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23538"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.12.2; emacs 30.0.50 Cc: Yuan Fu , 70059@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 29 12:38:13 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 1rqAYm-0005qD-LL for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 29 Mar 2024 12:38:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rqAYc-0000ug-A6; Fri, 29 Mar 2024 07:38:02 -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 1rqAYa-0000uW-QV for bug-gnu-emacs@gnu.org; Fri, 29 Mar 2024 07:38: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 1rqAYa-00046T-IR for bug-gnu-emacs@gnu.org; Fri, 29 Mar 2024 07:38:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rqAYb-00047i-KH for bug-gnu-emacs@gnu.org; Fri, 29 Mar 2024 07:38:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Felix Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Mar 2024 11:38: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.171171223515699 (code B ref 70059); Fri, 29 Mar 2024 11:38:01 +0000 Original-Received: (at 70059) by debbugs.gnu.org; 29 Mar 2024 11:37:15 +0000 Original-Received: from localhost ([127.0.0.1]:41805 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rqAXr-000459-7r for submit@debbugs.gnu.org; Fri, 29 Mar 2024 07:37:15 -0400 Original-Received: from mout.web.de ([212.227.15.14]:54697) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rqAXo-00044t-Mq for 70059@debbugs.gnu.org; Fri, 29 Mar 2024 07:37:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1711712224; x=1712317024; i=felix.dick@web.de; bh=Y4VYn72pxQRjRfEugFb+gSC/kRnzJ91BvFM78f+c+y4=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References: Date; b=uRQNLIUs9ML9wJltokMD8f1IimpEvPy4Xw2oJanKgag8m6o//Zg2kBtBll+qJisS uQg1Q3rnQTPK7NA6++lWWImLtyLj+tFtVk0R4f5UaSnANENDAuVNQk7wtFpPJHav1 AF3KkNL+m07+vDt0Vus9Z39A3oDQ9OqabFXjJBK/QG32VveAzMuKdxerKksEqOZKI 7tbfyrtsQMDnN6U+X43jfbdlupNgwaf1wGPuJqDgy5ftREhFlOpy3fq6DXtp3aJco Tj8vhw4Rwa4IZgzfdbWIgGhc40Tq7iEByM5y07RQcXucDWfw85dV/P189hcOVApz4 XiWfmUohX7zkuRm1aQ== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Original-Received: from felix-lifebooka531.web.de ([95.91.213.181]) by smtp.web.de (mrweb005 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MzCEB-1sl2Dz2goV-014DhL; Fri, 29 Mar 2024 12:37:04 +0100 In-Reply-To: <86zfuhe0uo.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 29 Mar 2024 14:25:35 +0300") X-Provags-ID: V03:K1:von9bRH3Vhk2Riv3IRKJ2jfjWa0+CMkAu8eE4zagO4cbWGEOCZW OcsA6E8b3fJ33jaYUx77cFFMa4VO8i7qcKQPPqDDN8ERlt3nXyAFKnzizME0cYCAn1KrAum 3QQyYmqNfCY6jD/71VLWgtXrT1ZYUtpEWMT8wMLbo4OTPNyrFjtSrh6FsOhi5/4UOPtGPsz c1t3UT4cyZco2Mzrzb53Q== UI-OutboundReport: notjunk:1;M01:P0:aZMAhm6gdDM=;hQtreS+ArpetPAOYksih5zUUaul iJKeIigsYBQGABkZ9Elb0zOx2jYYnCGA+rOV2JQDaM19q0hfMeMoRI0CqSTMfaFE1Ir66Dteo grQ01y3e4N9+7mxgDMS2IpTcePwiP3Id1BHo3HsbW6XNlxjUOSxP2MKChK5gWh0tlTjYiD1Tb u4+PXavQkFLB85oVEQR6r2Rg8ENa+rg1778JndGyOmjcbAL9BkIxb9R6j6R/v+L3Uu9HQWOI2 /zsIH72aZpAULcdntuMvkk985bWeP1Qcv/KI70Z0ZK6Zyg8mjSjz3y8mCQCLVLojItZGa91pc hgyhKuASTa0yibZ3FpsrJeiqS2RMWryxgZpXMiS5e579yTkOj8BDxGcxzTpW31nfdTWjVryiq gxW7w3AJyVTrC6vGsVSxe3/rr4pm98aZxC0kH3PjBikPmwIyiXXnGABnvi2S9KupoIoIZMXXC dGZq4xYONPccnzeD8M1u9CpNkyyIT5OFK+u1wpKsLMH52nEo6AdTNix+dL/2xq6KeNjeLA6BM r75JyC534P5Q5NE3ONw+d3ekS90Vmd+sAOTFt5q8k2VYOvu6Io/nn0XfZl2J/y7AW2Ys7ZJyM 0r/TG6pcKFChl/P0ArZsJODmc+c/GiQwEcEvIuLlCq8nII13YcWyrgZbFOF+J6sYxePF2hTDl fmaTrOr9ANHSV6VTrTWxeelWKx5OVlyOpsgQnDScEd9kDTZZJsHWjKn8u1wwWKNndvxpFdUcp Jxym6Q3FXlqtKWAFSVblhoR0i3TmnDvKpRVaJ9HsKTv7MEYIH4PUUaaS48jzCQTMUTH3Cz+a 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:282283 Archived-At: 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? Depending on the answer this report could be closed.