From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Wilhelm Kirschbaum 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:13:11 +0200 Message-ID: References: <94F9A716-7D86-42F9-A010-54501ACF9AF8@ssbb.me> <861q27hq4a.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000002dd7860620cc5ffd" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30857"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Yuan Fu , 72863@debbugs.gnu.org, mail@ssbb.me To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 29 08:15:32 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 1sjYRQ-0007qn-BA for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 29 Aug 2024 08:15:32 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sjYR8-0005s3-6e; Thu, 29 Aug 2024 02:15:14 -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 1sjYR2-0005q8-6D for bug-gnu-emacs@gnu.org; Thu, 29 Aug 2024 02:15:09 -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 1sjYR1-0001Mx-Fm for bug-gnu-emacs@gnu.org; Thu, 29 Aug 2024 02:15:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:From:In-Reply-To:References:MIME-Version:To:Subject; bh=LvVVM3MJhh4P0NJfLVnQdppgODHe8NVtxhrVNcy9gOY=; b=uj2FWR8l0idRdTJX2Vdupwm5hNTllBQ4CzNIILxT5ZEQoLLyataVSOPf2nPxD+URhDvPyTkyd+rO8JFDx8GZVXlL3j+y8onVEkol31iXx7Xt+jfyJh+XXDhMQDelkTksWDB/nY/Mt/irNdCQbeNiOGnZUTkmOupf0/T+fb8pUOsowOg59eiCaP9CSsCiN+ydAV/7YpLC3J7jfWsplFB81jmH+rF4Wo3P84dZ8BwGetlSytsw1YL6lK7XvPt/YiEjHYiQwkFbDLgmCw344F82HbwxgduZflEqnSAWhmlrLmn2SOIpHsHGkduJbJCKIJGQeA2xjF7nz1tuEHIAbxhkew==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sjYRu-0003Cg-DR for bug-gnu-emacs@gnu.org; Thu, 29 Aug 2024 02:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Wilhelm Kirschbaum Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Aug 2024 06:16:02 +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.172491212612257 (code B ref 72863); Thu, 29 Aug 2024 06:16:02 +0000 Original-Received: (at 72863) by debbugs.gnu.org; 29 Aug 2024 06:15:26 +0000 Original-Received: from localhost ([127.0.0.1]:50160 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sjYRJ-0003Bc-Nf for submit@debbugs.gnu.org; Thu, 29 Aug 2024 02:15:26 -0400 Original-Received: from mail-qt1-f179.google.com ([209.85.160.179]:59828) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sjYRH-0003BM-7T for 72863@debbugs.gnu.org; Thu, 29 Aug 2024 02:15:24 -0400 Original-Received: by mail-qt1-f179.google.com with SMTP id d75a77b69052e-44ff7bdb5a6so1450161cf.3 for <72863@debbugs.gnu.org>; Wed, 28 Aug 2024 23:14:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724912003; x=1725516803; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=LvVVM3MJhh4P0NJfLVnQdppgODHe8NVtxhrVNcy9gOY=; b=D4iXy7Ae1PLPgWGb/+bR765rwgvoPVGiNZbLMrgR9G0mI73OC/rms1r6eiCf8eWxET dFI3d+EeDXSyQHwVZ7AHzzzWaaJ9XIGWBgkKH9dJLSnOzg9h4p7kWNH/NNj8UICdG9kN aHcqzUrx3L2lmS9Do8N7gw2tKRYq+zPcvm8rIl/Ai5BI3/epYHRCTp8uBWmAtA23hM13 ID2jBZ8izka109vjlEJgLWqdQwWLSDTUzeCmd7PxIYCggG7MyMUTVMENEEY1Mjkhx/cQ ufx9hsRhRLLa6qREoPj2Q9yr7k12nybMSECaKKWrO8snLkcHEqdlRQ/kBHFaw0hUZL1i YUsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724912003; x=1725516803; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=LvVVM3MJhh4P0NJfLVnQdppgODHe8NVtxhrVNcy9gOY=; b=ZgQZhkeqsL+wHIF0C0RzDm/1QcwH3RO90VDo1Dbp04H8ygc+6UNAWWnbFLoheB6w6B rwqNZGNIo9T8/Ko/qHHM3x3BWU5miox4BO28eDOj37UOx0naovLaK3bOwBu9cUFlkzxP waSQF/sBVNzAwhGX++cIfWr6nYGYCuSPkghNozTvTf8aShsTISrdObCpessMP40dsjr2 17PDeLfeQDlob5dI7VAKYkdo3cLVNPDst7RgAo0xpKgU/HGdXy9guNWBFECLGx6RRLaY n4o9M8mDmRYNJXEUmnqi8x/Kt16KKPkAYR0+JnrbcZzDuBjkpGmQyyTRRIax/I+cLwzk yCuQ== X-Forwarded-Encrypted: i=1; AJvYcCUrCcV7/u4iQjAtjdYQUrgEz603DtS3vl5Iar7B2/MWanfJ3a9LVQtVIqIwwoI8aLm3wr0nVQ==@debbugs.gnu.org X-Gm-Message-State: AOJu0YwPrJSbWn8DBv6SZG4OLbSCJB36Q9moml82rSwcAlBb9/dKZim5 6h76WGcNAvdkAbqgkJAFLMy4c5wrjm2Kwt5MepLKLkccOgRgppjYW0iKHCr9Ow5EIgkC6A+ixmH OAJcw3eQTX6rrPED4PptZCVu6Uek= X-Google-Smtp-Source: AGHT+IHCY88Cek+uFbEpkfo75akfkT799ItgpCFe8GG/exDxFoGp9AGjixFZSHJ9JBbolDfaCCSJw8X+4mUZf2a4Jbo= X-Received: by 2002:a05:622a:1bac:b0:453:769b:ed97 with SMTP id d75a77b69052e-4567f59a7e5mr19647561cf.34.1724912002518; Wed, 28 Aug 2024 23:13:22 -0700 (PDT) In-Reply-To: <861q27hq4a.fsf@gnu.org> 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:290909 Archived-At: --0000000000002dd7860620cc5ffd Content-Type: text/plain; charset="UTF-8" > > > 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? > Thanks, I will have a look later today. Wilhelm --0000000000002dd7860620cc5ffd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
=C2=A0> 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>=C2=A0 </:loading>) and type = char by char:
>
> <.some_component a=3D{
>
> (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 a= nd
> 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?

Thanks, I will have a look later today.=C2=A0
Wilhelm
--0000000000002dd7860620cc5ffd--