unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* reproducible .pdmp generation
@ 2024-10-01 15:08 Bernhard M. Wiedemann
  2024-10-01 16:04 ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Bernhard M. Wiedemann @ 2024-10-01 15:08 UTC (permalink / raw)
  To: emacs-devel


[-- Attachment #1.1: Type: text/plain, Size: 1620 bytes --]

Hi,

I tried to get emacs builds to produce bit-reproducible .pdmp files.

I reduced it to this reproducer:

> cd ~/rpmbuild/BUILD/emacs-29.4/src && setarch -R taskset 1 valgrind --leak-check=full --track-origins=yes ./temacs "--__aslr-disabled" "-batch" "--no-build-details" "-l" "loadup" "--temacs=pdump" "--bin-dest" "/usr/bin/" "--eln-dest" "/usr/lib64/emacs/29.4/" && md5sum emacs.pdmp


Here, valgrind reports about several uses of un-initialized memory, 
which could explain part of the variations.
Many come from alloc.c lmalloc and lrealloc

But there might be other issues involved.
One pair of .pdmp files had this noteworthy hunk in the diff:

>  009ca3a0  73 20 74 6f 20 64 6f 63  20 73 74 72 69 6e 67 73  |s to doc strings|
>  009ca3b0  2e 2e 2e 64 6f 6e 65 0a  50 75 72 65 2d 68 61 73  |...done.Pure-has|
>  009ca3c0  68 65 64 3a 20 31 35 39  35 37 20 73 74 72 69 6e  |hed: 15957 strin|
> -009ca3d0  67 73 2c 20 31 39 35 33  20 76 65 63 74 6f 72 73  |gs, 1953 vectors|
> +009ca3d0  67 73 2c 20 31 39 34 37  20 76 65 63 74 6f 72 73  |gs, 1947 vectors|
>  009ca3e0  2c 20 34 39 35 33 31 20  63 6f 6e 73 65 73 2c 20  |, 49531 conses, |
>  009ca3f0  31 32 33 33 20 62 79 74  65 63 6f 64 65 73 2c 20  |1233 bytecodes, |
>  009ca400  33 37 31 20 6f 74 68 65  72 73 0a 44 75 6d 70 69  |371 others.Dumpi|

Is there a tool to convert .pdmp files into some readable text form, so 
that I can better understand what differs there?

What other approaches could help to track down the source of 
non-determinism here?

Are these files actually needed to use emacs?

Ciao
Bernhard M.

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-10-08  6:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-01 15:08 reproducible .pdmp generation Bernhard M. Wiedemann
2024-10-01 16:04 ` Eli Zaretskii
2024-10-01 16:32   ` Daniel Colascione
2024-10-08  6:46     ` Bernhard M. Wiedemann

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).