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#72559: 31.0.50; profiler-report-write-profile produced unreadable data Date: Sat, 10 Aug 2024 17:09:17 +0300 Message-ID: <86a5hkjwqa.fsf@gnu.org> References: <87wmko35yn.fsf@localhost> <877ccomqg3.fsf@protonmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25103"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72559@debbugs.gnu.org, yantar92@posteo.net To: Pip Cet , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 10 16:09:58 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 1scmn6-0006NE-2c for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 10 Aug 2024 16:09:56 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1scmmm-0007HB-5g; Sat, 10 Aug 2024 10:09:36 -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 1scmmk-0007H0-1P for bug-gnu-emacs@gnu.org; Sat, 10 Aug 2024 10:09:34 -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 1scmmj-0001MK-O9 for bug-gnu-emacs@gnu.org; Sat, 10 Aug 2024 10:09:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=i59S+w/o76zTVxF3AF+EmziIimt09P1eW7ZYjI/92IU=; b=iFmkAAxh2dUIJQ2JyN44mAT4WnvAEVSp04szi/BysEt4bbXVsYv8AGs+f2iU72+JuN+ZWgkXtvtIC2fAf7rKdUbjAXwCqsd81lc30QDIhjLiJSTZkWL0S0fi6Jzbdk7JU65uKpihD71gT1vnbsdra8hyCsH4JPsxEu2dWt4k2WklxX7PmJiwQWLAnu2HSIPpom9tuVmjodR+xHAGFT66iSzzeddei47f2tMKxRZov1sCdLlAEjc4DMjuDqBEGMKdHgZtlKKZ2akhCEPjOCo8zjidRviBz1Nne8/PunOfTL3EMUZEZbRUGbFL0jKWhQTPR4g79zIoKpper5gFB6F3dg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1scmnC-0007v8-NB for bug-gnu-emacs@gnu.org; Sat, 10 Aug 2024 10:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Aug 2024 14:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72559 X-GNU-PR-Package: emacs Original-Received: via spool by 72559-submit@debbugs.gnu.org id=B72559.172329899930430 (code B ref 72559); Sat, 10 Aug 2024 14:10:02 +0000 Original-Received: (at 72559) by debbugs.gnu.org; 10 Aug 2024 14:09:59 +0000 Original-Received: from localhost ([127.0.0.1]:40246 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1scmn8-0007uj-Fh for submit@debbugs.gnu.org; Sat, 10 Aug 2024 10:09:58 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44356) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1scmn5-0007uW-Dc for 72559@debbugs.gnu.org; Sat, 10 Aug 2024 10:09:57 -0400 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 1scmmW-0001K2-3h; Sat, 10 Aug 2024 10:09:20 -0400 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=i59S+w/o76zTVxF3AF+EmziIimt09P1eW7ZYjI/92IU=; b=F70Jn8sDEkWW 07YYRMtTL0NNy/fRdIjBvIvVqntDrQsDcsNMSsEJVLhxf811uicwWithdF8HB1kSKIicyxptgSe2v eAMJA2vWbPmdFW4eRKGYK/34WseOdiDQ99dmM4yreHbwL4uooCJTlUZ1Pm5nELKQE61b2G+W45dLV oTVFsqdVDCOoEJdnYt6mqyMrlanIRr0h5KGtqMpHZhfNug5CppfDvIUxWc9kG9zLP5YNc2b73GJc3 PQ1j0PRQhwJBMJQAcabBeHCivaWofzGBlJ5T2ae4a65hXaHAizzdaa6EVcO5cNusUfwL7oxGt7jrA lUoUe5VDwZ9cMymzvySQBw==; In-Reply-To: <877ccomqg3.fsf@protonmail.com> (bug-gnu-emacs@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:290006 Archived-At: > Cc: 72559@debbugs.gnu.org > Date: Sat, 10 Aug 2024 13:56:49 +0000 > From: Pip Cet via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > "Ihor Radchenko" writes: > > > Since ~few months ago, I started having issues with profiler dumps > > shared by users. The latest example is in > > https://list.orgmode.org/87r0axvu7y.fsf@gmail.com/T/#u > > > > When trying to open the profiler data with M-x profiler-find-profile, I > > keep getting > > profiler-find-profile: Invalid read syntax: "#<", 2, 64028 > > or similar errors. > > (Just trying to save others the work of going to character 64028 in that > dump). > > In that example, the relevant section of the dump looks like this: > > #[0 "..." [# buffer-name kill-buffer] 2] > > Which looks like a byte code closure produced by make-closure, probably > by with-temp-buffer: > > (defmacro with-temp-buffer (&rest body) > "Create a temporary buffer, and evaluate BODY there like `progn'. > The buffer does not run the hooks `kill-buffer-hook', > `kill-buffer-query-functions', and `buffer-list-update-hook'. > See also `with-temp-file' and `with-output-to-string'." > (declare (indent 0) (debug t)) > (let ((temp-buffer (make-symbol "temp-buffer"))) > `(let ((,temp-buffer (generate-new-buffer " *temp*" t))) > ;; `kill-buffer' can change current-buffer in some odd cases. > (with-current-buffer ,temp-buffer > (unwind-protect > (progn ,@body) > (and (buffer-name ,temp-buffer) > (kill-buffer ,temp-buffer))))))) > > No idea what a good fix would be, though. Thanks, adding Stefan in the hope that he could have some ideas.