Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fuzz target tries to run when not instrumented #174

Open
domodwyer opened this issue Aug 29, 2022 · 0 comments · May be fixed by #175
Open

Fuzz target tries to run when not instrumented #174

domodwyer opened this issue Aug 29, 2022 · 0 comments · May be fixed by #175

Comments

@domodwyer
Copy link
Member

Steps to reproduce

  1. cargo test --workspace --bins

I have this as part of a pre-commit hook, and it always fails because of the fuzzer.

Expected behavior

Tests to pass on master.

Actual behavior

Fuzz target explodes:

$ cargo test --workspace --bins
   Compiling rskafka v0.3.0 (/Users/dom/Documents/rust/rskafka)
   Compiling rskafka-fuzz v0.0.0 (/Users/dom/Documents/rust/rskafka/fuzz)
    Finished test [unoptimized + debuginfo] target(s) in 2.09s
     Running unittests fuzz_targets/protocol_reader.rs (target/debug/deps/protocol_reader-af583cadbc4544d6)
WARNING: Failed to find function "__sanitizer_acquire_crash_state". Reason dlsym(RTLD_DEFAULT, __sanitizer_acquire_crash_state): symbol not found.
WARNING: Failed to find function "__sanitizer_print_stack_trace". Reason dlsym(RTLD_DEFAULT, __sanitizer_print_stack_trace): symbol not found.
WARNING: Failed to find function "__sanitizer_set_death_callback". Reason dlsym(RTLD_DEFAULT, __sanitizer_set_death_callback): symbol not found.
INFO: Running with entropic power schedule (0xFF, 100).
INFO: Seed: 1873570374
INFO: -max_len is not provided; libFuzzer will not generate inputs larger than 4096 bytes
INFO: A corpus is not provided, starting from an empty corpus
#2	INITED exec/s: 0 rss: 28Mb
ERROR: no interesting inputs were found. Is the code instrumented for coverage? Exiting.
error: test failed, to rerun pass '-p rskafka-fuzz --bin protocol_reader'
@domodwyer domodwyer linked a pull request Aug 29, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant