-
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
cmd/compile: race is not supported on windows/386 #57543
Comments
The Go race detector is based on ThreadSanitizer, which does not work on any 32-bit platform since AFAIK it assumes it can reserve huge continuous parts of address space for various things, well beyond what's 32-bits-addressable. In fact:
from https://clang.llvm.org/docs/ThreadSanitizer.html. So it's unlikely that the Go race detector will ever work on any 32-bit platform. |
But I am running go on a 64-bit platform. |
|
Yes, turns out I mistakenly installed go in |
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 tried testing the race condition using command
go run -race main.go
What did you expect to see?
By running this command I should have been able to test the race condition in my go code.
What did you see instead?
I am getting the following in my terminal
-race is not supported on windows/386
The text was updated successfully, but these errors were encountered: