From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mickey Petersen Newsgroups: gmane.emacs.bugs Subject: bug#60237: 30.0.50; tree sitter core dumps when I edebug view a node Date: Thu, 29 Dec 2022 14:21:35 +0000 Organization: Mastering Emacs Message-ID: <87fscye1b2.fsf@masteringemacs.org> References: <8A17A5F6-D286-4C3B-9ACB-1751ADE21AB8@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38830"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e @VERSION@; emacs 30.0.50 Cc: Eli Zaretskii , 60237@debbugs.gnu.org To: Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 29 15:24:19 2022 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 1pAtpS-0009sy-3n for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 29 Dec 2022 15:24:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pAtpI-0004Xk-2q; Thu, 29 Dec 2022 09:24:08 -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 1pAtpF-0004XF-To for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2022 09:24:06 -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 1pAtpB-0001bJ-NG for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2022 09:24:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pAtpB-00070P-JZ for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2022 09:24:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mickey Petersen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Dec 2022 14:24: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.167232382426898 (code B ref 60237); Thu, 29 Dec 2022 14:24:01 +0000 Original-Received: (at 60237) by debbugs.gnu.org; 29 Dec 2022 14:23:44 +0000 Original-Received: from localhost ([127.0.0.1]:59602 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pAtou-0006zl-4d for submit@debbugs.gnu.org; Thu, 29 Dec 2022 09:23:44 -0500 Original-Received: from mail-cwlgbr01on2102.outbound.protection.outlook.com ([40.107.11.102]:6065 helo=GBR01-CWL-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pAtor-0006zV-BF for 60237@debbugs.gnu.org; Thu, 29 Dec 2022 09:23:42 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=H0vY/A8pB+gzzo0Tdamh+p10wq6t62Z5sOqpddD6w72wpMSBNCdjLs12sxCPWKcn3suvjx8a3YYlFV5Qv4aYllz0DMJ2uyDUN9KSrpzM+CChlYFi3Bi5gj3n04TfqkQW1TO1Q+Rro/HaTdghnNEyUGDQAm2KMMYeIVadY8NH0ztvtN8FkTsy6vtRjSUUHxaFgieNr9Ax0Fw6tSsGMi5lxVtRcHuqheSX/ezr9gtl7zqCqNoaMor/AF9BcJWoCaflP5IyZiMJVKs/j/E+YNjuFJmCPoYRr8MrfCvK8xOrtH8rem+ldhGbJJ/T5wUkC91dHTrj3ELZDIBSSlprrUHMfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=tuhdcVcMd0capR+6znm2IjAYC2QKiQEBT/Ck/BX9SHM=; b=ebcIWDQxNctVJGGl7UUG4rlWQASUC/UE5q5Ahrg/3b8EBOHsAd2opUdRmZVb1Iy+RSjczTQ6LxFkodc3n7hJnuYdGPdMTQCb67pwoL1bbze1sbSeZk4wvJsff4Qw3J53otrUdn4+8LFU3VD+OtDaG4kt/H3Pzug9eQqGEc/ZElk+sqL33fdZoIZf4c7/mwYLzTT3Fm1OvFuTY+yWwxbEKVHcWTd4v3W7xGa+uZnOC4C+BZYg8Vlii/dTXE/46qVc6L/z8o6B/JSO+HQW98/auGbTzRAnkC9c1C3WA/+rXFZv9hvsyP8AsXPRiC4flHgaRLr1CB1V1R++u+EQtKdG3w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 178.79.136.144) smtp.rcpttodomain=debbugs.gnu.org smtp.mailfrom=masteringemacs.org; dmarc=pass (p=none sp=none pct=100) action=none header.from=masteringemacs.org; dkim=pass (signature was verified) header.d=masteringemacs.org; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semantical.onmicrosoft.com; s=selector1-semantical-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tuhdcVcMd0capR+6znm2IjAYC2QKiQEBT/Ck/BX9SHM=; b=0hz6EKdaa5p85aS1s9LHNG1tokB6c+4/1dvVcTJZ3YiHeucYhBwxBpT7l5ZTBAxTll/8AZfDTzQhuQIeDevIYWo5gi15iomr1XljJ/1YllHjgvgN058FHU5l3dtooVmN9AM9OPk+52CeeNyr8C8q2geh72nQiLZ9ddnONWu7F4g= Original-Received: from LO3P123CA0009.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:ba::14) by LO0P265MB6320.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:244::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.16; Thu, 29 Dec 2022 14:23:34 +0000 Original-Received: from LO2GBR01FT022.eop-gbr01.prod.protection.outlook.com (2603:10a6:600:ba:cafe::2d) by LO3P123CA0009.outlook.office365.com (2603:10a6:600:ba::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5966.18 via Frontend Transport; Thu, 29 Dec 2022 14:23:34 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 178.79.136.144) smtp.mailfrom=masteringemacs.org; dkim=pass (signature was verified) header.d=masteringemacs.org;dmarc=pass action=none header.from=masteringemacs.org; Received-SPF: Pass (protection.outlook.com: domain of masteringemacs.org designates 178.79.136.144 as permitted sender) receiver=protection.outlook.com; client-ip=178.79.136.144; helo=semantical.co.uk; pr=C Original-Received: from semantical.co.uk (178.79.136.144) by LO2GBR01FT022.mail.protection.outlook.com (10.152.42.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5966.17 via Frontend Transport; Thu, 29 Dec 2022 14:23:34 +0000 Original-Received: by semantical.co.uk (Postfix, from userid 5001) id A7C08114002; Thu, 29 Dec 2022 14:23:33 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=masteringemacs.org; s=masteringemacs.org; t=1672323813; bh=RqBFWT8qXBQcult6e8CTjP13UTaos+m4qQ2HRVfliLg=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=Xyv8oqduLrq6YFAv/bTc81e2Be0MwppRO9Jo/F/Peol71n1GpdHhIFdTBFVtr0IXP jjbyrJtQRMKVE2Ff7ma3aYhKR8tFeQcQuNXmfSIxk5Mr2fNOPC2CE78FhzIZsWTH4J QtG28SA8sqN724I3sSFOjUTavFqzBOhK2Z7Ehfv0= In-reply-to: <8A17A5F6-D286-4C3B-9ACB-1751ADE21AB8@gmail.com> X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: LO2GBR01FT022:EE_|LO0P265MB6320:EE_ X-MS-Office365-Filtering-Correlation-Id: 8f270fe6-9aac-4e2f-9aa3-08dae9a844a5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lFE36HYqDDqqKqET8aLgq0jAPjjWg5mOYjkcB79HDcnDlt7KAvKv+ol29l9AhTbASuFTwXmOJN6SqE0jdj1s0zi3BcORJfUeL+Z/cN4UxC1o42xrKRV0ClgHfgT/gMZj5+vfupUJGY7kzn3LS2eR2Z5ABWBUV50Q5l0DVRdcneyHdZPKIVuTcuIej5CcbRJxf/tqpsQXM8mbM/YMtX168CUod5mqcsmzHTEC+Ds2mhKCvh7zRqMmT4jUrMPaQ0XgqC1xiTzXV/YDIOsPClIiEju06gQbZGB6dLJ8tpbARMOkL2H04Zei20dZ05o9ahiH33ja6XnQOhf1QwvdB2HvJ4oizHrJKht93tALjfisS7ti9Za3SQxQ6yIfIAX8L2kmnunQ1LUV0IDcYE1Eow7Iv7/Fksbyw1YJoq4v+t/Z4uhv3Ft1UEeU4UwJ5QMNxTWoX7xE6jwtbKbrVOH6nzJ6q44NW+vb/kFXlKE7WMRSpfYahws9YH9CIBfaqgODNgJggamCDOPXmyfH7zXZlaa/lpviYgfbb6EftU+n41CqcqxNw7ZKSfHJB8KBlzvxzXE9rHXiWkBEFDnIdbE5kawxAIbyQUt0lW0NbEAB7Fi1qzdvUZ4CBUQNSH8GO/mY+rAkCWq1t3nuf5jlFt3jTzd2OPGVc2y02txtrOLERc1QS01W+F653EuoHqCiCCRLe4HbNScpOld9J4cuReieIk8sEYTB0B7UVRwuRQE/xbk/Nid6iQwtMAjtPhSWclGZg SZh X-Forefront-Antispam-Report: CIP:178.79.136.144; CTRY:GB; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:semantical.co.uk; PTR:semantical.co.uk; CAT:NONE; SFS:(13230022)(39830400003)(396003)(376002)(346002)(136003)(451199015)(36840700001)(46966006)(7636003)(7596003)(356005)(86362001)(8676002)(41300700001)(4326008)(70586007)(316002)(36916002)(42186006)(36860700001)(70206006)(40480700001)(2906002)(6862004)(8936002)(5660300002)(82310400005)(186003)(2616005)(26005)(6266002)(478600001)(336012)(47076005)(36756003)(38230200001)(79816003)(14776008); DIR:OUT; SFP:1102; X-OriginatorOrg: masteringemacs.org X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Dec 2022 14:23:34.1515 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8f270fe6-9aac-4e2f-9aa3-08dae9a844a5 X-MS-Exchange-CrossTenant-Id: a4e27e3d-bab0-45e8-8942-e64cf9fbd34f X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=a4e27e3d-bab0-45e8-8942-e64cf9fbd34f; Ip=[178.79.136.144]; Helo=[semantical.co.uk] X-MS-Exchange-CrossTenant-AuthSource: LO2GBR01FT022.eop-gbr01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: LO0P265MB6320 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:252035 Archived-At: Yuan Fu writes: > Eli Zaretskii writes: > >>> From: Mickey Petersen >>> Date: Wed, 21 Dec 2022 12:24:34 +0000 >> >> Yuan, can you look into this? The crash is in tree-sitter, so maybe >> it isn't our bug, but I'd like to be sure. And even if it is a >> tree-sitter bug, maybe we can work around it to prevent Emacs from >> crashing? > > Absolutely. > >>> Happens in emacs -Q (after loading some simple elisp code that uses treesit.el) and consistently and repeatedly. >>> >>> >>> Here's the elisp. When I edebug it I can step and view all the >>> variables and expressions I like. The `combobulate-' functions are >>> widely used in the library and pose no issues anywhere else and do >>> nothing more than fetch nodes via tree sitter. It is only this bit of >>> code that blows up, and then only when invoked inside a python >>> string. > > It would be nice if you can make a reproduce recipe. Judging from the > backtrace, you can probably trigger it by printing the node with print > or princ. And does it trigger on all python strings? Or some specific > string in some specific python source? > This issue seems entirely related to `M-x treesit-explore-mode` (and possibly the inspect variant also) though it is hard to reproduce reliably. I get either crashes or hangs, depending on whether I have edebug on or not. Thrown errors seem to be the common denominator? > Yuan