]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo/internal/testsanitizers: disable ASLR for TSAN tests
authorMichael Anthony Knyszek <mknyszek@google.com>
Thu, 31 Oct 2024 20:41:51 +0000 (20:41 +0000)
committerMichael Knyszek <mknyszek@google.com>
Fri, 1 Nov 2024 15:35:54 +0000 (15:35 +0000)
commitb813e6fd73e0925ca57f5b3ff6b0d991bb2e5aea
tree632ef3cb55926c5689485ff0a4f6d95b7365a42b
parent7240c6cb970bd395e7005988b4ce6af73a8e59c0
cmd/cgo/internal/testsanitizers: disable ASLR for TSAN tests

Ever since we had to upgrade from our COS image, we've been experiencing
TSAN test failures. My best guess is that the ASLR randomization entropy
increased, causing TSAN to fail. TSAN already re-execs itself in Clang
18+ with ASLR disabled, so just execute the tests with ASLR disabled on
Linux.

Fixes #59418.

Change-Id: Icb4536ddf0f2f5e7850734564d40f5a208ab8d01
Cq-Include-Trybots: luci.golang.try:gotip-linux-386,gotip-linux-386-clang15,gotip-linux-amd64-clang15,gotip-linux-amd64-boringcrypto,gotip-linux-amd64-aliastypeparams,gotip-linux-amd64-asan-clang15,gotip-linux-amd64-msan-clang15,gotip-linux-amd64-goamd64v3
Reviewed-on: https://go-review.googlesource.com/c/go/+/623956
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/cgo/internal/testsanitizers/cshared_test.go
src/cmd/cgo/internal/testsanitizers/tsan_test.go