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 Conditions in Sherwood Threadqueue #245

Open
insertinterestingnamehere opened this issue Feb 21, 2024 · 0 comments
Open

Race Conditions in Sherwood Threadqueue #245

insertinterestingnamehere opened this issue Feb 21, 2024 · 0 comments

Comments

@insertinterestingnamehere
Copy link
Collaborator

The thread sanitizer is flagging several issues with the Sherwood threadqueue too. Here are a few of them:

Non-atomic write:


Non-atomic read:

Something non-atomic is still happening in the TRYLOCK macros/functions.
Non-atomic read at:

QTHREAD_TRYLOCK_LOCK(&q->qlock);

Atomic write at:
QTHREAD_TRYLOCK_UNLOCK(&q->qlock);

There are several more errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant