summaryrefslogtreecommitdiffstats
path: root/ci/setup-sanitizer-build.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xci/setup-sanitizer-build.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/ci/setup-sanitizer-build.sh b/ci/setup-sanitizer-build.sh
new file mode 100755
index 0000000..e4591f8
--- /dev/null
+++ b/ci/setup-sanitizer-build.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -ex
+
+# Linux updated its ASLR randomization in a way that is incompatible with
+# TSAN. See https://github.com/google/sanitizers/issues/1716
+sudo sysctl vm.mmap_rnd_bits=28