-
Notifications
You must be signed in to change notification settings - Fork 17.6k
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
Test report unexpected error when race detection is enabled #50323
Labels
Comments
ysmood
changed the title
Test crash on race detection enabled
Test crashes when race detection enabled
Dec 23, 2021
ysmood
changed the title
Test crashes when race detection enabled
Test crashes when race detection is enabled
Dec 23, 2021
ysmood
changed the title
Test crashes when race detection is enabled
Test report unexpected error when race detection is enabled
Dec 23, 2021
After reading the #49138 The |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign 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?
Clean the cache by
go clean
.Create an empty go module with
go mod init play
, create a filemain_test.go
:Run
go test -race
What did you expect to see?
Test passes without error info.
What did you see instead?
Test reports unexpected error:
Output
Notes
This happened after I upgraded the macOS to 12.1 (21C52), not sure if they are related.
The code works for Linux.
Run without
-race
works fine.The text was updated successfully, but these errors were encountered: