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 10:37:21 +0200 Message-ID: <86msgqagxq.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> 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="31990"; 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 09:38:12 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 1tOYWR-00089n-VS for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 20 Dec 2024 09: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 1tOYWN-0003dR-OB; Fri, 20 Dec 2024 03:38:07 -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 1tOYWJ-0003d7-K8 for bug-gnu-emacs@gnu.org; Fri, 20 Dec 2024 03:38:04 -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 1tOYWI-00066w-Ia for bug-gnu-emacs@gnu.org; Fri, 20 Dec 2024 03:38: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=9IqTVBLEBbGGtNpXQPJA0JNRyFd8DURlA7mITro9m7Q=; b=v0+6HN80YoxosUrr56/v7lXxhHRmItQJlPgslHd/tx8ybu/X5EL22Rrd4zMKM6kHgLcTKf1JMIuoFIlDdVhF1uLQTyNmZ83czuoSy/UorIOPItaf430TbZynWeK86LiKk6Dt3w/Ke3mfoVpKKfjHlGFZL7m+ZI5SyVhp/1w2MdGX2xzUtiQxMm0goVxIVr7KCiL8+RkelhTbM9vQtRVAiOzkGBYpckota5LBeIOPeq4V8KcqSbUITZTtdDrrE9yAxxrM1Vl0vvTX0gZlVEbCGRF7iCv5Fw2cwFK9yv47T5ZPI+fMkL9wrZGTv6Q0CcSphE0n22w27kL70ro1oYzW/g==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tOYWI-0003d0-CE for bug-gnu-emacs@gnu.org; Fri, 20 Dec 2024 03:38: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 08:38: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.173468385113896 (code B ref 73310); Fri, 20 Dec 2024 08:38:02 +0000 Original-Received: (at 73310) by debbugs.gnu.org; 20 Dec 2024 08:37:31 +0000 Original-Received: from localhost ([127.0.0.1]:41599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tOYVm-0003c3-TL for submit@debbugs.gnu.org; Fri, 20 Dec 2024 03:37:31 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:45548) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tOYVl-0003bq-I9 for 73310@debbugs.gnu.org; Fri, 20 Dec 2024 03:37:29 -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 1tOYVf-00063A-Ga; Fri, 20 Dec 2024 03:37:23 -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=9IqTVBLEBbGGtNpXQPJA0JNRyFd8DURlA7mITro9m7Q=; b=HFBt8m/7PnLPnpBcyrCq NwrgyMIXT/sav+3Rl9u6MvAUWTz21jSOBfc4ICTL3NBodUhmkmfCjctTxLE+PC9FjxPYcq3adoU1z 5HhAlXTWKjCvMuUhdA8VB47NdWVYGTJqPRk0sLIbfQ2bNWC15LRxlCiUgv7TKlNGdHLE/oAio9Sbo EuPN+rMq7mgAU/hWwnGyczcsZgcH4L9lpFDn7tATOp5g95VbD4R5TYBhT2FrAQpdVCV3qUyv210Zs pucBbiZSMYvHZ1N6BGNEyZBYNNNKlMNoKka/KjdD4wVKL8wyUeSVzKduAnNr2EktVQ0Vy1sp3vkFr nrlSeMtSJARpkQ==; In-Reply-To: <42BD4BD5-E930-427F-99EF-3787EC0F31B2@gmail.com> (message from Yuan Fu on Fri, 20 Dec 2024 00:25:23 -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:297442 Archived-At: > From: Yuan Fu > Date: Fri, 20 Dec 2024 00:25:23 -0800 > Cc: Eli Zaretskii , > 73310@debbugs.gnu.org > > > > > On Dec 19, 2024, at 1:34 PM, vinurs wrote: > > > > Hi, > > I tried version 0.25.0, and using the same method it doesn't always reproduce the issue, but it still hangs. On the same line, if I repeatedly delete and press space, it also hangs. I just haven't found a consistent way to reproduce it yet. > > Thanks. That’s bad news. I’ll also see if I can modify my C program to reproduce this. 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.