microsoft / onefuzz

A self-hosted Fuzzing-As-A-Service platform
MIT License
2.82k stars 198 forks source link

Panic when searching for missing libraries #3457

Open tevoinea opened 1 year ago

tevoinea commented 1 year ago

Information

Provide detailed reproduction steps (if any)

task_id: 4adb1f38-699b-4175-afba-87854d8f672f

The panic happened in the unwrap() on this line: https://github.com/microsoft/onefuzz/blob/ead63eb3ff19b6ada3c93e42a830ffa4522fd17d/src/agent/debugger/src/target.rs#L232

Raw logs ``` task failed. exit_status:ExitStatus { Code = 1, Signal = , Success = False } 0x7ffd6a1826f1 - RtlUserThreadStart WARN [onefuzz::libfuzzer] libfuzzer verification failed, will retry: fuzzer does not respond to '-help=1'. additional error while checking for missing shared libraries: task 97 panicked. output: Output { status: ExitStatus(ExitStatus(3221226505)), stdout: "", stderr: "" } Stack backtrace: 0: 1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: BaseThreadInitThunk 17: RtlUserThreadStart WARN [onefuzz::libfuzzer] libfuzzer verification failed, will retry: fuzzer does not respond to '-help=1'. additional error while checking for missing shared libraries: debugger error. output: Output { status: ExitStatus(ExitStatus(3221226505)), stdout: "", stderr: "" } Stack backtrace: 0: 1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: BaseThreadInitThunk 17: RtlUserThreadStart thread 'tokio-runtime-worker' panicked at 'called ``Option::unwrap()`` on a ``None`` value', debugger\src\target.rs:232:71 stack backtrace: 0: 0x7ff7e2993cd1 - 1: 0x7ff7e203c8cb - 2: 0x7ff7e298de39 - 3: 0x7ff7e2993a6f - 4: 0x7ff7e29978ef - 5: 0x7ff7e29975c0 - 6: 0x7ff7e2997de5 - 7: 0x7ff7e2997ca3 - 8: 0x7ff7e29951e9 - 9: 0x7ff7e29979c4 - 10: 0x7ff7e2b3ac15 - 11: 0x7ff7e2b3acc2 - 12: 0x7ff7e20f1997 - 13: 0x7ff7e20eed65 - 14: 0x7ff7e20ee89d - 15: 0x7ff7e242419c - 16: 0x7ff7e22aa4b6 - 17: 0x7ff7e2a6a500 - 18: 0x7ff7e2a6b36e - 19: 0x7ff7e2a77ea4 - 20: 0x7ff7e29a6a43 - 21: 0x7ffd68e47614 - BaseThreadInitThunk 22: 0x7ffd6a1826f1 - RtlUserThreadStart ```

AB#164786