Skip to content

Fix leaking Cuttlefish helper process during the teardown#5299

Open
9640-Akhil wants to merge 1 commit into
google:masterfrom
ittiam-systems:process_leak_fix_cuttlefish
Open

Fix leaking Cuttlefish helper process during the teardown#5299
9640-Akhil wants to merge 1 commit into
google:masterfrom
ittiam-systems:process_leak_fix_cuttlefish

Conversation

@9640-Akhil
Copy link
Copy Markdown
Contributor

The Cuttlefish teardown routine previously bypassed the graceful stop_cvd command when Cuttlefish froze, hung, or when the ADB connection goes offline, proceeding to force-kill only crosvm and run_cvd. This leaked helper processes related to telemetry and bridge processes like tombstone_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.

@9640-Akhil 9640-Akhil requested a review from a team as a code owner May 29, 2026 17:07
@svasudevprasad
Copy link
Copy Markdown
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.
@9640-Akhil 9640-Akhil force-pushed the process_leak_fix_cuttlefish branch from acc3679 to 6d53193 Compare June 3, 2026 05:26
@svasudevprasad
Copy link
Copy Markdown
Collaborator

/gcbrun

@javanlacerda
Copy link
Copy Markdown
Collaborator

/gcbrun

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.

3 participants