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#60237: 30.0.50; tree sitter core dumps when I edebug view a node Date: Sun, 26 Feb 2023 08:18:23 +0200 Message-ID: <83leklj6fk.fsf@gnu.org> References: <9FCDA5B7-D216-45B1-8051-35B05633BEFB@gmail.com> <83sfeukwsb.fsf@gnu.org> <574817C4-3FD8-43EA-B53C-B2BCB60A6D0A@gmail.com> <87zg9117aa.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20346"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com, mickey@masteringemacs.org, 60237@debbugs.gnu.org To: Po Lu , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 26 07:19:29 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 1pWANd-000547-0N for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 26 Feb 2023 07:19:29 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pWANE-0001g8-Ls; Sun, 26 Feb 2023 01:19: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 1pWAND-0001fn-0Q for bug-gnu-emacs@gnu.org; Sun, 26 Feb 2023 01:19:03 -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 1pWANC-0001n8-Ny for bug-gnu-emacs@gnu.org; Sun, 26 Feb 2023 01:19:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pWANC-0001ZR-JM for bug-gnu-emacs@gnu.org; Sun, 26 Feb 2023 01:19:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Feb 2023 06:19:02 +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.16773923085967 (code B ref 60237); Sun, 26 Feb 2023 06:19:02 +0000 Original-Received: (at 60237) by debbugs.gnu.org; 26 Feb 2023 06:18:28 +0000 Original-Received: from localhost ([127.0.0.1]:42191 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWAMd-0001YB-U4 for submit@debbugs.gnu.org; Sun, 26 Feb 2023 01:18:28 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44272) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWAMb-0001Xw-Qb for 60237@debbugs.gnu.org; Sun, 26 Feb 2023 01:18:26 -0500 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 1pWAMV-0001iF-FI; Sun, 26 Feb 2023 01:18:20 -0500 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=26sRbjoGGmhvc80+u1m2hZDnADgbeN+sEKUvO4ofFNY=; b=LyM5Iuua26cH wnuM2mg3g+OxJvTMKETc2kfxX7klkfwXPrVaQ8q1GTIZ/fTh1oldkyJpMvQEsjcfi8/ZKKKirI5Th xtoE94KMRR0cHXSW+0ncVKRUYOLir6jr1PfEYMrzq4IR/FTMocXwiFI6qmWB5SfRyNgBHVDkR/kVi /6c1o03zx7GFl9yNFmHB79W14FL99KzV8mW71qddihjimByioNfBaomJ49F5+NL08J3PtwneVxeGy L7D9KIF0UE5r2/EZLnKzptovRDrT9i+A9cFX/pxOx72MJCFyyfJsTY91DsVGJNzkNBEGFlZgHdaAi 4yuvoTEhSyxW1H2RC0fAxg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pWAMU-00071O-Pc; Sun, 26 Feb 2023 01:18:19 -0500 In-Reply-To: <87zg9117aa.fsf@yahoo.com> (message from Po Lu on Sun, 26 Feb 2023 10:37:17 +0800) 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:256769 Archived-At: > From: Po Lu > Cc: Eli Zaretskii , Mickey Petersen > , 60237@debbugs.gnu.org > Date: Sun, 26 Feb 2023 10:37:17 +0800 > > Anyway, the profiler should either be fixed to not hook into xmalloc, or > (better) tree-sitter should be fixed to not call xmalloc during GC. That's what the "memory" profiler does, AFAIU. It uses xmalloc as a poor-man's timer. It is rather useless and misleading, but if we remove it, platforms that don't have timers and SIGPROF will not be able to profile. But maybe there are no such platforms? (DJGPP has setitimer and SIGPROF, so the MSDOS build shouldn't be a problem, although I never tried profiling in the MSDOS build.)