Re:Debian bookworm live images now reproducible
by account42 on Thursday March 27, 2025 @08:09AM
(#43492749)
That's just one example of nondeterminism in compilers though - at the end it's the responsibility of the compile to provide options not to do that.
Re:Debian bookworm live images now reproducible
by kazinator on Thursday March 27, 2025 @12:14PM
(#43495112)
[delayed]
Re:Debian bookworm live images now reproducible
by account42 on Friday March 28, 2025 @05:02AM
(#43503110)
There is no guarantee that memory allocation is deterministic even without ASLR. If your program is supposed to be deterministic but its output depends on the memory addresses returned by the allocator then your program is buggy.
Sometimes programs have hash tables which use object identity as key (i.e. pointer).
ASLR can cause corresponding objects in different runs of the program to have different pointers, and be ordered differently in an identity hash table.
A program producing some output which depends on this is not necessarily a bug, but becomes a reproducibility issue.
E.g. a compiler might output some object in which a symbol table is ordered by a pointer hash. The difference in order doesn't change the meaning/validity of the object file, but is is seen as the build not having reproduced exactly.