afl-cov icon indicating copy to clipboard operation
afl-cov copied to clipboard

--coverage-cmd error: could not find executable binary

Open AIK13 opened this issue 4 years ago • 1 comments

Hi, I'm trying to run AFL-cov on a finished AFL test output. I ran AFL using the command /path/to/afl-fuzz -i inputDir/ -o outputDir/ /path/to/program @@ , and I compiled the program using AFL's clang compiler.

When using AFL-cov, I'm trying to follow the examples in the README, so after compiling the program separately with coverage support, I tried to run AFL-cov with these commands:

$ cd /emptyDir
$ /path/to/afl-cov -d /path/to/outputDir --coverage-cmd "/path/to/program -f AFL_FILE" -c /path/to/recompiled/program --enable-branch-coverage

I get this error: [*] Could not find an executable binary --coverage-cmd ' ~/Applications/curl/AFLbuild/src/curl -f AFL_FILE'

The path I give is exactly the same as the path I used to start AFL earlier. How can I fix this? If I just specify the directory where the program is in and not the direct path to the program, I get the same error.

Any help is appreciated. Thank you.

AIK13 avatar Apr 26 '20 03:04 AIK13

I think afl-cov does not support clang. You have to use gcc instead.

sgzeng avatar May 13 '20 12:05 sgzeng