-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Add proper ASAN support to task switching #29489
Conversation
6cabf10
to
6a9b94f
Compare
@vtjnash would you mind if I rewrite I should also note that this is not yet complete, since ASAN is still not happy so I most likely missed a switch. |
Sure, however you feel is convenient. I settled on this API to emphasize that it is expected to only access this field. But it’s not a hard restriction. |
1624377
to
8689c79
Compare
Seems good |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems good
e71f435
to
45f0102
Compare
2e831f2
to
4e897bb
Compare
4e897bb
to
76cd218
Compare
It turns out that the issue I was experiencing was a seqfault in Line 553 in 668341e
Line 577 in 668341e
and not that we have to annotate setjmp/longjmp that we use for exception handling (since we don't change stacks). |
Haha oops. Wellllll, it was fun anyway! 😂 And an interesting exercise! |
Causes this compiler warning:
|
Sorry about that, noticed it after merging. I have included a fix in #33259 |
When we are using ASAN we need to inform it when we switch stacks.
Originally needed by #22631
@vtjnash any ideas for how to do this cleverly?