Mailinglist Archive: opensuse-factory (468 mails)

< Previous Next >
Re: [opensuse-factory] openSUSE reproducible builds status 2020-04
Am 30.04.20 um 09:48 schrieb Jan Engelhardt:

On Thursday 2020-04-30 08:26, Bernhard M. Wiedemann wrote:

colm is a case of ASLR.

The data it outputs wants to have some unique identifiers among all the
identifiers it outputs, and it simply uses the pointer address of
those objects while serializing to text.

Do you already have a "standard solution" (abstract way to address
serialization of pointers) for cases like these?

String name( 128, "_ign_%p", regionSet->tokenIgnore );

If not, I'll be trying to use a global counter or something.

Yes, global counters is one way - as long as everything happens in one process, otherwise racy parallel processing can introduce nondeterminism.

A workaround is to use setarch -R to disable ASLR during build.

Otherwise sorting by something that is unique and deterministic also does the trick. E.g. these pointers are pointing to some data? strcmp/memcmp could tell you which comes first...
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-factory+owner@xxxxxxxxxxxx

< Previous Next >