fuzz: oss-fuzz coverage build is failing #31770

issue fanquake openend this issue on January 31, 2025
  1. fanquake commented at 1:33 pm on January 31, 2025: member

    It first failed on the 25th (https://oss-fuzz-build-logs.storage.googleapis.com/log-7da28be4-dcf5-4e23-a6ca-153f67ad2f60.txt):

     0Step [#7](/bitcoin-bitcoin/7/): warning: The file '/usr/evmap.c' isn't covered.
     1Step [#7](/bitcoin-bitcoin/7/): error: /workspace/out/libfuzzer-coverage-x86_64/usr/arc4random.c: No such file or directory
     2Step [#7](/bitcoin-bitcoin/7/): warning: The file '/usr/arc4random.c' isn't covered.
     3Step [#7](/bitcoin-bitcoin/7/): error: /workspace/out/libfuzzer-coverage-x86_64/usr/buffer.c: No such file or directory
     4Step [#7](/bitcoin-bitcoin/7/): warning: The file '/usr/buffer.c' isn't covered.
     5Step [#7](/bitcoin-bitcoin/7/): error: /workspace/out/libfuzzer-coverage-x86_64/usr/util-internal.h: No such file or directory
     6Step [#7](/bitcoin-bitcoin/7/): warning: The file '/usr/util-internal.h' isn't covered.
     7Step [#7](/bitcoin-bitcoin/7/): [2025-01-31 07:01:44,276 DEBUG] Finished generating per-file code coverage summary.
     8Step [#7](/bitcoin-bitcoin/7/): [2025-01-31 07:01:44,277 DEBUG] Generating file view html index file as: "/workspace/out/libfuzzer-coverage-x86_64/report/linux/file_view_index.html".
     9Step [#7](/bitcoin-bitcoin/7/): Traceback (most recent call last):
    10Step [#7](/bitcoin-bitcoin/7/):   File "/opt/code_coverage/coverage_utils.py", line 829, in <module>
    11Step [#7](/bitcoin-bitcoin/7/):     sys.exit(Main())
    12Step [#7](/bitcoin-bitcoin/7/):   File "/opt/code_coverage/coverage_utils.py", line 823, in Main
    13Step [#7](/bitcoin-bitcoin/7/):     return _CmdPostProcess(args)
    14Step [#7](/bitcoin-bitcoin/7/):   File "/opt/code_coverage/coverage_utils.py", line 780, in _CmdPostProcess
    15Step [#7](/bitcoin-bitcoin/7/):     processor.PrepareHtmlReport()
    16Step [#7](/bitcoin-bitcoin/7/):   File "/opt/code_coverage/coverage_utils.py", line 577, in PrepareHtmlReport
    17Step [#7](/bitcoin-bitcoin/7/):     self.GenerateFileViewHtmlIndexFile(per_file_coverage_summary,
    18Step [#7](/bitcoin-bitcoin/7/):   File "/opt/code_coverage/coverage_utils.py", line 450, in GenerateFileViewHtmlIndexFile
    19Step [#7](/bitcoin-bitcoin/7/):     self.GetCoverageHtmlReportPathForFile(file_path),
    20Step [#7](/bitcoin-bitcoin/7/):   File "/opt/code_coverage/coverage_utils.py", line 422, in GetCoverageHtmlReportPathForFile
    21Step [#7](/bitcoin-bitcoin/7/):     assert os.path.isfile(
    22Step [#7](/bitcoin-bitcoin/7/): AssertionError: "/usr/arc4random.c" is not a file.
    23Step [#7](/bitcoin-bitcoin/7/): ********************************************************************************
    24Step [#7](/bitcoin-bitcoin/7/): Code coverage report generation failed.
    25Step [#7](/bitcoin-bitcoin/7/): To reproduce, run:
    26Step [#7](/bitcoin-bitcoin/7/): python infra/helper.py build_image bitcoin-core
    27Step [#7](/bitcoin-bitcoin/7/): python infra/helper.py build_fuzzers --sanitizer coverage bitcoin-core
    28Step [#7](/bitcoin-bitcoin/7/): python infra/helper.py coverage bitcoin-core
    29Step [#7](/bitcoin-bitcoin/7/): ********************************************************************************
    30Finished Step [#7](/bitcoin-bitcoin/7/)
    31ERROR
    32ERROR: build step 7 "gcr.io/oss-fuzz-base/base-runner" failed: step exited with non-zero status: 1
    

    See also: https://issues.oss-fuzz.com/issues/391974928.

  2. davidgumberg commented at 3:30 am on February 1, 2025: contributor

    Bisected to https://github.com/bitcoin/bitcoin/commit/5691fa93c48c5b2c767f19aad5e972e4d760414a (#31661),

    Can reproduce doing something like:

     0# setup 
     1git clone --depth 1 https://github.com/google/oss-fuzz.git
     2git clone https://github.com/bitcoin/bitcoin oss-fuzz/bitcoin
     3git clone --depth 1 https://github.com/bitcoin-core/qa-assets oss-fuzz/bitcoin/assets
     4cd oss-fuzz
     5python infra/helper.py build_image bitcoin-core
     6
     7# check out a commit hash for the local copy
     8BAD_COMMIT=5691fa93c4
     9GOOD_COMMIT=8fc7140846
    10cd bitcoin && git checkout $BAD_COMMIT && cd ..
    11
    12python infra/helper.py build_fuzzers --sanitizer coverage bitcoin-core bitcoin/
    13python infra/helper.py coverage bitcoin-core --fuzz-target psbt
    

    Probably related to using -ffile-prefix-map (https://github.com/bitcoin/bitcoin/pull/31661#discussion_r1923896475)

  3. fanquake added this to the milestone 29.0 on Feb 1, 2025
  4. hebasto commented at 2:57 pm on February 5, 2025: member
    A fix has been proposed in #31800.
  5. fanquake closed this on Feb 7, 2025

  6. fanquake referenced this in commit 81eb6cc2c6 on Feb 7, 2025
  7. bitcoin locked this on Feb 7, 2026


fanquake davidgumberg hebasto

Milestone
29.0


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-02-10 21:13 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me