Skip to content

[infra] Indicate coverage run failure when libFuzzer reports an error #13103

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

phi-go
Copy link
Contributor

@phi-go phi-go commented Feb 25, 2025

Currently OOM's and timeouts for individual corpus entries during coverage measurement are silently ignored, as libFuzzer still exits with a zero returncode. This PR adds a grep for error messages during the coverage run. Additionally, add a small log file is created to indicate the fuzzer target for which the coverage measurement did not complete succesfully.

code is non-zero. Additionally, add a small log file to indicate the
fuzzer target for which the coverage measurement did not complete
succesfully.


Signed-off-by: phi-go <[email protected]>
@phi-go phi-go changed the title Indicate coverage run failure when libFuzzer reports an error [infra] Indicate coverage run failure when libFuzzer reports an error Feb 25, 2025
@DavidKorczynski
Copy link
Collaborator

/gcbrun trial_build.py --sanitizer coverage --fuzzing-engine libfuzzer

@phi-go
Copy link
Contributor Author

phi-go commented May 28, 2025

@DavidKorczynski I think something went wrong with the command?

Starting Step #1
Step #1: Already have image: gcr.io/oss-fuzz-base/trial-build
Step #1: INFO:root:Command: ['--sanitizer', 'coverage', '--fuzzing-engine', 'libfuzzer', '--repo', 'https://github.com/phi-go/oss-fuzz', '--branch', 'push-qnznzrmxrksp'].
Step #1: usage: /opt/oss-fuzz/infra/build/functions/gcb.py [-h]
Step #1:                                                   [--sanitizers SANITIZERS [SANITIZERS ...]]
Step #1:                                                   [--fuzzing-engines FUZZING_ENGINES [FUZZING_ENGINES ...]]
Step #1:                                                   [--repo REPO]
Step #1:                                                   [--branch BRANCH]
Step #1:                                                   [--force-build]
Step #1:                                                   projects [projects ...]
Step #1: /opt/oss-fuzz/infra/build/functions/gcb.py: error: the following arguments are required: projects
Finished Step #1
ERROR
ERROR: build step 1 "gcr.io/oss-fuzz-base/trial-build" failed: step exited with non-zero status: 2

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 this pull request may close these issues.

2 participants