New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixedbugs/bug513.go fails on ppc64le with go 1.17.2 #49066
Comments
Yeah, I don't see any change in Go 1.17.2 could cause that. The failure comes from ThreadSanitizer itself, and seems to be related to ASLR. Do you have any changes on your machine/environment related to ASLR? Does the test pass with Go 1.17.1 on the same machine/environment? Thanks. |
Interesting, the 1.17.1 test does in fact fail on the same machine as well.
Not sure, we build Go in Docker/LXC containers the test fails in both. The Kernel version between the successful 1.17.1 build in September and the build now will likely differ. Is there anything else that needs to be taken into consideration in regards to ASLR? Is there any way to further debug why this test case is failing (independent of attempting to figuring out relevant changes to the environment)? Unfortunately I am personally I am not familiar with Go runtime internals myself. |
The error is from ThreadSanitizer (not the Go runtime). It probably requires ASLR disabled. https://github.com/llvm/llvm-project/blob/main/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp#L2158 |
Timed out in state WaitingForInfo. Closing. (I am just a bot, though. Please speak up if this is a mistake or you have the requested information.) |
This could be the same problem as in #35547. When running in a container, if ASLR is active, the thread sanitizer code tries to disable it on ppc64le. But the container might not have the permissions to do the syscall that to disable ASLR. There is a way to override that in the container as is described in this issue. |
I am currently working on upgrading the Alpine Linux Go package from 1.17.1 to 1.17.2. At Alpine, we run the Go testsuite as part of our package. With 1.17.2 the test suite fails only on the ppc64le architecture which is weird because our buildlogs indicate that it passed successfully with 1.17.1 on ppc64le. The test that fails is
fixedbugs/bug513.go
and as far as I can tell the test case itself has not been modified in the 1.17.2 release which leads me to believe that this might have regressed with 1.17.2. More information below.What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I build Go 1.17.2 as one would normally using
./make.bash
and ran thefixedbugs/bug513.go
test case as follows:What did you expect to see?
A successful test run.
What did you see instead?
I consistently get the following test failure:
The text was updated successfully, but these errors were encountered: