gdb: Ctrl-C then continue cancels the guest call

Abierto
#1,973 0 comentarios 0 reacciones 0 asignados Ver en GitHub

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

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

S-confirmed

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

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de hyperlight-dev/hyperlight

Todos los issues de hyperlight-dev/hyperlight

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.