Saved execution traces do not belong to the reported input; timeout trace flag ignored

Abierto
#407 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
68/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
rust
Área
testing-qa

Línea de trabajo

Start with the cited locations in src/log/mod.rs, src/tracer/mod.rs, and src/haps/mod.rs, then trace how iterations finish and how Interesting, Crash, and Timeout messages save execution traces. Check the recording conditions for save_timeout_execution_traces and reproduce the reported behavior under SIMICS if available. Done when saved traces correspond to the reported iteration and enabling only the timeout flag records timeout traces.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Where

Problem
Interesting/Crash/Timeout messages are drained at the start of the next stop, after another iteration has appended to execution_trace. The trace is only cleared in start handlers, so it may also grow across iterations. save_timeout_execution_traces is missing from both recording conditions in the tracer.

Impact
Saved traces mix iterations; setting only save_timeout_execution_traces records nothing.

Suggested fix
Clear the trace in finish_iteration, stash the previous iteration's trace for message-driven saves, and add the timeout flag to the two conditions.

Status
Reported by static code review at 79972db; not yet re-verified line by line. Found by reading the code; not reproduced under SIMICS.

Lenguaje dominante
Rust
Estrellas
335
Forks
26
Merge medio
1 d 50 min
PR fusionados (30 d)
12

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 intel/tsffs

Todos los issues de intel/tsffs

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.