Skip to content

CIFuzz seems to fail sporadically #5383

@evverx

Description

@evverx

It appears CIFuzz fails to delete temporary corpora from time to time with:

2021-03-13T15:34:55.2974771Z 2021-03-13 15:34:55,296 - root - INFO - RUN_FUZZERS_MODE is: ci
2021-03-13T15:34:55.2978883Z 2021-03-13 15:34:55,297 - root - INFO - Using OSS-Fuzz as ClusterFuzz deployment.
2021-03-13T15:34:55.2982426Z 2021-03-13 15:34:55,297 - root - INFO - Using address sanitizer.
2021-03-13T15:34:55.3078727Z 2021-03-13 15:34:55,307 - root - INFO - Fuzz targets: ['/github/workspace/out/fuzz-network-parser']
2021-03-13T15:34:55.3079961Z 2021-03-13 15:34:55,307 - root - INFO - Fuzzer fuzz-network-parser, started.
2021-03-13T15:34:57.2870798Z 2021-03-13 15:34:57,286 - root - INFO - Running command: docker run --rm --privileged --volumes-from 8f4401845a0e -e OUT=/github/workspace/out -e FUZZING_ENGINE=libfuzzer -e SANITIZER=address -e CIFUZZ=True -e RUN_FUZZER_MODE=interactive gcr.io/oss-fuzz-base/base-runner bash -c run_fuzzer fuzz-network-parser -seed=1337 -len_control=0 -max_total_time=600 /github/workspace/out/cifuzz-corpus/fuzz-network-parser
2021-03-13T15:45:07.2951342Z 2021-03-13 15:45:07,291 - root - ERROR - Fuzzer fuzz-network-parser timed out, ending fuzzing.
2021-03-13T15:45:07.2955102Z 2021-03-13 15:45:07,292 - root - INFO - Deleting corpus, seed corpus and fuzz target of fuzz-network-parser to save disk.
2021-03-13T15:45:07.7340109Z Traceback (most recent call last):
2021-03-13T15:45:07.7341634Z   File "/opt/oss-fuzz/infra/cifuzz/run_fuzzers_entrypoint.py", line 97, in <module>
2021-03-13T15:45:07.7342241Z     sys.exit(main())
2021-03-13T15:45:07.7343023Z   File "/opt/oss-fuzz/infra/cifuzz/run_fuzzers_entrypoint.py", line 83, in main
2021-03-13T15:45:07.7343691Z     result = run_fuzzers.run_fuzzers(config)
2021-03-13T15:45:07.7344929Z   File "/opt/oss-fuzz/infra/cifuzz/run_fuzzers.py", line 208, in run_fuzzers
2021-03-13T15:45:07.7345646Z     if not fuzz_target_runner.run_fuzz_targets():
2021-03-13T15:45:07.7346674Z   File "/opt/oss-fuzz/infra/cifuzz/run_fuzzers.py", line 136, in run_fuzz_targets
2021-03-13T15:45:07.7347848Z     result = self.run_fuzz_target(target)
2021-03-13T15:45:07.7348836Z   File "/opt/oss-fuzz/infra/cifuzz/run_fuzzers.py", line 95, in run_fuzz_target
2021-03-13T15:45:07.7349483Z     fuzz_target_obj.free_disk_if_needed()
2021-03-13T15:45:07.7350301Z   File "/opt/oss-fuzz/infra/cifuzz/fuzz_target.py", line 159, in free_disk_if_needed
2021-03-13T15:45:07.7350998Z     shutil.rmtree(self.latest_corpus_path)
2021-03-13T15:45:07.7351603Z   File "/usr/lib/python3.5/shutil.py", line 478, in rmtree
2021-03-13T15:45:07.7352188Z     onerror(os.rmdir, path, sys.exc_info())
2021-03-13T15:45:07.7352755Z   File "/usr/lib/python3.5/shutil.py", line 476, in rmtree
2021-03-13T15:45:07.7353237Z     os.rmdir(path)
2021-03-13T15:45:07.7354174Z OSError: [Errno 39] Directory not empty: '/github/workspace/out/cifuzz-corpus/fuzz-network-parser'

The full logs can be found at https://github.com/systemd/systemd/actions/runs/649329522 and https://github.com/systemd/systemd/actions/runs/647504148

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions