From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.bugs Subject: bug#71012: 30.0.50; tree-sitter crash Date: Thu, 25 Jul 2024 01:32:01 +0200 Message-ID: <87frrywemm.fsf@epfl.ch> References: <87ttiwpng0.fsf@gmail.com> <86wmnsfodz.fsf@gnu.org> <6F195712-81CE-4C75-8983-D1D909646CAC@gmail.com> <86zfs8ssyj.fsf@gnu.org> <6FC1345F-B7CE-4A95-84BA-E559D5A963E1@gmail.com> <792DB4FC-EB1E-4094-A4CF-14500DDA82C1@gmail.com> <87h6e52lkw.fsf@epfl.ch> <87r0d12hlw.fsf@epfl.ch> <87y15qrg5q.fsf@epfl.ch> <86cyn27nuo.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40381"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: casouri@gmail.com, eller.helmut@gmail.com, 71012@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 25 01:33:22 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 1sWlU2-000AKW-CF for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 25 Jul 2024 01:33:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sWlTf-0004vr-Ke; Wed, 24 Jul 2024 19:32:59 -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 1sWlTc-0004vj-9k for bug-gnu-emacs@gnu.org; Wed, 24 Jul 2024 19:32:56 -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 1sWlTb-0004K2-Qv for bug-gnu-emacs@gnu.org; Wed, 24 Jul 2024 19:32:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sWlTi-00019v-0x for bug-gnu-emacs@gnu.org; Wed, 24 Jul 2024 19:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Jul 2024 23:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71012 X-GNU-PR-Package: emacs Original-Received: via spool by 71012-submit@debbugs.gnu.org id=B71012.17218639404387 (code B ref 71012); Wed, 24 Jul 2024 23:33:01 +0000 Original-Received: (at 71012) by debbugs.gnu.org; 24 Jul 2024 23:32:20 +0000 Original-Received: from localhost ([127.0.0.1]:34678 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sWlT1-00018h-T0 for submit@debbugs.gnu.org; Wed, 24 Jul 2024 19:32:20 -0400 Original-Received: from mail-lj1-f180.google.com ([209.85.208.180]:40395) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sWlSx-00018Q-H7 for 71012@debbugs.gnu.org; Wed, 24 Jul 2024 19:32:18 -0400 Original-Received: by mail-lj1-f180.google.com with SMTP id 38308e7fff4ca-2ef298ff716so595201fa.1 for <71012@debbugs.gnu.org>; Wed, 24 Jul 2024 16:32:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721863923; x=1722468723; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=/E41Yrf0tcHhZae+SKyMfQvGNAGvl6DLXG5AaT+rij8=; b=I8S4S828EoB+Z3lQwCU5FgOaJAJuszZuTKlrNO6Kzb466HZEstX6JsnlKV4hL9UiQ1 QsWWsibtwzvVuV+yP9+3RBq0hFwjJnc4eGMiC4uGx5xcD8+Tkbv0f3mRr1D27IKcD0St CllzJQARKvY3NnjZsoLeAE1xcWAkjVZb17IqqMm1kEhvG3Mk4UfIyTINsv0vJ51ZDbNk P1zu/uyE3ZmH2H3yrN4F9xI1RNhpFfWfa428BUA9yBkHRZ+b7WMHnMYsddkQ8dI0JeLL xJaWW6aC3+509a+1CJRgH73GbcVMZXir9x7/o6REs61w3QFCBSanid2LNDqbx9QbACBQ jKsg== X-Forwarded-Encrypted: i=1; AJvYcCX6ltdv77Eu4a/CXeCOMEk+GEcOPqsrzglkeVMnLUCFxV+Gazqorl49FD1WuZUYDXKB0/lVcc0dBQfE7FT5YXygnKOogs8= X-Gm-Message-State: AOJu0YwuG7yeaYrD5B7rCZrJ+I9KV1/I8HdZr70PjqXsoYMlqVoEgNCI KhMPswsQoif2rrvWS18D99D+gyh4sUTF8LpG44T4PvAN1zHd1NTE X-Google-Smtp-Source: AGHT+IEocnXfg4yTYeLZ/4uIgEw5//Jo62NkPIaVtpw/DC9RzpimmlZ0fgRl8SIkaty68utocozbbQ== X-Received: by 2002:a05:6512:158e:b0:52f:cf7e:b1bc with SMTP id 2adb3069b0e04-52fd526bd58mr233405e87.1.1721863922623; Wed, 24 Jul 2024 16:32:02 -0700 (PDT) Original-Received: from localhost ([2a02:aa12:b107:8900:7502:96a1:feec:a0bf]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7acad41185sm8848766b.128.2024.07.24.16.32.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jul 2024 16:32:02 -0700 (PDT) In-Reply-To: <86cyn27nuo.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 24 Jul 2024 19:31:59 +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:289260 Archived-At: Eli Zaretskii [2024-07-24 19:31 +0300] wrote: >> Cc: 71012@debbugs.gnu.org, eller.helmut@gmail.com >> From: "Basil L. Contovounesios" >> Date: Wed, 24 Jul 2024 16:57:53 +0200 >> >> Ping: thoughts on whether this is an issue? > > Thoughts about what? what is deemed to be a problem in this case? That each call to treesit-parse-string now allocates a new internal buffer which is not automatically GCed. If this cannot be avoided, I think the docs should at least warn that it's the caller's responsibility to kill the return node's buffer when finished with it. -- Basil