You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: