Simics 7: repro origin snapshot is taken before the testcase is written

Abierto
#406 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
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
55/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
rust

Línea de trabajo

Read the referenced code in src/lib.rs around save_initial_snapshot() and get_and_write_testcase(), then compare src/haps/mod.rs around the Simics 6 and Simics 7 repro bookmark handling. First verify the reported ordering and snapshot behavior against the current code; the report says it has not been reproduced under SIMICS. Done when a Simics 7 repro restore point contains the repro input and the printed restore command names that point.

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

Descripción

Where

Problem
save_initial_snapshot() runs before get_and_write_testcase(). On Simics 6 a bookmark is set after the write, but on Simics 7 (since #354) no second restore point is taken.

Impact
After repro(file) stops, following the printed restore-snapshot tsffs-origin-snapshot gives memory with the harness's original buffer, not the repro input.

Suggested fix
On Simics 7, take a dedicated snapshot (e.g. tsffs-repro-snapshot) in save_repro_bookmark_if_needed and print that name.

Related
#354

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.