Simulation stop without reason sends a fake `Ok` and desynchronises testcases and results

Đang mở
#404 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
65/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
backend, testing

Hướng nghiên cứu

Read src/haps/mod.rs around on_simulation_stopped_without_reason and src/fuzzer/mod.rs around the referenced exit handling. Trace how an iteration’s exit kind and timeout are managed, then verify the suggested behavior against the surrounding callbacks. Done means a stop without a reason leaves the iteration pending without shifting later testcase results; the issue says this has not yet been reproduced under SIMICS.

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

Mô tả

Where

Problem
on_simulation_stopped_without_reason sends ExitKind::Ok for the iteration still in flight and cancels its timeout.

Impact
User pauses mid-iteration (Ctrl-C, unrelated breakpoint) and continues: the fuzzer has consumed Ok for T1 and moved to T2; when T1 really finishes, its result is attributed to T2 and every later result is off by one (non-crashing inputs saved as solutions). The rest of T1 runs with no timeout. With shutdown_on_stop_without_reason = True the thread exits later and the next channel send/recv panics in a HAP callback.

Suggested fix
When not shutting down, send no exit kind and keep the timeout armed; leave the iteration pending.

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.