starting build "1561f315-65f0-42d3-bfd3-b3cf9554d409" FETCHSOURCE BUILD Starting Step #0 Step #0: Already have image (with digest): gcr.io/cloud-builders/git Step #0: Cloning into 'oss-fuzz'... Finished Step #0 Starting Step #1 Step #1: Already have image (with digest): gcr.io/cloud-builders/docker Step #1: Sending build context to Docker daemon 7.68kB Step #1: Step 1/5 : FROM gcr.io/oss-fuzz-base/base-builder-rust Step #1: latest: Pulling from oss-fuzz-base/base-builder-rust Step #1: 7b1a6ab2e44d: Pulling fs layer Step #1: 4486182691d4: Pulling fs layer Step #1: 4335d4ba1ea4: Pulling fs layer Step #1: 6a2c3cd0ee64: Pulling fs layer Step #1: 9974e562b131: Pulling fs layer Step #1: 6b79fcd58fbc: Pulling fs layer Step #1: 7d9f3541e926: Pulling fs layer Step #1: 12e8f43248e2: Pulling fs layer Step #1: 80217a3bb283: Pulling fs layer Step #1: 63e1ea16c713: Pulling fs layer Step #1: 53a98d7414bf: Pulling fs layer Step #1: 02674041d4a6: Pulling fs layer Step #1: 4d70427f23c8: Pulling fs layer Step #1: 7522d22912d6: Pulling fs layer Step #1: 6a2c3cd0ee64: Waiting Step #1: 871e1a27f0c5: Pulling fs layer Step #1: b3744a9f3cd4: Pulling fs layer Step #1: 9974e562b131: Waiting Step #1: 265329e1ecdc: Pulling fs layer Step #1: 06a8cca939b7: Pulling fs layer Step #1: 77bf8b8a4e05: Pulling fs layer Step #1: b7dddfa5ca51: Pulling fs layer Step #1: 6b79fcd58fbc: Waiting Step #1: 5a7577deded1: Pulling fs layer Step #1: 53a98d7414bf: Waiting Step #1: 7522d22912d6: Waiting Step #1: 12e8f43248e2: Waiting Step #1: 02674041d4a6: Waiting Step #1: 871e1a27f0c5: Waiting Step #1: 7d9f3541e926: Waiting Step #1: 4d70427f23c8: Waiting Step #1: b3744a9f3cd4: Waiting Step #1: 80217a3bb283: Waiting Step #1: 77bf8b8a4e05: Waiting Step #1: 265329e1ecdc: Waiting Step #1: 63e1ea16c713: Waiting Step #1: b7dddfa5ca51: Waiting Step #1: 5a7577deded1: Waiting Step #1: 06a8cca939b7: Waiting Step #1: 4335d4ba1ea4: Verifying Checksum Step #1: 4335d4ba1ea4: Download complete Step #1: 7b1a6ab2e44d: Verifying Checksum Step #1: 7b1a6ab2e44d: Download complete Step #1: 6a2c3cd0ee64: Verifying Checksum Step #1: 6a2c3cd0ee64: Download complete Step #1: 9974e562b131: Verifying Checksum Step #1: 9974e562b131: Download complete Step #1: 7d9f3541e926: Verifying Checksum Step #1: 7d9f3541e926: Download complete Step #1: 4486182691d4: Verifying Checksum Step #1: 4486182691d4: Download complete Step #1: 80217a3bb283: Verifying Checksum Step #1: 80217a3bb283: Download complete Step #1: 63e1ea16c713: Verifying Checksum Step #1: 63e1ea16c713: Download complete Step #1: 7b1a6ab2e44d: Pull complete Step #1: 53a98d7414bf: Verifying Checksum Step #1: 53a98d7414bf: Download complete Step #1: 02674041d4a6: Verifying Checksum Step #1: 02674041d4a6: Download complete Step #1: 4d70427f23c8: Download complete Step #1: 7522d22912d6: Download complete Step #1: 12e8f43248e2: Verifying Checksum Step #1: 12e8f43248e2: Download complete Step #1: b3744a9f3cd4: Verifying Checksum Step #1: b3744a9f3cd4: Download complete Step #1: 871e1a27f0c5: Verifying Checksum Step #1: 871e1a27f0c5: Download complete Step #1: 265329e1ecdc: Verifying Checksum Step #1: 265329e1ecdc: Download complete Step #1: 06a8cca939b7: Verifying Checksum Step #1: 06a8cca939b7: Download complete Step #1: 6b79fcd58fbc: Verifying Checksum Step #1: b7dddfa5ca51: Verifying Checksum Step #1: b7dddfa5ca51: Download complete Step #1: 6b79fcd58fbc: Download complete Step #1: 77bf8b8a4e05: Download complete Step #1: 4486182691d4: Pull complete Step #1: 4335d4ba1ea4: Pull complete Step #1: 6a2c3cd0ee64: Pull complete Step #1: 9974e562b131: Pull complete Step #1: 5a7577deded1: Verifying Checksum Step #1: 5a7577deded1: Download complete Step #1: 6b79fcd58fbc: Pull complete Step #1: 7d9f3541e926: Pull complete Step #1: 12e8f43248e2: Pull complete Step #1: 80217a3bb283: Pull complete Step #1: 63e1ea16c713: Pull complete Step #1: 53a98d7414bf: Pull complete Step #1: 02674041d4a6: Pull complete Step #1: 4d70427f23c8: Pull complete Step #1: 7522d22912d6: Pull complete Step #1: 871e1a27f0c5: Pull complete Step #1: b3744a9f3cd4: Pull complete Step #1: 265329e1ecdc: Pull complete Step #1: 06a8cca939b7: Pull complete Step #1: 77bf8b8a4e05: Pull complete Step #1: b7dddfa5ca51: Pull complete Step #1: 5a7577deded1: Pull complete Step #1: Digest: sha256:2ecc39c2bb96a5939b32a136d8b7b3bb3a10abd82cee5aadfede22e3cd91406b Step #1: Status: Downloaded newer image for gcr.io/oss-fuzz-base/base-builder-rust:latest Step #1: ---> 99940492e502 Step #1: Step 2/5 : RUN apt-get update && apt-get install -y cmake curl Step #1: ---> Running in b5ac77c467d0 Step #1: Get:1 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB] Step #1: Hit:2 http://ppa.launchpad.net/git-core/ppa/ubuntu focal InRelease Step #1: Hit:3 http://archive.ubuntu.com/ubuntu focal InRelease Step #1: Get:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB] Step #1: Get:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB] Step #1: Get:6 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1614 kB] Step #1: Get:7 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1085 kB] Step #1: Get:8 http://archive.ubuntu.com/ubuntu focal-updates/universe i386 Packages [796 kB] Step #1: Get:9 http://archive.ubuntu.com/ubuntu focal-updates/main i386 Packages [687 kB] Step #1: Fetched 4511 kB in 1s (3607 kB/s) Step #1: Reading package lists... Step #1: Reading package lists... Step #1: Building dependency tree... Step #1: Reading state information... Step #1: curl is already the newest version (7.68.0-1ubuntu2.7). Step #1: The following additional packages will be installed: Step #1: cmake-data libarchive13 libjsoncpp1 librhash0 libuv1 Step #1: Suggested packages: Step #1: cmake-doc ninja-build lrzip Step #1: The following NEW packages will be installed: Step #1: cmake cmake-data libarchive13 libjsoncpp1 librhash0 libuv1 Step #1: 0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded. Step #1: Need to get 5877 kB of archives. Step #1: After this operation, 29.5 MB of additional disk space will be used. Step #1: Get:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libuv1 amd64 1.34.2-1ubuntu1.3 [80.8 kB] Step #1: Get:2 http://archive.ubuntu.com/ubuntu focal/main amd64 cmake-data all 3.16.3-1ubuntu1 [1612 kB] Step #1: Get:3 http://archive.ubuntu.com/ubuntu focal/main amd64 libarchive13 amd64 3.4.0-2ubuntu1 [327 kB] Step #1: Get:4 http://archive.ubuntu.com/ubuntu focal/main amd64 libjsoncpp1 amd64 1.7.4-3.1ubuntu2 [75.6 kB] Step #1: Get:5 http://archive.ubuntu.com/ubuntu focal/main amd64 librhash0 amd64 1.3.9-1 [113 kB] Step #1: Get:6 http://archive.ubuntu.com/ubuntu focal/main amd64 cmake amd64 3.16.3-1ubuntu1 [3669 kB] Step #1: debconf: delaying package configuration, since apt-utils is not installed Step #1: Fetched 5877 kB in 1s (6224 kB/s) Step #1: Selecting previously unselected package libuv1:amd64. Step #1: (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 21266 files and directories currently installed.) Step #1: Preparing to unpack .../0-libuv1_1.34.2-1ubuntu1.3_amd64.deb ... Step #1: Unpacking libuv1:amd64 (1.34.2-1ubuntu1.3) ... Step #1: Selecting previously unselected package cmake-data. Step #1: Preparing to unpack .../1-cmake-data_3.16.3-1ubuntu1_all.deb ... Step #1: Unpacking cmake-data (3.16.3-1ubuntu1) ... Step #1: Selecting previously unselected package libarchive13:amd64. Step #1: Preparing to unpack .../2-libarchive13_3.4.0-2ubuntu1_amd64.deb ... Step #1: Unpacking libarchive13:amd64 (3.4.0-2ubuntu1) ... Step #1: Selecting previously unselected package libjsoncpp1:amd64. Step #1: Preparing to unpack .../3-libjsoncpp1_1.7.4-3.1ubuntu2_amd64.deb ... Step #1: Unpacking libjsoncpp1:amd64 (1.7.4-3.1ubuntu2) ... Step #1: Selecting previously unselected package librhash0:amd64. Step #1: Preparing to unpack .../4-librhash0_1.3.9-1_amd64.deb ... Step #1: Unpacking librhash0:amd64 (1.3.9-1) ... Step #1: Selecting previously unselected package cmake. Step #1: Preparing to unpack .../5-cmake_3.16.3-1ubuntu1_amd64.deb ... Step #1: Unpacking cmake (3.16.3-1ubuntu1) ... Step #1: Setting up libarchive13:amd64 (3.4.0-2ubuntu1) ... Step #1: Setting up libuv1:amd64 (1.34.2-1ubuntu1.3) ... Step #1: Setting up librhash0:amd64 (1.3.9-1) ... Step #1: Setting up cmake-data (3.16.3-1ubuntu1) ... Step #1: Setting up libjsoncpp1:amd64 (1.7.4-3.1ubuntu2) ... Step #1: Setting up cmake (3.16.3-1ubuntu1) ... Step #1: Processing triggers for libc-bin (2.31-0ubuntu9.2) ... Step #1: Removing intermediate container b5ac77c467d0 Step #1: ---> 39aa0c6a2162 Step #1: Step 3/5 : RUN git clone --depth 1 https://github.com/libra/libra $SRC/libra Step #1: ---> Running in e4a0065b4f2a Step #1: Cloning into '/src/libra'... Step #1: Removing intermediate container e4a0065b4f2a Step #1: ---> 62d40060aa39 Step #1: Step 4/5 : WORKDIR $SRC/libra Step #1: ---> Running in 16916fbebd68 Step #1: Removing intermediate container 16916fbebd68 Step #1: ---> 4fe47a0189d9 Step #1: Step 5/5 : COPY build.sh $SRC/ Step #1: ---> 404f5a4158e3 Step #1: Successfully built 404f5a4158e3 Step #1: Successfully tagged gcr.io/oss-fuzz/libra:latest Finished Step #1 Starting Step #2 - "srcmap" Step #2 - "srcmap": Already have image: gcr.io/oss-fuzz/libra Step #2 - "srcmap": ++ tempfile Step #2 - "srcmap": + SRCMAP=/tmp/fileSJUy5M Step #2 - "srcmap": + echo '{}' Step #2 - "srcmap": + PATHS_TO_SCAN=/src Step #2 - "srcmap": + [[ rust == \g\o ]] Step #2 - "srcmap": ++ find /src -name .git -type d Step #2 - "srcmap": + for DOT_GIT_DIR in $(find $PATHS_TO_SCAN -name ".git" -type d) Step #2 - "srcmap": ++ dirname /src/libra/.git Step #2 - "srcmap": + GIT_DIR=/src/libra Step #2 - "srcmap": + cd /src/libra Step #2 - "srcmap": ++ git config --get remote.origin.url Step #2 - "srcmap": + GIT_URL=https://github.com/libra/libra Step #2 - "srcmap": ++ git rev-parse HEAD Step #2 - "srcmap": + GIT_REV=afdf9e9bd4ef88e41ab4d7cdb8a950936d0b0023 Step #2 - "srcmap": + jq_inplace /tmp/fileSJUy5M '."/src/libra" = { type: "git", url: "https://github.com/libra/libra", rev: "afdf9e9bd4ef88e41ab4d7cdb8a950936d0b0023" }' Step #2 - "srcmap": ++ tempfile Step #2 - "srcmap": + F=/tmp/fileHdJoo9 Step #2 - "srcmap": + cat /tmp/fileSJUy5M Step #2 - "srcmap": + jq '."/src/libra" = { type: "git", url: "https://github.com/libra/libra", rev: "afdf9e9bd4ef88e41ab4d7cdb8a950936d0b0023" }' Step #2 - "srcmap": + mv /tmp/fileHdJoo9 /tmp/fileSJUy5M Step #2 - "srcmap": + for DOT_GIT_DIR in $(find $PATHS_TO_SCAN -name ".git" -type d) Step #2 - "srcmap": ++ dirname /src/aflplusplus/.git Step #2 - "srcmap": + GIT_DIR=/src/aflplusplus Step #2 - "srcmap": + cd /src/aflplusplus Step #2 - "srcmap": ++ git config --get remote.origin.url Step #2 - "srcmap": + GIT_URL=https://github.com/AFLplusplus/AFLplusplus.git Step #2 - "srcmap": ++ git rev-parse HEAD Step #2 - "srcmap": + GIT_REV=4fe572b80f76ff0b0e916b639d1e04d5af48b157 Step #2 - "srcmap": + jq_inplace /tmp/fileSJUy5M '."/src/aflplusplus" = { type: "git", url: "https://github.com/AFLplusplus/AFLplusplus.git", rev: "4fe572b80f76ff0b0e916b639d1e04d5af48b157" }' Step #2 - "srcmap": ++ tempfile Step #2 - "srcmap": + F=/tmp/file7ljf4J Step #2 - "srcmap": + cat /tmp/fileSJUy5M Step #2 - "srcmap": + jq '."/src/aflplusplus" = { type: "git", url: "https://github.com/AFLplusplus/AFLplusplus.git", rev: "4fe572b80f76ff0b0e916b639d1e04d5af48b157" }' Step #2 - "srcmap": + mv /tmp/file7ljf4J /tmp/fileSJUy5M Step #2 - "srcmap": ++ find /src -name .svn -type d Step #2 - "srcmap": ++ find /src -name .hg -type d Step #2 - "srcmap": + '[' '' '!=' '' ']' Step #2 - "srcmap": + cat /tmp/fileSJUy5M Step #2 - "srcmap": + rm /tmp/fileSJUy5M Step #2 - "srcmap": { Step #2 - "srcmap": "/src/libra": { Step #2 - "srcmap": "type": "git", Step #2 - "srcmap": "url": "https://github.com/libra/libra", Step #2 - "srcmap": "rev": "afdf9e9bd4ef88e41ab4d7cdb8a950936d0b0023" Step #2 - "srcmap": }, Step #2 - "srcmap": "/src/aflplusplus": { Step #2 - "srcmap": "type": "git", Step #2 - "srcmap": "url": "https://github.com/AFLplusplus/AFLplusplus.git", Step #2 - "srcmap": "rev": "4fe572b80f76ff0b0e916b639d1e04d5af48b157" Step #2 - "srcmap": } Step #2 - "srcmap": } Finished Step #2 - "srcmap" Starting Step #3 - "compile-libfuzzer-coverage-x86_64" Step #3 - "compile-libfuzzer-coverage-x86_64": Already have image: gcr.io/oss-fuzz/libra Step #3 - "compile-libfuzzer-coverage-x86_64": --------------------------------------------------------------- Step #3 - "compile-libfuzzer-coverage-x86_64": Compiling libFuzzer to /usr/lib/libFuzzingEngine.a... done. Step #3 - "compile-libfuzzer-coverage-x86_64": --------------------------------------------------------------- Step #3 - "compile-libfuzzer-coverage-x86_64": CC=clang Step #3 - "compile-libfuzzer-coverage-x86_64": CXX=clang++ Step #3 - "compile-libfuzzer-coverage-x86_64": CFLAGS=-O1 -fno-omit-frame-pointer -gline-tables-only -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -fprofile-instr-generate -fcoverage-mapping -pthread -Wl,--no-as-needed -Wl,-ldl -Wl,-lm -Wno-unused-command-line-argument Step #3 - "compile-libfuzzer-coverage-x86_64": CXXFLAGS=-O1 -fno-omit-frame-pointer -gline-tables-only -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -fprofile-instr-generate -fcoverage-mapping -pthread -Wl,--no-as-needed -Wl,-ldl -Wl,-lm -Wno-unused-command-line-argument -stdlib=libc++ Step #3 - "compile-libfuzzer-coverage-x86_64": RUSTFLAGS=--cfg fuzzing -Cdebuginfo=1 -Cforce-frame-pointers -Zinstrument-coverage -C link-arg=-lc++ Step #3 - "compile-libfuzzer-coverage-x86_64": --------------------------------------------------------------- Step #3 - "compile-libfuzzer-coverage-x86_64": info: syncing channel updates for '1.54.0-x86_64-unknown-linux-gnu' Step #3 - "compile-libfuzzer-coverage-x86_64": info: latest update on 2021-07-29, rust version 1.54.0 (a178d0322 2021-07-26) Step #3 - "compile-libfuzzer-coverage-x86_64": info: downloading component 'cargo' Step #3 - "compile-libfuzzer-coverage-x86_64": info: downloading component 'rust-std' Step #3 - "compile-libfuzzer-coverage-x86_64": info: downloading component 'rustc' Step #3 - "compile-libfuzzer-coverage-x86_64": info: installing component 'cargo' Step #3 - "compile-libfuzzer-coverage-x86_64": info: installing component 'rust-std' Step #3 - "compile-libfuzzer-coverage-x86_64": info: installing component 'rustc' Step #3 - "compile-libfuzzer-coverage-x86_64": + export 'CFLAGS=-O1 -fno-omit-frame-pointer -gline-tables-only -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION' Step #3 - "compile-libfuzzer-coverage-x86_64": + CFLAGS='-O1 -fno-omit-frame-pointer -gline-tables-only -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION' Step #3 - "compile-libfuzzer-coverage-x86_64": + export CXXFLAGS_EXTRA=-stdlib=libc++ Step #3 - "compile-libfuzzer-coverage-x86_64": + CXXFLAGS_EXTRA=-stdlib=libc++ Step #3 - "compile-libfuzzer-coverage-x86_64": + export 'CXXFLAGS=-O1 -fno-omit-frame-pointer -gline-tables-only -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -stdlib=libc++' Step #3 - "compile-libfuzzer-coverage-x86_64": + CXXFLAGS='-O1 -fno-omit-frame-pointer -gline-tables-only -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -stdlib=libc++' Step #3 - "compile-libfuzzer-coverage-x86_64": + cd /src/libra/testsuite/libra-fuzzer Step #3 - "compile-libfuzzer-coverage-x86_64": /src/build.sh: line 32: cd: /src/libra/testsuite/libra-fuzzer: No such file or directory Step #3 - "compile-libfuzzer-coverage-x86_64": ******************************************************************************** Step #3 - "compile-libfuzzer-coverage-x86_64": Failed to build. Step #3 - "compile-libfuzzer-coverage-x86_64": To reproduce, run: Step #3 - "compile-libfuzzer-coverage-x86_64": python infra/helper.py build_image libra Step #3 - "compile-libfuzzer-coverage-x86_64": python infra/helper.py build_fuzzers --sanitizer coverage --engine libfuzzer --architecture x86_64 libra Step #3 - "compile-libfuzzer-coverage-x86_64": ******************************************************************************** Finished Step #3 - "compile-libfuzzer-coverage-x86_64" ERROR ERROR: build step 3 "gcr.io/oss-fuzz/libra" failed: step exited with non-zero status: 1