-
Notifications
You must be signed in to change notification settings - Fork 18k
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
go/build: -race build program that fails with ERROR: ThreadSanitizer failed to allocate #33514
Comments
Are you on Arch? Did you install Go from the OS package manager? |
Yes I am and I just discovered that I had Something about the PIE compiled version is related to this. |
Yeah the pie +
but obviously if you run with an Arch package that has pie enabled by default you'll bypass the check since it'll build pies by default. |
Okay thank you. This explains it. I'll go ahead and close the issue. |
"go does not reject -race when buildmode=pie is enabled by default" @AdamSLevy Downstream problem - consider to report. |
@av86743 The platforms where pie is enabled by default in the toolchain are android/arm, android/arm64, android/amd64, and android/386 but none of these supports the race detector, so in practise this is not a problem, and we can just reject If you set So the only way to see the crash reported here is to use a patched toolchain (like the go-pie in Arch). |
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?
Create a simple go program.
Build and run it with race detection enabled.
What did you expect to see?
The program should output "vim-go".
What did you see instead?
The result is the same if building and running the program happens in separate steps.
The text was updated successfully, but these errors were encountered: