-
Notifications
You must be signed in to change notification settings - Fork 650
Binary detected as not instrumented when it was built with afl-gcc #118
Comments
This indeed looks weird. Let me ask you a dumb question please. Are you sure you're passing the right (i.e. instrumented, just built) binary to the fuzzer? I see the following build command:
which states |
Yes, very sure I'm afraid. The working directory for
... and the logs show the correct compiler is being invoked:
|
Okay, I've created a much simpler test case that exhibits the same behaviour. I take the following C program:
... compile it with ...
... then run it with
So I'm pretty sure that either AFL is entirely broken on my system, or I'm doing something entirely dumb. Given this is my first time using fuzzers in general and AFL in particular, I'm betting on the latter. |
@duncan-bayne I see that you're using an old version of AFL, maybe that's the reason. I've just updated my checkout of this repository and ran the following commands:
Please give it a try with the latest version :) |
I'm afraid the problem persists with the latest version, compiled from source. The entire repro process (with a few irrelevant bits snipped):
Note that the self-test appears to work, but the resultant binary is still not detected as instrumented. Could we please re-open this issue? |
Do you have
while yours is just:
The gcc version seems to be fine, e.g. mine:
|
Afraid so. This is what got built in
Thinking perhaps it couldn't find
Unfortunately, neither approach fixed the problem. If it'd help, I can give you SSH access to a FreeBSD box for testing / debugging purposes. |
Anyone interested in access to a FreeBSD box as suggested above? |
I'm trying to fuzz an unmodified fork of the mpack source.
expected behaviour
After building from source using
afl-gcc
, I'd expect to be able to fuzz the binary.actual behaviour
I get an error
Looks like the target binary is not instrumented!
.versions of things
example session
a cute picture of a
rabbithareThe text was updated successfully, but these errors were encountered: