-
Notifications
You must be signed in to change notification settings - Fork 17.6k
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
runtime: execLock might deadlock on darwin/ios #65587
Comments
The lock is only held while calling |
We could probably change the code so that instead of acquiring the lock in |
I just modeled rwmutex more thoroughly in https://go.dev/cl/555055, which may be why this is showing up just now. Plus we don't have a darwin staticlockrank builder. |
Change https://go.dev/cl/612416 mentions this issue: |
If you run
on a Mac, it fails badly, because the preemptM can be called while holding various locks that conflict with execLock.rlock, specifically this part:
This is indicative of a real potential deadlock on macOS and iOS, though not one that seems to have been reported yet. So probably it's very rare if it can happen at all. Unclear how to fix that.
/cc @aclements
The text was updated successfully, but these errors were encountered: