Skip to content

Commit

Permalink
tsan: disable bench_threads.cpp on aarch64
Browse files Browse the repository at this point in the history
The new test started failing on bots with:

CHECK failed: tsan_rtl.cpp:327 "((addr + size)) <= ((TraceMemEnd()))"
   (0xf06200e03010, 0xf06200000000) (tid=4073872)

https://lab.llvm.org/buildbot#builders/179/builds/1761

This is a latent bug in aarch64 virtual address space layout,
there is not enough address space to fit traces for all threads.
But since the trace space is going away with the new tsan runtime
(D112603), disable the test.

Reviewed By: melver

Differential Revision: https://reviews.llvm.org/D113990
  • Loading branch information
dvyukov committed Nov 16, 2021
1 parent c7081b5 commit d0c138e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions compiler-rt/test/tsan/bench_threads.cpp
Expand Up @@ -4,6 +4,11 @@
// bench.h needs pthread barriers which are not available on OS X
// UNSUPPORTED: darwin

// aarch64 fails with:
// CHECK failed: tsan_rtl.cpp:327 "((addr + size)) <= ((TraceMemEnd()))"
// TODO: try to re-enable when D112603 is landed.
// XFAIL: aarch64

#include "bench.h"

void *nop_thread(void *arg) {
Expand Down

0 comments on commit d0c138e

Please sign in to comment.