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

Đang mở
#406 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
55/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
embedded-iot, testing

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Rust
Star
335
Fork
26
Merge trung bình
1 ngày 50 phút
Pull request đã merge (30 ngày)
12

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của intel/tsffs

Tất cả issue của intel/tsffs

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.