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

Yield Outside A Qthread Needs Error #183

Open
insertinterestingnamehere opened this issue Nov 14, 2023 · 0 comments
Open

Yield Outside A Qthread Needs Error #183

insertinterestingnamehere opened this issue Nov 14, 2023 · 0 comments

Comments

@insertinterestingnamehere
Copy link
Collaborator

I noticed this while working on #182. We currently hit undefined behavior if qthread_yield gets called outside a qthread. It'd be nice to have a better error mode for that (and anything else that should only be called within a qthread). Currently the result is an inscrutable sanitizer error about a misaligned access that's fairly difficult to trace back to an out-of-context yield. Even just an assert failure would be much better. I'm not sure how to actually detect this case off the top of my head though, so I'm just documenting this for now.

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