Skip to content
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

Race condition in TVar #885

Closed
chrisseaton opened this issue Sep 20, 2020 · 1 comment
Closed

Race condition in TVar #885

chrisseaton opened this issue Sep 20, 2020 · 1 comment
Assignees
Labels
bug A bug in the library or documentation.

Comments

@chrisseaton
Copy link
Member

When a TVar is first written to, the fact that it's been locked isn't recorded until after the check if any previous reads are now stale. If the transaction aborts at this point due to stale reads the TVar is left locked.

headius added a commit that referenced this issue Sep 21, 2020
Fix race condition in TVar for stale reads, fixes #885
@pitr-ch
Copy link
Member

pitr-ch commented Sep 21, 2020

Thanks for the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug in the library or documentation.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants