From: Eli Zaretskii <eliz@gnu.org>
To: Pip Cet <pipcet@protonmail.com>,
Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 72559@debbugs.gnu.org, yantar92@posteo.net
Subject: bug#72559: 31.0.50; profiler-report-write-profile produced unreadable data
Date: Sat, 10 Aug 2024 19:17:38 +0300 [thread overview]
Message-ID: <867ccojqsd.fsf@gnu.org> (raw)
In-Reply-To: <877ccomqg3.fsf@protonmail.com> (bug-gnu-emacs@gnu.org)
> 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" <bug-gnu-emacs@gnu.org>
>
> "Ihor Radchenko" <yantar92@posteo.net> 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 "..." [#<killed buffer> 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 #<string 847> instead of #<compiled 0xe6a63a01a3790bb>.
So something is seriously foobar in profiler.el, or maybe in the
printing infrastructure it uses.
next prev parent reply other threads:[~2024-08-10 16:17 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-10 12:41 bug#72559: 31.0.50; profiler-report-write-profile produced unreadable data Ihor Radchenko
2024-08-10 12:50 ` Eli Zaretskii
2024-08-10 13:05 ` Ihor Radchenko
2024-08-10 13:56 ` Pip Cet via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-10 14:09 ` Eli Zaretskii
2024-08-10 16:17 ` Eli Zaretskii [this message]
2024-08-14 12:21 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-14 12:41 ` Eli Zaretskii
2024-08-14 12:48 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-17 10:03 ` Eli Zaretskii
2024-08-17 14:07 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-17 14:27 ` Eli Zaretskii
2024-08-17 17:35 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-17 17:49 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=867ccojqsd.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=72559@debbugs.gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=pipcet@protonmail.com \
--cc=yantar92@posteo.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).