Fuzzer Error when fuzzing apache/apr
Opened this issue · 0 comments
Wakotu commented
I encountered a fuzzer error when fuzzing apache/apr in official docker environment.
I build apache/apr
with the following commands,where /fuzz/targets/apr
is the prefix of install location.
./configure --prefix=/fuzz/targets/apr
make
make test
make install
Then I build and fuzz with the following commands:
OUTPUT_DIR=./output/apr_2
hopper compile --header targets/apr/include/apr-2/all.h --library targets/apr/lib/libapr-2.so --output "$OUTPUT_DIR"
hopper fuzz "$OUTPUT_DIR"
Note that targets/apr/include/apr-2/all.h
is the header file that contains all the exported headers of apache/apr.
Hopper compiles and runs successfully.
Then I encountered the following fuzzer error soon.
in misc/fuzzer_error.log
Error {
msg: "stop process status",
source: Error {
msg: "fail to read line: ",
source: Os {
code: 11,
kind: WouldBlock,
message: "Resource temporarily unavailable",
},
},
}
Backstrace:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⋮ 3 frames hidden ⋮
4: hopper::execute::io_utils::read_line::h01d39995087e0878
at <unknown source file>:<unknown line>
5: hopper::execute::io_utils::receive_line::he0e0d72a627c9aa8
at <unknown source file>:<unknown line>
6: hopper::execute::forkcli::ForkCli::execute_program_fast::h90abd06c7ba34259
at <unknown source file>:<unknown line>
7: hopper::fuzzer::Fuzzer::run_program::hf7d4738307673528
at <unknown source file>:<unknown line>
8: hopper::fuzzer::Fuzzer::pilot_generate_func::h58636918dbcb3010
at <unknown source file>:<unknown line>
9: hopper::fuzz::infer::<impl hopper::fuzzer::Fuzzer>::pilot_infer::hc3de39070c76bfa5
at <unknown source file>:<unknown line>
10: hopper::fuzzer::Fuzzer::fuzz_loop::h50ce6719fba995c4
at <unknown source file>:<unknown line>
11: hopper::run_fuzzer::h537b24e41cd51b65
at <unknown source file>:<unknown line>
12: hopper_fuzzer::main::h43694cf3d82ea273
at <unknown source file>:<unknown line>
13: std::sys_common::backtrace::__rust_begin_short_backtrace::h51c167a89950432c
at <unknown source file>:<unknown line>
14: std::rt::lang_start::{{closure}}::h3e2fea973b7dd151
at <unknown source file>:<unknown line>
15: std::rt::lang_start_internal::hcee5ed89fc25829a
at <unknown source file>:<unknown line>
16: main<unknown>
at <unknown source file>:<unknown line>
17: __libc_start_main<unknown>
at <unknown source file>:<unknown line>
18: _start<unknown>
at <unknown source file>:<unknown line>