Open Anothonio opened 4 years ago
experiment: test-experiment
trials: 2
max_total_time: 900
docker_registry: gcr.io/fuzzbench
experiment_filestore: /tmp/fuzzbench-data
report_filestore: /tmp/fuzzbench-reports
local_experiment: true
ah docs are missing "local_experiment: true", let me add it. also docker_registry, try "gcr.io/fuzzbench"
For docker registry, use gcr.io/fuzzbench. I will work with @lszekeres to see why lab-server:5000 was recommended, and how to set this up in gcr.io/fuzzbench context.
Please just use "gcr.io/fuzzbench" in that field, we will add the support in some time.
Thanks for the response, it worked!
Well, after running the test I have the following error for generating reports :
INFO:root:Generating coverage report for benchmark: libpng-1.2.56 fuzzer: afl.
INFO:root:Merging profdata for fuzzer: afl,benchmark: libpng-1.2.56.
ERROR:root:Profdata files merging failed.
ERROR:root:Error occurred when generating coverage report. Extras: {'traceback': 'Traceback (most recent call last):\n File "/work/src/experiment/coverage_utils.py", line 73, in generate_coverage_report\n coverage_reporter.generate_coverage_summary_json()\n File "/work/src/experiment/coverage_utils.py", line 143, in generate_coverage_summary_json\n summary_only=False)\n File "/work/src/experiment/coverage_utils.py", line 265, in generate_json_summary\n with open(output_file, \'w\') as dst_file:\nFileNotFoundError: [Errno 2] No such file or directory: \'/work/measurement-folders/libpng-1.2.56-afl/merged.json\'\n'}
INFO:root:Generating coverage report for benchmark: libpng-1.2.56 fuzzer: honggfuzz.
INFO:root:Merging profdata for fuzzer: honggfuzz,benchmark: libpng-1.2.56.
ERROR:root:Profdata files merging failed.
ERROR:root:Error occurred when generating coverage report. Extras: {'traceback': 'Traceback (most recent call last):\n File "/work/src/experiment/coverage_utils.py", line 73, in generate_coverage_report\n coverage_reporter.generate_coverage_summary_json()\n File "/work/src/experiment/coverage_utils.py", line 143, in generate_coverage_summary_json\n summary_only=False)\n File "/work/src/experiment/coverage_utils.py", line 265, in generate_json_summary\n with open(output_file, \'w\') as dst_file:\nFileNotFoundError: [Errno 2] No such file or directory: \'/work/measurement-folders/libpng-1.2.56-honggfuzz/merged.json\'\n'}
INFO:root:Generating coverage report for benchmark: libpng-1.2.56 fuzzer: libfuzzer.
INFO:root:Merging profdata for fuzzer: libfuzzer,benchmark: libpng-1.2.56.
ERROR:root:Profdata files merging failed.
ERROR:root:Error occurred when generating coverage report. Extras: {'traceback': 'Traceback (most recent call last):\n File "/work/src/experiment/coverage_utils.py", line 73, in generate_coverage_report\n coverage_reporter.generate_coverage_summary_json()\n File "/work/src/experiment/coverage_utils.py", line 143, in generate_coverage_summary_json\n summary_only=False)\n File "/work/src/experiment/coverage_utils.py", line 265, in generate_json_summary\n with open(output_file, \'w\') as dst_file:\nFileNotFoundError: [Errno 2] No such file or directory: \'/work/measurement-folders/libpng-1.2.56-libfuzzer/merged.json\'\n'}
INFO:root:Finished generating coverage reports.
INFO:root:Finished measuring.
Any solution to this ?
@inferno-chromium, same issue while running experiment locally now.
The merging of profile data fails since it is unable to locate the destination path specified to place the merged.profdata in. Coverage reporting entirely fails since profile data is missing.
I am not sure but I think when the max_total_time
is lower than 500, then this happend .
@BharathMonash Please test with 900
as the max_total_time
so it probably will be run and generate reports. (I think!)
Please confirm if this is the case for you but I am still waiting for a response from google fuzzbench guys about this .
I am not sure but I think when the
max_total_time
is lower than 500, then this happend . @BharathMonash Please test with900
as themax_total_time
so it probably will be run and generate reports. (I think!) Please confirm if this is the case for you but I am still waiting for a response from google fuzzbench guys about this .
@Anothonio, I ran with max_total_time: 900
, still getting the same error while generating reports. Measuring runs properly.
coverage_reporter.generate_coverage_summary_json()\n File "/work/src/experiment/coverage_utils.py", line 143,
in generate_coverage_summary_json\n summary_only=False)\n File "/work/src/experiment/coverage_utils.py",
line 265, ingenerate_json_summary\n with open(output_file, \'w\') as dst_file:\nFileNotFoundError:
[Errno 2] No such file or directory: \'/work/measurement-folders/libpng-1.2.56-afl/merged.json\'\n'}```
dst_file:\nFileNotFoundError: [Errno 2] No such file or directory:
\'/work/measurement-folders/libpng-1.2.56-afl/merged.json\'\n'}
The corpus is copied at exactly 15 minutes (900sec). Maybe you can try to set max_total_time just a bit higher than 900, say 1000?
First question, is your experiment report generated at /tmp/fuzzbench-reports/
@inferno-chromium and @mboehme, yes the reports and plots (svg) are generated at:
/tmp/fuzzbench-reports/<experiment_name>/index.html
and I'm able to view the html report. I'l try a higher time as suggested and see if the issue persists.
Hi
I started to run a local experiment as described here and here .
I run the following command :
PYTHONPATH=. python3 experiment/run_experiment.py --experiment-config experiment-config.yaml --benchmarks freetype2-2017 bloaty_fuzz_target --experiment-name $EXPERIMENT_NAME --fuzzers afl libfuzzer
theexperiment-config.yaml
has the following content :But I got the following error :
I did everything as documented but I came up with this .
I did not understand the following in config file :
docker_registry: lab-server:5000
Should I setup a docker_registry ? if yes how to do this ?
thnx