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#73310: tree-sitter makes cpu 100% Date: Fri, 20 Dec 2024 14:15:49 +0200 Message-ID: <86ldwaa6tm.fsf@gnu.org> References: <86ldzqbh02.fsf@gnu.org> <86bjynl43x.fsf@gnu.org> <0653B68D-3F98-4D06-8C37-8976DC8C2BA4@gmail.com> <861pyjk7ip.fsf@gnu.org> <7C7183A4-758E-491E-B403-A57723598F53@gmail.com> <3EACFBFF-2E78-4746-8143-1DCB20A5AEAD@gmail.com> <99E79D3D-10C5-45B8-A4CE-4AA3F770BC2E@gmail.com> <42BD4BD5-E930-427F-99EF-3787EC0F31B2@gmail.com> <86msgqagxq.fsf@gnu.org> <71C7B1A0-AFD4-4162-A670-9749B1C0CD41@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27879"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73310@debbugs.gnu.org, hi@vinurs.me To: Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 20 13:19:31 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 1tObyc-00075z-SD for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 20 Dec 2024 13:19:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tObyD-0001vj-4l; Fri, 20 Dec 2024 07:19:05 -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 1tObyB-0001v9-5o for bug-gnu-emacs@gnu.org; Fri, 20 Dec 2024 07:19:03 -0500 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 1tObyA-0005uJ-RM for bug-gnu-emacs@gnu.org; Fri, 20 Dec 2024 07:19:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-version:References:In-Reply-To:From:Date:To:Subject; bh=/QgwGfpl3mEsLhER4B4pn8Mh6OeyfyLKCFypjJ9IHf4=; b=k5hKcpFffpJf0wIpRmZQtvo9E3U8JzV1Y9ho1IBxM6AuDyUUf/MDc6Et51kwg2QpIe8F8yfU62co+tBXhg0hwPrm8cyCBUJx83EGcCmD5DyyAjpsfwHAcdXJ8/Qi3XfhQUXO2FpVv+/ZD59bqpM4I27ievOpj4rE+yiAFCjibnMdScIo5M0PUUYiZqltCvKKd1J/xhaKVbwIXJmc3BHLoZKhHqfRIxEOnsmGVPv98V/eVGW549+GbRWl68suU00jpU+y8pm+WNWIg2b26JdA87Hv8SQ6gl2Aq4BMHYg0WgP94cgRIAa+ataEuq0ak2sU34guS99F9cpMNJ434c15Tg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tObyA-0005kt-6T for bug-gnu-emacs@gnu.org; Fri, 20 Dec 2024 07:19:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 Dec 2024 12:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73310 X-GNU-PR-Package: emacs Original-Received: via spool by 73310-submit@debbugs.gnu.org id=B73310.173469709422041 (code B ref 73310); Fri, 20 Dec 2024 12:19:02 +0000 Original-Received: (at 73310) by debbugs.gnu.org; 20 Dec 2024 12:18:14 +0000 Original-Received: from localhost ([127.0.0.1]:41949 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tObxO-0005jR-B6 for submit@debbugs.gnu.org; Fri, 20 Dec 2024 07:18:14 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58786) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tObxM-0005j4-7i for 73310@debbugs.gnu.org; Fri, 20 Dec 2024 07:18:13 -0500 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 1tObv9-0003nk-CE; Fri, 20 Dec 2024 07:15:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=/QgwGfpl3mEsLhER4B4pn8Mh6OeyfyLKCFypjJ9IHf4=; b=e9AjQPcBr1kXe+ntfIc5 BLo5yw577d5lvrvrPckX4G929Z4A4Dfp8XPGewHKCf3uXjAw3++GBrWuZAOrkZ06+HKvOznFY/C7F X6dfWeCVbK9TBEVCA8EsjMzk2cHeqA6hNktfUiry2Gq/tsWxuYC8oDTOYGVbUjb0mipdu1SbDupls fc3d11xeynAHwhHNuhFDp+2x5Ww13gngHmu8z4vZpGrm5tIuthuscwPmAkuVniEzIWFLZ576XqJSj 8aD2B7RY7id6vNd+qPHoDs+Q6kCExtxtOFL7ca7Y6FqKUQDqQz5bf6xholnI8/w/hiedAzokHKhUJ NGcIdCNvC99Yuw==; In-Reply-To: <71C7B1A0-AFD4-4162-A670-9749B1C0CD41@gmail.com> (message from Yuan Fu on Fri, 20 Dec 2024 01:14:04 -0800) 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:297448 Archived-At: > From: Yuan Fu > Date: Fri, 20 Dec 2024 01:14:04 -0800 > Cc: vinurs , > 73310@debbugs.gnu.org > > > On Dec 20, 2024, at 12:37 AM, Eli Zaretskii wrote: > > > > Can we have a GDB backtrace when Emacs freezes like that? If the > > freeze is inside tree-sitter, maybe build that with debug symbols, so > > that GDB shows information inside the library, and we could then try > > to figure out what causes this. > > It’s almost certainly tree-sitter. And it’s unlikely for us to find the cause of the hang without considerable knowledge of tree-sitter internals. Maybe. But we have the sources of tree-sitter, so nothing prevents us from trying -- provided that we have the backtrace from the freeze. > Anyway, I’ll start with reproducing it reliably. Thanks, that will help.