Change special exitcode from 137 to 9 in simple.rs too (#2153)

This commit is contained in:
Dongjia "toka" Zhang 2024-05-07 14:31:19 +02:00 committed by GitHub
parent bed500471a
commit e7e820868c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -527,12 +527,9 @@ where
#[allow(clippy::manual_assert)] #[allow(clippy::manual_assert)]
if !staterestorer.has_content() { if !staterestorer.has_content() {
#[cfg(unix)] #[cfg(unix)]
if child_status == 137 { if child_status == 9 {
// Out of Memory, see https://tldp.org/LDP/abs/html/exitcodes.html panic!("Target received SIGKILL!. This could indicate the target crashed due to OOM, user sent SIGKILL, or the target was in an unrecoverable situation and could not save state to restart");
// and https://github.com/AFLplusplus/LibAFL/issues/32 for discussion.
panic!("Fuzzer-respawner: The fuzzed target crashed with an out of memory error! Fix your harness, or switch to another executor (for example, a forkserver).");
} }
// Storing state in the last round did not work // Storing state in the last round did not work
panic!("Fuzzer-respawner: Storing state in crashed fuzzer instance did not work, no point to spawn the next client! This can happen if the child calls `exit()`, in that case make sure it uses `abort()`, if it got killed unrecoverable (OOM), or if there is a bug in the fuzzer itself. (Child exited with: {child_status})"); panic!("Fuzzer-respawner: Storing state in crashed fuzzer instance did not work, no point to spawn the next client! This can happen if the child calls `exit()`, in that case make sure it uses `abort()`, if it got killed unrecoverable (OOM), or if there is a bug in the fuzzer itself. (Child exited with: {child_status})");
} }