This is an archive of the discontinued LLVM Phabricator instance.

[HWASan] unflake test
ClosedPublic

Authored by fmayer on May 12 2023, 2:25 PM.

Details

Summary

The short granule logic made this test flaky because with low
probability there would be no tag mismatch by coincidence.

Diff Detail

Event Timeline

fmayer created this revision.May 12 2023, 2:25 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 12 2023, 2:25 PM
Herald added a subscriber: Enna1. · View Herald Transcript
fmayer requested review of this revision.May 12 2023, 2:25 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 12 2023, 2:25 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
fmayer updated this revision to Diff 521798.May 12 2023, 2:26 PM

remove debug print

fmayer added a subscriber: bgraur.
fmayer updated this revision to Diff 521808.May 12 2023, 3:01 PM

remove unnecessary include

vitalybuka accepted this revision.May 12 2023, 3:03 PM
vitalybuka added a subscriber: vitalybuka.
vitalybuka added inline comments.
compiler-rt/test/hwasan/TestCases/global-with-reduction.c
39

you also can use multiple statics so the tag mismatch for at least for one

This revision is now accepted and ready to land.May 12 2023, 3:03 PM
fmayer marked an inline comment as done.May 12 2023, 3:04 PM
fmayer added inline comments.
compiler-rt/test/hwasan/TestCases/global-with-reduction.c
39

not really. they get merged and no tag mismatch happens, which is another problem for which i was going to file a bug :)

fmayer marked an inline comment as done.May 12 2023, 3:06 PM
fmayer added inline comments.
compiler-rt/test/hwasan/TestCases/global-with-reduction.c
39

(apart from that just reduces the probability of flaking by a square, while this should completely fix it)

This revision was landed with ongoing or failed builds.May 12 2023, 3:06 PM
Closed by commit rGedd0981e71af: [HWASan] unflake test (authored by fmayer). · Explain Why
This revision was automatically updated to reflect the committed changes.