-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
internal/runtime/atomic: TestAnd64 panics with "unaligned 64-bit atomic operation" error #67077
Comments
I'm trying to come up with a good reason why things started failing after my changes, but I don't have a good theory yet. My best guess is when
If that's the case then the test should use something that guarantees alignment of I need to find a system where I can test this theory. |
If my theory is correct, then this should fix it:
And there might be other similar tests. Maybe there is a need for a general vet / staticcheck that ensures you don't use |
For reference, issue that added those atomic implementations #61395. |
Sounds reasonable.
Do you want to prepare a CL to fix the test? Then we could, perhaps, figure out how to test it on linux/arm try-bots.
I agree. It is a mess. Let's not try to fix that now. Let's try and make all arm pass by aligning TestAnd64 to test your theory. Alternatively we could just skip TestAnd64 on arm. What do you think? Alex |
For my own reference. How to run slow bots https://go.dev/wiki/SlowBots#using-slowbots from https://groups.google.com/g/golang-dev/c/Oq1LDUmIyLg/m/QV9wEb75AAAJ Alex |
https://pkg.go.dev/sync/atomic#pkg-note-BUG mentions that:
|
Oh, I just discovered this thread in the mailing list https://groups.google.com/g/golang-dev/c/ArIkltx1ses |
Change https://go.dev/cl/581916 mentions this issue: |
Using what was suggested in the mailing list seems to fix the issue:
gotip-linux-arm is now passing, however I wasn't able to start windows-arm and openbsd-arm for some reason. |
I can see that.
I suspect that windows-arm and openbsd-arm are not available to be run from Gerrit. I +2 your https://go-review.googlesource.com/c/go/+/581916 , now we wait for Googlers to review it and submit. Thanks for your quick help. Alex |
Go version
go version 1c47049 arm
Output of
go env
in your module/workspace:What did you do?
I looked at https://build.golang.org/ and I noticed that all 32 bit arm systems fail after this CL
https://go-review.googlesource.com/c/go/+/557315
What did you see happen?
I see this test failure:
Some builder links
https://build.golang.org/log/fc4f9825ea90abcfad3e7c6e79bb711a9415da3a
https://build.golang.org/log/193b07fe1ac02bf014beddbec8de9dc7914a8132
https://ci.chromium.org/ui/inv/build-8749553805143842657/test-results?sortby=&groupby=
What did you expect to see?
I expected all tests to pass.
The text was updated successfully, but these errors were encountered: