Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.6k
Fix use-after-free in FileWatching#59017
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Conversation
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.
This already happens behind a lock, so changing it to an atomic seems like nonsense
That lock does not synchronize with the modification in |
Ok, the basic issue is that when |
I guess that is always called from inside the uv loop and as long as we require always hold |
This comment was marked as outdated.
This comment was marked as outdated.
We observe an abort on Windows on Revise master CI, where a free'd handleis passed to jl_close_uv. This PR appears to fix that issue, though I haveyet to understand the full sequence of events that is causing this issuein order to know whether any further changes are required.
@vtjnash any more comments? |
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.
Nope, that explanation make more sense now. Did we make sure to setuv.handle
to NULL in the otheruvfinalize
?
I did go through them and as far as I can tell this one was the only bad one. |
b45b429
intomasterUh oh!
There was an error while loading.Please reload this page.
We observe an abort on Windows on Revise master CI, where a free'd handle is passed to jl_close_uv. This PR appears to fix that issue, though I have yet to understand the full sequence of events that is causing this issue in order to know whether any further changes are required.