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#72863: 30.0.50; tree-sitter elixir-ts-mode hangs and memory leak on some elixir and heex code Date: Thu, 29 Aug 2024 08:09:25 +0300 Message-ID: <861q27hq4a.fsf@gnu.org> References: <94F9A716-7D86-42F9-A010-54501ACF9AF8@ssbb.me> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24958"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72863@debbugs.gnu.org To: mail@ssbb.me, Wilhelm Kirschbaum , Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 29 07:10:35 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 1sjXQX-0006EJ-O4 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 29 Aug 2024 07:10:33 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sjXQA-0005UR-NU; Thu, 29 Aug 2024 01:10:11 -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 1sjXQ7-0005Tp-5X for bug-gnu-emacs@gnu.org; Thu, 29 Aug 2024 01:10:07 -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 1sjXQ6-0002za-Rs for bug-gnu-emacs@gnu.org; Thu, 29 Aug 2024 01:10:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=PGPzYSBcfCeMZH7eHSynPnUrPJFbc8bGgj3SK17lZrQ=; b=PhcapGV8XG07hy1d/c+ioyqFNH9qfmhVpE8vViwDzvfmFWewG69ycd8Vwpxvft9X5ObKiHshBDpaJeRIGcpn5paR3+4DWLxVTxXeC88NdIfl6OHuqALvSJYqp96KSzI/YUocBY2ek4BhL+L67mH93iF9jzn98qI+IMb9MNX07YSTKV6WRWyT5s/MbGPZJMVzVMdnXd+0H1UZWuJigg1eAgemAAHrqHZXhuiSKRYIN4H6LOzoLLWCoBw8aXTyOIkpzHnVKiUYyMExRzaPFjoziRlpW3OVSRht2U80T9yHccs/9yLiK2sCl/zmsrSafq1AnrwLrNfWH9loCZhUWl32Dw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sjXQz-0001CS-MV for bug-gnu-emacs@gnu.org; Thu, 29 Aug 2024 01:11: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, 29 Aug 2024 05:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72863 X-GNU-PR-Package: emacs Original-Received: via spool by 72863-submit@debbugs.gnu.org id=B72863.17249082334565 (code B ref 72863); Thu, 29 Aug 2024 05:11:01 +0000 Original-Received: (at 72863) by debbugs.gnu.org; 29 Aug 2024 05:10:33 +0000 Original-Received: from localhost ([127.0.0.1]:50095 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sjXQW-0001BZ-Nk for submit@debbugs.gnu.org; Thu, 29 Aug 2024 01:10:33 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:60748) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sjXQV-0001BG-2K for 72863@debbugs.gnu.org; Thu, 29 Aug 2024 01:10:32 -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 1sjXPW-0002kv-6Q; Thu, 29 Aug 2024 01:09:30 -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=PGPzYSBcfCeMZH7eHSynPnUrPJFbc8bGgj3SK17lZrQ=; b=PQHhmujYg21V cmvfm6UMdWhu9E1oRcvFwYKNVLUkBGBMmZpszaJi6gakyh4GDU6SSeZUjtaRqTlPDY5S3ldgskUGY Ax2DYQqftKhyV7aLrFXLeZzj4sdvqtgB8aQZVoZhNqBHBy8mYo7yBPESR33AbxADK4dW/UptTU92F TZ8CIGR5GbjZVe2FLNj+GCOHIreJ4gHSSdbCXUTRf/+h1yZ0kJIQLegMJYsCeUinYzyu/K+T3zMFq yn70Gu179qR/3yu/vE0RVdHfEgRIZX06SSzPoRGXnZxlf2S2pMkoh3QQoxnEIWeL/DS75eOLDprmd Ep6vqDtUHqUtzyvwN6G+cA==; In-Reply-To: <94F9A716-7D86-42F9-A010-54501ACF9AF8@ssbb.me> (mail@ssbb.me) 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:290905 Archived-At: > From: mail@ssbb.me > Date: Thu, 29 Aug 2024 06:57:38 +0400 > > Code in attached file cause Emacs to hang and memory leak infinitely > while editing. Try to open this code in elixir-ts-mode and move cursor > on line 6 (between <:loading> ) and type char by char: > > <.some_component a={ > > (for some reason it does not happen with electric-pair-mode when {} > inserted automatically). > > I am able to reproduce this with -Q on few different machines (Linux and > MacOS) and Emacs 29, 30.0.5 and current HEAD. > > C-g does nothing (including with debug-on-quit and sending SIGUSR2) > > At the same time I can't reproduce this in other tree-sitter based editors. > > I got this sample code sample from elixir-ts-mode repo but now it's moved > to the Emacs core so seems to be out of scope of Github repo issues. > > Attaching samle code and LLDB backtrace. > Also attaching report from built-in MacOS crash reporting tool just in case. Thanks. Wilhelm and Yuan, could you please look into this soon?