-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[edit] Fix racy access to SemanticInfo #27948
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
Conversation
Specifically, if the document was re-opened, we would drop the reference and the call to readSemanticInfo could use-after-free the array of diagnostics. This manifested as a very rare crash while testing sourcekit-lsp.
@swift-ci please test |
Build failed |
@swift-ci please test macOS |
Build failed |
@swift-ci please test macOS |
Build failed |
@swift-ci please test macOS |
Build failed |
@swift-ci please test macOS |
Build failed |
@swift-ci please test macOS |
Build failed |
@swift-ci please test macOS |
Specifically, if the document was re-opened, we would drop the reference
and the call to readSemanticInfo could use-after-free the array of
diagnostics. This manifested as a very rare crash while testing
sourcekit-lsp.
rdar://problem/56420572