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#71679: 29.3; treesit-node-child function chokes and crashes emacs for nodes with large number of child nodes Date: Thu, 20 Jun 2024 22:22:50 +0300 Message-ID: <86h6dnmnat.fsf@gnu.org> References: <87bk3vmz2o.fsf@disroot.org> <86zfrfmwke.fsf@gnu.org> <877cejmv0m.fsf@disroot.org> <86sex7mude.fsf@gnu.org> <87zfrflezz.fsf@disroot.org> <86r0crmqu1.fsf@gnu.org> <87msnflbfr.fsf@disroot.org> <86o77vmphu.fsf@gnu.org> <87iky3l9k0.fsf@disroot.org> <86iky3mnvt.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38777"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71679@debbugs.gnu.org To: mstenek@disroot.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 20 21:24:18 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 1sKNOM-0009oN-9z for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 20 Jun 2024 21:24:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sKNO4-0004Su-1O; Thu, 20 Jun 2024 15:24:00 -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 1sKNO2-0004PG-Bb for bug-gnu-emacs@gnu.org; Thu, 20 Jun 2024 15:23:58 -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 1sKNO1-0003hZ-Uq for bug-gnu-emacs@gnu.org; Thu, 20 Jun 2024 15:23:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sKNO5-0001XK-Jx for bug-gnu-emacs@gnu.org; Thu, 20 Jun 2024 15:24: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: Thu, 20 Jun 2024 19:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71679 X-GNU-PR-Package: emacs Original-Received: via spool by 71679-submit@debbugs.gnu.org id=B71679.17189113855796 (code B ref 71679); Thu, 20 Jun 2024 19:24:01 +0000 Original-Received: (at 71679) by debbugs.gnu.org; 20 Jun 2024 19:23:05 +0000 Original-Received: from localhost ([127.0.0.1]:41225 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sKNNB-0001VP-18 for submit@debbugs.gnu.org; Thu, 20 Jun 2024 15:23:05 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:57490) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sKNN8-0001Up-FT for 71679@debbugs.gnu.org; Thu, 20 Jun 2024 15:23:03 -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 1sKNMy-0003Yk-DC; Thu, 20 Jun 2024 15:22:52 -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=hkBQbLRwKt/tmuQBShuHSo/j9hnK7Z4EnLD/kmaiGbI=; b=T2T/nhBa5Tu/ WA5ndiBSqSDY/4qtkm/3QaUfpTgvIsO/Q6JXhIXhnHkb5FCp6P1/n9XxK5ErsWHvTyE685o/LPD40 BT6RhAlEmeyVzfPKiwiS7zUlElPQEJtWpJoTgx3yy/dn8OiZXOLB89W97McAevzs4ZsuBY7etYX1C B73e3K+kcZwrPSw22QZjoO8lnl8Y0ltyLBwKkA/LHmbPRJ5jRE4pIsURVGY1tErP2lqeC01mAe0nx vRMULcRD9zhtM8O0UNOmixBASupyzbDF6F9rV8vpBR471UhfrRs1z2aKVH4tyYvcgCaPH02xqMx1+ iXf95TlqmmbOKBfZs/LNmA==; In-Reply-To: <86iky3mnvt.fsf@gnu.org> (message from Eli Zaretskii on Thu, 20 Jun 2024 22:10:14 +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:287593 Archived-At: > Cc: 71679@debbugs.gnu.org > Date: Thu, 20 Jun 2024 22:10:14 +0300 > From: Eli Zaretskii > > > From: Mauritz Stenek > > Cc: 71679@debbugs.gnu.org > > Date: Thu, 20 Jun 2024 13:05:03 -0600 > > > > On 2024-06-20 at 12:35, Eli Zaretskii wrote: > > > > > Start Emacs from GDB, run your recipe, and when it crashes and > > > GDB > > > kicks in, type > > > > > > (gdb) thread apply all bt > > > > > > and post here everything GDB displays as result. > > > > I'm doing this: > > > > $ gdb -i=mi -p 238975 # the pid of `emacs -q` > > > > but it freezes Emacs and I can't do anything with it. > > You need to say "continue" to let Emacs continue running after you > attach the debugger. > > > Is this how you "Start Emacs from GDB"? > > No, I usually start GDB first: > > $ gdb ./emacs > ... > (gdb) run -Q > > But your way should also work, if you say "continue" after attaching > GDB. And don't use -i=mi, since the MI interface is for another > program to drive GDB, it is not convenient for humans. Actually, forget it. I've succeeded in reproducing this here, and I see that this problem was already fixed in the development sources. The next Emacs release will have the bug fixed. So I think we can close this bug.