From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.bugs Subject: bug#60237: 30.0.50; tree sitter core dumps when I edebug view a node Date: Sat, 25 Feb 2023 18:02:00 -0800 Message-ID: <0ECBAB99-E393-45BA-83B5-5A129347274D@gmail.com> References: <9310F6C6-8B17-41D5-BF5D-E116910D646E@gmail.com> <83r0uekwlm.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.400.51.1.1\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10156"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Mickey Petersen , 60237@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 26 03:03:15 2023 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 1pW6Nb-0002Hv-UN for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 26 Feb 2023 03:03:11 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pW6NU-00087I-B7; Sat, 25 Feb 2023 21:03:04 -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 1pW6NS-000878-RZ for bug-gnu-emacs@gnu.org; Sat, 25 Feb 2023 21:03:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pW6NS-0003sX-54 for bug-gnu-emacs@gnu.org; Sat, 25 Feb 2023 21:03:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pW6NS-0000qP-0B for bug-gnu-emacs@gnu.org; Sat, 25 Feb 2023 21:03:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Feb 2023 02:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60237 X-GNU-PR-Package: emacs Original-Received: via spool by 60237-submit@debbugs.gnu.org id=B60237.16773769393184 (code B ref 60237); Sun, 26 Feb 2023 02:03:01 +0000 Original-Received: (at 60237) by debbugs.gnu.org; 26 Feb 2023 02:02:19 +0000 Original-Received: from localhost ([127.0.0.1]:41985 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pW6Ml-0000pI-Bs for submit@debbugs.gnu.org; Sat, 25 Feb 2023 21:02:19 -0500 Original-Received: from mail-pl1-f172.google.com ([209.85.214.172]:33569) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pW6Mj-0000p4-8i for 60237@debbugs.gnu.org; Sat, 25 Feb 2023 21:02:17 -0500 Original-Received: by mail-pl1-f172.google.com with SMTP id p6so2554196plf.0 for <60237@debbugs.gnu.org>; Sat, 25 Feb 2023 18:02:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=3Hd/7GoS0PscKXMiFACigyxseDyr9VNVIxByVv/W7b8=; b=HXrXRYgRZy7AN6u0ueyMT9kTVPh46CYjC2niKbzqbJV2hDHtVofiIe+t9HE9AX64kI i/UL9Hu5IrcNFDRLOsB+f1HXCYU+l4VNjCUZlKEQpksEDyzG46b1oFeK7Yh+gLgsKcBT 3ri2+9JoX+mIgf6SkIALS0Ks98wz/lNSqSEZgEJ+5oMFXx3ZNew+iiM+uKrR8Zdio7eC TmBbbzTfV4UeTjnOhJK7jNx4Tg0xNhvhzR3bHOvn3pzfypX37K2IA1aAbdtvXR62Rt7I JWNmip+vryzfgNz9VRhE7UuI+SD78yBfb68JhNOxkw0R9K55rlwVEpW99MbaFe3pdSlZ Jl5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3Hd/7GoS0PscKXMiFACigyxseDyr9VNVIxByVv/W7b8=; b=zjN610f4p0+vSskqInzl2xSsWTc5MUS77Ft89whstyZtAmgJY9rIJkaUi6E5JNhKc+ 2WmPIzlU5TUlYFT3BKWMJF/9qjjqY2Hlojatk1TxoAyCWqFKgik+qe4NJ8Y3J9nVcbNh F8LYZhHm2jFw2aDPUrGKHT1SBSZCxpwvy9ih2+yfojZlu4pWcJeGckMe6TclPwjuvHzl XqWPY9yQTYZarFvmBRS6E/yTR19YoLchNg5L6K9hM0Paas9GkjW9w8p42fj+blrpA8lE CoCZ/Jff0mZ+i7pbY5/5yRqclRSVcng6pfeVrIjvEFdR+gqaC+47th8D2Aw3GxRdbZ94 8Jdw== X-Gm-Message-State: AO0yUKXz5AxT3gUk/dRDRD/Y60BpeU3xWp49OhFU/+JmHkbfJSHSQE8A FdC4up/kAri6WBP1AMPARVQsP8cK46rkLg== X-Google-Smtp-Source: AK7set9dl8XEf9nQ2u0lpsZvfMV4Zu0QUwPNpHbjx3FxFU0iU79njxuUw5ODdth+L9h6j1Po8ik9gg== X-Received: by 2002:a17:903:690:b0:19c:bbd3:84b7 with SMTP id ki16-20020a170903069000b0019cbbd384b7mr8863329plb.65.1677376931673; Sat, 25 Feb 2023 18:02:11 -0800 (PST) Original-Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id e5-20020a170902b78500b0019c922911a2sm1850880pls.40.2023.02.25.18.02.10 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 25 Feb 2023 18:02:11 -0800 (PST) In-Reply-To: <83r0uekwlm.fsf@gnu.org> X-Mailer: Apple Mail (2.3731.400.51.1.1) 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:256758 Archived-At: > On Feb 24, 2023, at 11:55 PM, Eli Zaretskii wrote: >=20 >> From: Yuan Fu >> Date: Fri, 24 Feb 2023 15:29:15 -0800 >> Cc: eliz@gnu.org, >> 60237@debbugs.gnu.org >>=20 >> Maybe it will help us understand the problem better, so here is the >> backtrace for the infinite loop. I=E2=80=99m not sure why = treesit_delete_parser >> would trigger gc, as it just calls two tree_sitter functions: >>=20 >> void >> treesit_delete_parser (struct Lisp_TS_Parser *lisp_parser) >> { >> ts_tree_delete (lisp_parser->tree); >> ts_parser_delete (lisp_parser->parser); >> } >=20 > According to the backtrace, it's the other way around: Emacs called > some function via funcall, and funcall decided it was a good time to > do a GC. Then GC called treesit_delete_parser, presumably because > that parser object was no longer in use? Ah, right. I forgot it=E2=80=99s not a callstack. Yuan=