rust non-determinism
Richard Purdie
richard.purdie at linuxfoundation.org
Tue Aug 6 10:34:34 UTC 2024
On Tue, 2024-08-06 at 11:48 +0200, Bernhard M. Wiedemann wrote:
> 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?
We've struggled to reduce it down outside of the rust build environment
so sadly we don't have a simple reproducer, no.
Cheers,
Richard
More information about the rb-general
mailing list