rust non-determinism

Bernhard M. Wiedemann bernhardout at lsmod.de
Tue Aug 6 09:48:55 UTC 2024


On 06/08/2024 10.03, Richard Purdie wrote:
> 
> We found we had to disable both lto and use codegen-units=1 to make
> things always reproduce. It took us months to work that out!

This sounds similar to the issue I see.
Do you have a simple reproducer?
When I try rustc with a hello-world.rs the binary only varies from path 
when I add -g and no -C strip=debuginfo
but that is independent of lto and codegen-units.

Maybe it needs some library?


Ciao
Bernhard M.


More information about the rb-general mailing list