-
-
Notifications
You must be signed in to change notification settings - Fork 330
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
Baby fuzzer crash? #1290
Comments
I think this is intended. Crash handler should return with exitcode SIGABRT. else we can't tell if it really aborted() or the harness called exit(0) itself (in this case, you should patch the target or change how you write the harness) |
If you don't want it to end with sigabrt, you can use any restarting event manager. |
Ah, I see this is an issue for #1289 right? Not sure what to do here tbh, finding the panic is the whole point of the fuzzer :P |
Specifically: - Remove unnecessary `compile_fail` attribute - Add `ignore` attribute to the snippets of the complete baby fuzzer. As explained in [AFLplusplus#1290], it is expected for the baby fuzzer to return a non-0 exit code, so this should not trigger a failure during `mdbook test`.
Understood, thanks for the explanation! This is indeed for #1289, but I think we can easily get around it by adding an |
* Clarify setup steps for the baby fuzzer Specifically: - Explicitly mention that the dependency path must point to a specific directory in the cloned repo (and not the root directory) - Explicitly mention how to manually trigger the panic in the harness for testing purposes * Clean up documentation on the baby fuzzer Since the baby fuzzer chapter of the documentation is done in a "tutorial", step-by-step fashion, it would be nice to be able to see where exactly new lines have to be placed in the existing code. To that end, the code used in the tutorial is moved to snippets (as is done in the Rust Book), as it allows for much more convenient maintenance of the snippets, as well as easy hiding of the non-important code on any given snippet. Furthermore, a few minor fixes are applied; a typo on a comment and a missing unsafe block. * Fix code snippet attributes for baby fuzzer Specifically: - Remove unnecessary `compile_fail` attribute - Add `ignore` attribute to the snippets of the complete baby fuzzer. As explained in [#1290], it is expected for the baby fuzzer to return a non-0 exit code, so this should not trigger a failure during `mdbook test`. * Fix CLI snippet language For CLI snippets, the "language" should be set to `console`. * Remove nested safe block in baby_fuzzer listings
Is it normal for the baby fuzzer example in
./fuzzers/baby_fuzzer/
to crash after finding a bug?AFAICT, it exits with a SIGABRT because of this line in the in-process executor, but to be honest I'm not sure why that's the case. Shouldn't it exit normally (with a return code of 0) since no problems came up during fuzzing and the only panic was caused by the bug that the fuzzer was trying to find?
The text was updated successfully, but these errors were encountered: