]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.23] 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>
Thu, 24 Jul 2025 19:45:57 +0000 (12:45 -0700)
commitcea5be7739cb572204e4f41dd19f8bbbfc634034
treeb5956598888ea46f402299e698827b92d33290fb
parent317a3c130e3b59171b3bd90e7a469fba76582444
[release-branch.go1.23] 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.

For #59418.
Fixes #74726.

Change-Id: Icb4536ddf0f2f5e7850734564d40f5a208ab8d01
Cq-Include-Trybots: luci.golang.try:go1.23-linux-386,go1.23-linux-386-clang15,go1.23-linux-amd64-clang15,go1.23-linux-amd64-boringcrypto,go1.23-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>
(cherry picked from commit b813e6fd73e0925ca57f5b3ff6b0d991bb2e5aea)
Reviewed-on: https://go-review.googlesource.com/c/go/+/690035
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/cmd/cgo/internal/testsanitizers/cshared_test.go
src/cmd/cgo/internal/testsanitizers/tsan_test.go