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 19:17:38 +0300 Message-ID: <867ccojqsd.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="3016"; 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 18:18:57 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 1sconx-0000cc-1n for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 10 Aug 2024 18:18:57 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sconb-0001gS-31; Sat, 10 Aug 2024 12:18:35 -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 1sconZ-0001gG-G6 for bug-gnu-emacs@gnu.org; Sat, 10 Aug 2024 12:18:33 -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 1sconY-0000ga-Go for bug-gnu-emacs@gnu.org; Sat, 10 Aug 2024 12:18:32 -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=y4rhIEA4QW4+7yv1naEta4uz2ylEQNf08Y/I1RS29Rk=; b=Y3FMEhZtgQIbqAugJ/o1TyvizZAkrkK9QKyr2jLbY037p9XOonRjCfMbvqPQlydcJcIN2oLvDQTz19VliYKdcgozn13TjKJq2TsTCEox5987OV40PK/q3dEo6SNY6ktdo7xR0DeaJg7O0UIa7eD1TPnGUgaRj/S1Richo5V7uaa+qnRS4Rsv9N4Web753UmiI2bnsvEvg5xIOt038jc9X1Lo9JfM1ap6YHQSzxfW6Ztu7nnx2180zOJOfe9yZmhYAUFp9vrBmWnihOeupfEXWDk36FOz9cdb//hp3XuQOw6RhE46/LBT17FEFHMaerz1H/uKW8pjjxGtk6MG8IxT9g==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1scoo1-0003CW-Lm for bug-gnu-emacs@gnu.org; Sat, 10 Aug 2024 12:19:01 -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 16:19:01 +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.172330670112254 (code B ref 72559); Sat, 10 Aug 2024 16:19:01 +0000 Original-Received: (at 72559) by debbugs.gnu.org; 10 Aug 2024 16:18:21 +0000 Original-Received: from localhost ([127.0.0.1]:40361 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sconM-0003Ba-Ol for submit@debbugs.gnu.org; Sat, 10 Aug 2024 12:18:21 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51570) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sconK-0003BL-1S for 72559@debbugs.gnu.org; Sat, 10 Aug 2024 12:18:19 -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 1scomj-0000eB-83; Sat, 10 Aug 2024 12:17:41 -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=y4rhIEA4QW4+7yv1naEta4uz2ylEQNf08Y/I1RS29Rk=; b=fw2JapVKq/Et s41HeC+FAqZ+FCgPViA1Dtdm1kEu82sE1FIMixp++bRNc96WHiG/LiPOJtn7+fAVgca2ntvS1ZdmX AsZIzkvTDTLVpX2ktUnXE2EsEHmEYNdexbW7VfH37pNvXEpfLjNY8PPxE9PM57dpKbElUSxvzST4B oJpgIZPm3mwz32/fzvJ+Ifdk7U3OQyQFzX0eJjWhAZVwIy4i0J4Wi4XAQqRWDNOUTjEJENcyHh0Fn k85TWyCYYLlsKTLXS5DA1t5yE1uR0epNO2PfBXy5aCZ1PlzjXm3NkWT6fXaY3nVSAPZw5M8VyW3AP 2uy/ZXSoV+ILqs+rV/k9LA==; 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:290007 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: I think the problem is that we now dump the buttons into the saved profile. We also write symbols as strings. Two examples: ["redisplay_internal (C function)" "nil" "nil" "nil" "nil" "nil" "nil" "nil" "nil" "nil" "nil" "nil" "nil" "nil" "nil" "nil"] [#("vertical-motion" 0 15 (help-args (vertical-motion) category help-function-button button (t))) #("line-move-visual" 0 16 (help-args (line-move-visual) category help-function-button button (t))) #("line-move" 0 9 (help-args (line-move) category help-function-button button (t))) #("previous-line" 0 13 (help-args (previous-line) category help-function-button button (t))) #("funcall-interactively" 0 21 (help-args (funcall-interactively) category help-function-button button (t))) #("call-interactively" 0 18 (help-args (call-interactively) category help-function-button button (t))) #("command-execute" 0 15 (help-args (command-execute) category help-function-button button (t))) "nil" "nil" "nil" "nil" "nil" "nil" "nil" "nil" "nil"] And finally, even reading a profile written by Emacs 29 produces bogus entries, like # instead of #. So something is seriously foobar in profiler.el, or maybe in the printing infrastructure it uses.