Skip to content

Fix flaky gdb tests by detaching from inside the bp commands#1435

Merged
jsturtevant merged 1 commit intohyperlight-dev:mainfrom
ludfjig:fix_gdb_flake
May 4, 2026
Merged

Fix flaky gdb tests by detaching from inside the bp commands#1435
jsturtevant merged 1 commit intohyperlight-dev:mainfrom
ludfjig:fix_gdb_flake

Conversation

@ludfjig
Copy link
Copy Markdown
Contributor

@ludfjig ludfjig commented May 2, 2026

Replace the racy 'inner continue, outer continue, quit' pattern with 'detach, quit' inside the breakpoint commands. After the previous inner continue, the inferior could exit and the gdb stub could close the remote before gdb dispatched the outer continue, producing 'Remote connection closed' and a non-zero exit. The new shape lets the host run the guest call to completion on its own after detach, with no pending remote work in gdb.

closes #1326

Replace the racy 'inner continue, outer continue, quit' pattern with
'detach, quit' inside the breakpoint commands. After the previous
inner continue, the inferior could exit and the gdb stub could close
the remote before gdb dispatched the outer continue, producing
'Remote connection closed' and a non-zero exit. The new shape lets
the host run the guest call to completion on its own after detach,
with no pending remote work in gdb.

Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com>
@ludfjig ludfjig marked this pull request as ready for review May 2, 2026 06:04
@ludfjig ludfjig added the kind/bugfix For PRs that fix bugs label May 4, 2026
@jsturtevant jsturtevant merged commit f75e2a9 into hyperlight-dev:main May 4, 2026
40 of 41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bugfix For PRs that fix bugs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gdb tests have been flaking on windows/mshv

2 participants