Skip to content

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

Open
ludfjig wants to merge 1 commit intohyperlight-dev:mainfrom
ludfjig:fix_gdb_flake
Open

Fix flaky gdb tests by detaching from inside the bp commands#1435
ludfjig wants to merge 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
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.

gdb tests have been flaking on windows/mshv

1 participant