-
Notifications
You must be signed in to change notification settings - Fork 18k
runtime/race: NoRaceMutexPureHappensBefore failures #35745
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
Comments
I think we should print the race report for "FAILED+". Or can anybody reproduce this to extract the report? |
CC @dfava |
A |
Most likely the detector is flagging a race when the second Do we have the output from the race detector? |
Change https://golang.org/cl/291292 mentions this issue: |
The log I linked is the only log I have. (If you want to modify |
@gopherbot, please backport to Go 1.16. This is a test-only fix, and the test can spuriously fail in TryBot and release-testing runs for other backports. |
Backport issue(s) opened: #50832 (for 1.16). Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://golang.org/wiki/MinorReleases. |
Change https://golang.org/cl/381034 mentions this issue: |
Test NoRaceMutexPureHappensBefore in runtime/race/testdata/mutex_test.go expects the second spawned goroutine to run after the first. The test attempts to force this scheduling with a 10 millisecond wait. Following a suggestion by Bryan Mills, we force this scheduling using a shared variable whose access take place within the existing mutex. Fixes #50832. Updates #35745. Change-Id: Ib23ec51492ecfeed4752e020401dd25755a669ed Reviewed-on: https://go-review.googlesource.com/c/go/+/291292 Reviewed-by: Bryan C. Mills <bcmills@google.com> Reviewed-by: Dmitry Vyukov <dvyukov@google.com> Trust: Bryan C. Mills <bcmills@google.com> Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Go Bot <gobot@golang.org> (cherry picked from commit aaed6cb) Reviewed-on: https://go-review.googlesource.com/c/go/+/381034 Trust: Bryan Mills <bcmills@google.com> Run-TryBot: Bryan Mills <bcmills@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2019-11-19T19:14:25-8608733/windows-amd64-longtest
2019-11-07T20:34:27-4751db9/windows-amd64-race
CC @aclements
The text was updated successfully, but these errors were encountered: