Skip to content

Fix hang when separate-process test crashes#2606

Merged
natebosch merged 4 commits intomasterfrom
hang-after-crash
Mar 9, 2026
Merged

Fix hang when separate-process test crashes#2606
natebosch merged 4 commits intomasterfrom
hang-after-crash

Conversation

@natebosch
Copy link
Copy Markdown
Member

@natebosch natebosch commented Mar 6, 2026

Fixes #2577

If the child process used for the --compiler exe mode crashes it might
not close the socket use for test runner communication. Destroy the
socket from the server side during the platform closure to avoid a
process hang.

Fixes #2577

If the child process used for the `--compiler exe` mode crashes it might
not close the socket use for test runner communication. Close the socket
from the server side during the platform closure to avoid a process
hang.
@natebosch natebosch changed the title Fix hang when separate-process test hangs Fix hang when separate-process test crashes Mar 6, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 6, 2026

PR Health

Changelog Entry ✔️
Package Changed Files

Changes to files need to be accounted for in their respective changelogs.

This check can be disabled by tagging the PR with skip-changelog-check.

During cleanup this socket is no longer useful so it's safe to destroy.
Using destroy over close prevents an exception when the socket was
already closed by the remote side in the typical case where the
sub-process does not crash early.
Test times out without the fix
@natebosch natebosch marked this pull request as ready for review March 6, 2026 23:59
@natebosch natebosch requested a review from a team as a code owner March 6, 2026 23:59
@natebosch natebosch requested a review from jakemac53 March 7, 2026 00:01
@natebosch natebosch merged commit 9d2f9fe into master Mar 9, 2026
61 checks passed
@natebosch natebosch deleted the hang-after-crash branch March 9, 2026 21:20
natebosch added a commit to rmacnak-google/test that referenced this pull request Mar 9, 2026
Should no longer hang following dart-lang#2606
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test harness crashes/hangs on test crash

2 participants