gdb: Ctrl-C then continue cancels the guest call
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 75/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- rust
- Área
- operating-systems
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Rust
- Estrellas
- 4.8k
- Forks
- 223
- Merge medio
- 1 d 18 h
- PR fusionados (30 d)
- 65
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de hyperlight-dev/hyperlight
-
A-api C-bug S-confirmed
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
hyperlight-dev/hyperlight#2135 ·
Los mantenedores suelen responder en 1 día
-
C-bug S-confirmed
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
hyperlight-dev/hyperlight#2136 ·
Los mantenedores suelen responder en 1 día
-
C-bug S-confirmed
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
hyperlight-dev/hyperlight#2132 ·
Los mantenedores suelen responder en 1 día
-
C-bug S-confirmed
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
hyperlight-dev/hyperlight#2133 ·
Los mantenedores suelen responder en 1 día
-
A-ci A-fuzzing C-bug S-confirmed
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
hyperlight-dev/hyperlight#2134 ·
Los mantenedores suelen responder en 1 día
Todos los issues de hyperlight-dev/hyperlight
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
roc-lang/basic-webserver#277 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
samkerrcode/opengent#113 ·
Los mantenedores suelen responder en 1 día
-
app bug session
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día