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

Fix nil pointer ref in vbd #6179

Merged
merged 2 commits into from
Mar 18, 2024
Merged

Fix nil pointer ref in vbd #6179

merged 2 commits into from
Mar 18, 2024

Conversation

maggie-lou
Copy link
Contributor

@maggie-lou maggie-lou commented Mar 18, 2024

Error: https://buildbuddy-corp.slack.com/files/USLACKBOT/F06QSAARCAU/new_error_in_flame-build_executor_executor-54df5bd945-dkck9

We unmount vbd in the background, which sets f.server=nil when it's complete. We also may return early from the Unmount call if the context is cancelled, and we don't wait for the background unmount process to complete. If we don't set the vbd=nil, when we're cleaning up the VM we might try to unmount again, which will cause a nil pointer ref

@maggie-lou
Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @maggie-lou and the rest of your teammates on Graphite Graphite

@maggie-lou maggie-lou marked this pull request as draft March 18, 2024 17:50
@maggie-lou maggie-lou changed the title Add check for nil pointer ref in vbd Fix nil pointer ref in vbd Mar 18, 2024
@maggie-lou maggie-lou marked this pull request as ready for review March 18, 2024 18:03
@maggie-lou maggie-lou merged commit 2f93094 into master Mar 18, 2024
12 of 19 checks passed
@maggie-lou maggie-lou deleted the fix_vbd_unmount branch March 18, 2024 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants