[Bug 1067478] New: clang-4.0.1 does not produce reproducible binaries
http://bugzilla.opensuse.org/show_bug.cgi?id=1067478 Bug ID: 1067478 Summary: clang-4.0.1 does not produce reproducible binaries Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: openSUSE Factory Status: NEW Severity: Normal Priority: P5 - None Component: Development Assignee: bnc-team-screening@forge.provo.novell.com Reporter: bwiedemann@suse.com QA Contact: qa-bugs@suse.de CC: msrb@suse.com Blocks: 1061219 Found By: Development Blocker: --- minimal reproducer: osc co openSUSE:Factory/gnustep-libobjc2 cd $_ osc build --noservice chroot /var/tmp/build-root/standard-x86_64/ cd /home/abuild/rpmbuild/BUILD/libobjc2-1.8.1 head -n 348 arc.m > t.m for i in $(seq 4) ; do clang -c t.m 2>/dev/null ; md5sum t.o ; done Actual Results: af35c53170b6d118e1e78ed5b8f2529c t.o 5c1f40dc0874460958b0b05ed3a55f70 t.o de320e239b0feb5431a889ff187389a9 t.o de320e239b0feb5431a889ff187389a9 t.o When running setarch `arch` -R clang to disable ASLR or leaving out the last function in t.m (e.g. head -n 315 arc.m > t.m) it does produce consistent results. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1067478 http://bugzilla.opensuse.org/show_bug.cgi?id=1067478#c1 Bernhard Wiedemann <bwiedemann@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |toddrme2178@gmail.com --- Comment #1 from Bernhard Wiedemann <bwiedemann@suse.com> --- Also interesting: for i in $(seq 10000) ; do clang -c t.m 2>/dev/null ; md5sum t.o ; done | sort | uniq -c 1212 01330c1131ef305a6a6f1f4816d51bb3 t.o 1281 1754107a6b0a79584a4e2ddf4016a968 t.o 1283 5190ab8e0038376968d66379277e710b t.o 1229 5c1f40dc0874460958b0b05ed3a55f70 t.o 1215 9b2561d9d898b2058ffe8436f809d681 t.o 1262 af35c53170b6d118e1e78ed5b8f2529c t.o 1246 ba7ea2ea80b9cec0f37bf6d5a8eee633 t.o 1272 de320e239b0feb5431a889ff187389a9 t.o shows just 8 different results with pretty even distribution, so there are just 3 bits of randomness involved in this case. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1067478 http://bugzilla.opensuse.org/show_bug.cgi?id=1067478#c2 --- Comment #2 from Bernhard Wiedemann <bwiedemann@suse.com> --- I did clang -E and reduced the result to this standalone minimal reproducer: cat > test.m <<EOF typedef id (*IMP)(id, ...); static Class c1; void f1(void) { @selector(f2); IMP v1 = @selector(f3); } EOF for i in $(seq 15) ; do clang -c test.m -o /dev/stdout 2>/dev/null | md5sum ; done | sort | uniq -c | wc -l If you don't know how to fix, I'd like some help filing this upstream. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1067478 http://bugzilla.opensuse.org/show_bug.cgi?id=1067478#c3 Bernhard Wiedemann <bwiedemann@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- URL| |https://bugs.llvm.org/show_ | |bug.cgi?id=35277 --- Comment #3 from Bernhard Wiedemann <bwiedemann@suse.com> --- filed upstream https://bugs.llvm.org/show_bug.cgi?id=35277 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1067478 http://bugzilla.opensuse.org/show_bug.cgi?id=1067478#c7 Bernhard Wiedemann <bwiedemann@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|CONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #7 from Bernhard Wiedemann <bwiedemann@suse.com> --- Was fixed in upstream llvm in 2018 -- You are receiving this mail because: You are on the CC list for the bug.
participants (2)
-
bugzilla_noreply@novell.com
-
bugzilla_noreply@suse.com