Add a set of tests that iterate over possible combinations of
memory orders for lock free stack implementation.
Details
- Reviewers
dvyukov - Commits
- rG5deca650fdba: tsan: add lock free stack pattern test
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
This felt through the cracks, sorry.
The change looks reasonably good to me and I guess it's not good to do nitpicking after such long delay.
I've run clang-format on this, rebased and run tests (passed).
Hi @alexey-katranov, the test case added as part of this commit seems to be failing on our Power PC bots:
https://lab.llvm.org/buildbot/#/builders/100/builds/15819/steps/7/logs/FAIL__ThreadSanitizer-powerpc64___lock_free_stack_
https://lab.llvm.org/buildbot/#/builders/93/builds/9080
https://lab.llvm.org/buildbot/#/builders/105/builds/25690
https://lab.llvm.org/buildbot/#/builders/121/builds/19619
https://lab.llvm.org/buildbot/#/builders/18/builds/4932
https://lab.llvm.org/buildbot/#/builders/19/builds/10902
Can you please take a look?
Thanks!
Sure, however, it is an old patch and I need to remember the details. What is expected timeframe for the fix?
I think there may be some flakes and the best way to address it for now may be adding a constraint to not run it on PPC.
Done in https://reviews.llvm.org/rGb517d679dd69a30ed84e9782a2e902cf4284ebc7.
It's still worth understanding why the test fails under TSan, but I've marked it as UNSUPPORTED so it won't run there to unblock the buildbots.
Looks like I missed something, probably because 'ppc' isn't a feature recognised by compiler-rt's lit config. Looking.
The bots (https://lab.llvm.org/buildbot/#/builders/105/builds/25721) are coming back online after https://reviews.llvm.org/rGde066267254acb97424bea008195d47de689aca4.
we're seeing this crop up on Fuchsia's Clang CI for AArch64 too.
Sorry for the late notification. That builder has been red for a while, so I missed that a new issue was happening.
You can see the original breakage here: https://luci-milo.appspot.com/ui/p/fuchsia/builders/toolchain.ci/clang-linux-arm64/b8813646020549110273/overview
It's still an issue on the latest completed build: https://luci-milo.appspot.com/ui/p/fuchsia/builders/toolchain.ci/clang-linux-arm64/b8813607549944786001/overview
that build goes up to https://reviews.llvm.org/D125730 (59726668f1dc) so I think its still an issue
I've reverted this for now, since I assume everyone is gone for the weekend, and our bots on AArch64 Linux are still showing problems with this test.
@hctim I reverted the dependent change you made as well.