Skip to content
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

go/runtime/host/sandbox: Release lock before calling into runtime #5438

Merged
merged 4 commits into from
Nov 13, 2023

Conversation

kostko
Copy link
Member

@kostko kostko commented Nov 13, 2023

Similar to how this is handled in the multi runtime host, we need to release the lock before calling into the runtime as otherwise this could lead to a deadlock in certain situations.

@kostko kostko added the c:bug Category: bug label Nov 13, 2023
@kostko kostko force-pushed the kostko/fix/rt-sandbox-deadlock branch from d5416b7 to 492b663 Compare November 13, 2023 08:48
@kostko kostko force-pushed the kostko/fix/rt-sandbox-deadlock branch from 071e5fe to fefe4e6 Compare November 13, 2023 09:20
@peternose
Copy link
Contributor

We could also fix GetInfo. Fortunately, the current implementation of the conn.GetInfo doesn't block.

Similar to how this is handled in the multi runtime host, we need to
release the lock before calling into the runtime as otherwise this could
lead to a deadlock in certain situations.
@kostko kostko force-pushed the kostko/fix/rt-sandbox-deadlock branch from fefe4e6 to ca85e65 Compare November 13, 2023 09:54
@kostko kostko marked this pull request as ready for review November 13, 2023 09:55
@kostko kostko force-pushed the kostko/fix/rt-sandbox-deadlock branch from ca85e65 to e022fa9 Compare November 13, 2023 10:44
@kostko kostko enabled auto-merge November 13, 2023 10:51
@kostko kostko merged commit 12a5d62 into master Nov 13, 2023
@kostko kostko deleted the kostko/fix/rt-sandbox-deadlock branch November 13, 2023 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c:bug Category: bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants