[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
reproducible .pdmp generation
From: |
Bernhard M. Wiedemann |
Subject: |
reproducible .pdmp generation |
Date: |
Tue, 1 Oct 2024 17:08:30 +0200 |
User-agent: |
Mozilla Thunderbird |
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.
OpenPGP_signature.asc
Description: OpenPGP digital signature
- reproducible .pdmp generation,
Bernhard M. Wiedemann <=