Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
runtime: incorrect ordering on sync.RWMutex, possible optimization/defer bug #36864
I just want to preface that I fully expect this to be user error, given that
But I'm completely baffled. so putting this out there in case someone else has seen something similar.
this happens far more frequently in tests than actually running the program.
What version of Go are you using (
To answer my own question: if the reproducer is the one at james-lawrence/torrent, it has indeed a data race.
and the output had this in it (among other things):
We cannot accept bug reports with racy reproducers (a program with a data race is not a valid Go program); so I'm closing this issue.
If you can still reproduce the crash after you've fixed all the data-races, please comment and we'll re-open. Thanks.