Fix leaking Cuttlefish helper process during the teardown#5299
Open
9640-Akhil wants to merge 1 commit into
Open
Fix leaking Cuttlefish helper process during the teardown#52999640-Akhil wants to merge 1 commit into
9640-Akhil wants to merge 1 commit into
Conversation
Collaborator
|
/gcbrun |
The Cuttlefish teardown routine previously bypassed the graceful 'stop_cvd' command when Cuttlefish froze, hung, or when the ADB connection went offline, proceeding to force-kill only 'crosvm' and 'run_cvd'. This leaked helper processes like 'tombstone_receiver', 'socket_vsock_proxy', 'logcat_receiver', and 'modem_simulator', leaving TCP ports bound indefinitely and causing subsequent boot attempts to fail with 'Address already in use' errors. This change ensures 'stop_cvd' is always attempted gracefully and force-kills all remaining CVD helper processes during the forced cleanup routine to guarantee a clean port release.
acc3679 to
6d53193
Compare
Collaborator
|
/gcbrun |
javanlacerda
approved these changes
Jun 3, 2026
Collaborator
|
/gcbrun |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Cuttlefish teardown routine previously bypassed the graceful
stop_cvdcommand when Cuttlefish froze, hung, or when the ADB connection goes offline, proceeding to force-kill onlycrosvmandrun_cvd. This leaked helper processes related to telemetry and bridge processes liketombstone_receiverandmodem_simulator, leaving TCP ports bound indefinitely and causing subsequent boot attempts to fail withAddress already in useerrors.This change ensures
stop_cvdis always attempted gracefully and force-kills all remaining CVD helper processes during the forced cleanup routine to guarantee a clean port release.