Closed
Description
Proposal Details
I'm seeing the following error when running gotip tool dist test
in a Ubuntu 22.04 container image:
--- FAIL: TestShared (0.00s)
--- FAIL: TestShared/tsan_shared (8.58s)
cshared_test.go:105: /usr/bin/setarch x86_64 -R /tmp/TestShared2916998830/tsan_shared exited with exit status 1
setarch: failed to set personality to x86_64: Operation not permitted
--- FAIL: TestTSAN (51.46s)
--- FAIL: TestTSAN/tsan (1.95s)
tsan_test.go:88: /usr/bin/setarch x86_64 -R /tmp/TestTSAN2318749046/tsan exited with exit status 1
setarch: failed to set personality to x86_64: Operation not permitted
The setarch
normally needs the --privileged
flag to be passed to docker run
, but I would rather try to avoid that. In fact, setarch
was introduced in CL 623956 to fix the following test issue: #59418, which it did, but also introduced the issue reported in here.
Metadata
Metadata
Assignees
Labels
Type
Projects
Relationships
Development
No branches or pull requests
Activity
[-]cmd/cgo/internal/testsanitizers: TestShared/tsan_shared failed[/-][+]cmd/cgo/internal/testsanitizers: failures with `setarch: failed to set personality to x86_64: Operation not permitted`[/+]ianlancetaylor commentedon Nov 20, 2024
CC @mknyszek
master
inmicrosoft/main
microsoft/go#1383gabyhelp commentedon Nov 20, 2024
Related Code Changes
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
gopherbot commentedon Nov 20, 2024
Change https://go.dev/cl/630096 mentions this issue:
cmd/cgo/internal/testsanitizers: fix TSAN tests using setarch
cmd/cgo/internal/testsanitizers: fix TSAN tests using setarch