gdb: Ctrl-C then continue cancels the guest call
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 75/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- rust
调研方向
Start in src/hyperlight_host/src/hypervisor/hyperlight_vm/mod.rs around the Cancelled arm at line 769 and read how handle_debug(Interrupt) and cancel_requested control the run loop. The issue reports a gdb example test confirming the reproduction, but does not name its file. Update the behavior so the loop continues after a debug stop unless cancellation was requested; confirm the gdb interrupt and detach reproduction no longer returns ExecutionCanceledByHost.
由索引模型根据 Issue 内容生成。
描述
After gdb interrupts a running guest, continue or detach makes the guest call fail with ExecutionCanceledByHost.
The Cancelled arm handles the debug stop, then always falls through to break Err(RunVmError::ExecutionCancelledByHost) (hyperlight_vm/mod.rs#L769). kill_from_debugger sets only the debug bit, so the cancel was never requested. The behavior dates back to #924.
Repro: attach gdb to a sandbox calling SpinForMs(15000), interrupt, then detach. The call returns ExecutionCanceledByHost. Confirmed with a gdb example test.
Fix: after handle_debug(Interrupt) returns, continue the run loop unless cancel_requested is set.
- 主要语言
- Rust
- 星标
- 4.8k
- 派生
- 223
- 平均合并
- 1 天 18 小时
- 30 天内合并 PR
- 65
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
hyperlight-dev/hyperlight 的其他 Issue
-
A-api C-bug S-confirmed
难度 2/5 1-3 小时 新手友好度 75/100
hyperlight-dev/hyperlight#2135 ·
维护者通常 1 天内回复
-
C-bug S-confirmed
难度 2/5 1-3 小时 新手友好度 76/100
hyperlight-dev/hyperlight#2136 ·
维护者通常 1 天内回复
-
C-bug S-confirmed
难度 2/5 1-3 小时 新手友好度 78/100
hyperlight-dev/hyperlight#2132 ·
维护者通常 1 天内回复
-
C-bug S-confirmed
难度 2/5 1-3 小时 新手友好度 84/100
hyperlight-dev/hyperlight#2133 ·
维护者通常 1 天内回复
-
A-ci A-fuzzing C-bug S-confirmed
难度 2/5 1-3 小时 新手友好度 78/100
hyperlight-dev/hyperlight#2134 ·
维护者通常 1 天内回复
查看 hyperlight-dev/hyperlight 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 83/100
roc-lang/basic-webserver#277 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 82/100
samkerrcode/opengent#113 ·
维护者通常 1 天内回复
-
app bug session
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 64/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复