We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
IsFlagProvided
The IsFlagProvided function introduced in #11881 seems to be running into a data race.
The reason is that Visit function is uses isn’t thread-safe -
Visit
if len(f.actual) != len(f.sortedActual) { f.sortedActual = sortFlags(f.actual) } flags = f.sortedActual
So if two go-routines call this same function, one can be reading sortedActual in line 1 and the other could be writing to it in the next line.
sortedActual
Run unit_race over and over until this fails.
main
No response
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Overview of the Issue
The
IsFlagProvided
function introduced in #11881 seems to be running into a data race.The reason is that
Visit
function is uses isn’t thread-safe -So if two go-routines call this same function, one can be reading
sortedActual
in line 1 and the other could be writing to it in the next line.Reproduction Steps
Run unit_race over and over until this fails.
Binary Version
Operating System and Environment details
Log Fragments
No response
The text was updated successfully, but these errors were encountered: