starting build "6c1ea4be-69f4-4c57-bea1-8b67d884eaa5" 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 10.24kB Step #1: Step 1/4 : FROM gcr.io/oss-fuzz-base/base-builder-go Step #1: latest: Pulling from oss-fuzz-base/base-builder-go Step #1: b549f31133a9: Pulling fs layer Step #1: 51df0d6876cd: Pulling fs layer Step #1: 38da3118a46e: Pulling fs layer Step #1: ec67c84a6d76: Pulling fs layer Step #1: 8bb7dd1116ca: Pulling fs layer Step #1: 1fb4fb3d2b01: Pulling fs layer Step #1: a7d3a0578149: Pulling fs layer Step #1: 23e3013e5b98: Pulling fs layer Step #1: 50e1ee57936a: Pulling fs layer Step #1: b46b6cdbb6f2: Pulling fs layer Step #1: c0d18e8fb1fa: Pulling fs layer Step #1: 29a663a40ba4: Pulling fs layer Step #1: d57e2535d3c0: Pulling fs layer Step #1: e530a9eecf2b: Pulling fs layer Step #1: 4f27abcdaf5d: Pulling fs layer Step #1: 81adce140048: Pulling fs layer Step #1: 1eaaa1542342: Pulling fs layer Step #1: 6becd2001539: Pulling fs layer Step #1: 22d4835417b0: Pulling fs layer Step #1: 23e3013e5b98: Waiting Step #1: 8bb7dd1116ca: Waiting Step #1: ec67c84a6d76: Waiting Step #1: 50e1ee57936a: Waiting Step #1: b46b6cdbb6f2: Waiting Step #1: 601a9cbfd137: Pulling fs layer Step #1: 972df7da24e8: Pulling fs layer Step #1: c0d18e8fb1fa: Waiting Step #1: 1fb4fb3d2b01: Waiting Step #1: 535ecd0613d1: Pulling fs layer Step #1: 29a663a40ba4: Waiting Step #1: 6becd2001539: Waiting Step #1: 16949380c6e4: Pulling fs layer Step #1: 22d4835417b0: Waiting Step #1: a7d3a0578149: Waiting Step #1: d57e2535d3c0: Waiting Step #1: 81adce140048: Waiting Step #1: da4104990ff0: Pulling fs layer Step #1: 4f27abcdaf5d: Waiting Step #1: c19b7fe83e8a: Pulling fs layer Step #1: 3c6277aa8e2b: Pulling fs layer Step #1: e530a9eecf2b: Waiting Step #1: bcf869ca811e: Pulling fs layer Step #1: 601a9cbfd137: Waiting Step #1: 972df7da24e8: Waiting Step #1: 535ecd0613d1: Waiting Step #1: 4a49dc7a9851: Pulling fs layer Step #1: c19b7fe83e8a: Waiting Step #1: 16949380c6e4: Waiting Step #1: de9ad109123c: Pulling fs layer Step #1: d74dccfeea37: Pulling fs layer Step #1: 9650ce23f886: Pulling fs layer Step #1: eaeb815cd75a: Pulling fs layer Step #1: 3ccdc7b565ee: Pulling fs layer Step #1: 11c03f65d6c1: Pulling fs layer Step #1: e6ee04fb6b22: Pulling fs layer Step #1: ec9eb7fda120: Pulling fs layer Step #1: 92c5a6b4f98c: Pulling fs layer Step #1: 3ccdc7b565ee: Waiting Step #1: 92c5a6b4f98c: Waiting Step #1: ec9eb7fda120: Waiting Step #1: 4a49dc7a9851: Waiting Step #1: e6ee04fb6b22: Waiting Step #1: 9650ce23f886: Waiting Step #1: de9ad109123c: Waiting Step #1: 3c6277aa8e2b: Waiting Step #1: 38da3118a46e: Verifying Checksum Step #1: 38da3118a46e: Download complete Step #1: b549f31133a9: Verifying Checksum Step #1: b549f31133a9: Download complete Step #1: 8bb7dd1116ca: Verifying Checksum Step #1: 8bb7dd1116ca: Download complete Step #1: ec67c84a6d76: Verifying Checksum Step #1: ec67c84a6d76: Download complete Step #1: 1fb4fb3d2b01: Verifying Checksum Step #1: 1fb4fb3d2b01: Download complete Step #1: 51df0d6876cd: Verifying Checksum Step #1: 51df0d6876cd: Download complete Step #1: 23e3013e5b98: Verifying Checksum Step #1: 23e3013e5b98: Download complete Step #1: 50e1ee57936a: Verifying Checksum Step #1: 50e1ee57936a: Download complete Step #1: b549f31133a9: Pull complete Step #1: c0d18e8fb1fa: Verifying Checksum Step #1: c0d18e8fb1fa: Download complete Step #1: 29a663a40ba4: Verifying Checksum Step #1: 29a663a40ba4: Download complete Step #1: d57e2535d3c0: Verifying Checksum Step #1: d57e2535d3c0: Download complete Step #1: e530a9eecf2b: Verifying Checksum Step #1: e530a9eecf2b: Download complete Step #1: 4f27abcdaf5d: Verifying Checksum Step #1: 4f27abcdaf5d: Download complete Step #1: 81adce140048: Verifying Checksum Step #1: 81adce140048: Download complete Step #1: b46b6cdbb6f2: Verifying Checksum Step #1: b46b6cdbb6f2: Download complete Step #1: 1eaaa1542342: Verifying Checksum Step #1: 1eaaa1542342: Download complete Step #1: 6becd2001539: Verifying Checksum Step #1: 6becd2001539: Download complete Step #1: 22d4835417b0: Verifying Checksum Step #1: 22d4835417b0: Download complete Step #1: 601a9cbfd137: Verifying Checksum Step #1: 601a9cbfd137: Download complete Step #1: a7d3a0578149: Verifying Checksum Step #1: a7d3a0578149: Download complete Step #1: 972df7da24e8: Verifying Checksum Step #1: 972df7da24e8: Download complete Step #1: 535ecd0613d1: Download complete Step #1: 16949380c6e4: Verifying Checksum Step #1: 16949380c6e4: Download complete Step #1: da4104990ff0: Verifying Checksum Step #1: da4104990ff0: Download complete Step #1: c19b7fe83e8a: Verifying Checksum Step #1: c19b7fe83e8a: Download complete Step #1: 3c6277aa8e2b: Verifying Checksum Step #1: 3c6277aa8e2b: Download complete Step #1: bcf869ca811e: Verifying Checksum Step #1: bcf869ca811e: Download complete Step #1: 4a49dc7a9851: Verifying Checksum Step #1: 4a49dc7a9851: Download complete Step #1: de9ad109123c: Verifying Checksum Step #1: de9ad109123c: Download complete Step #1: 9650ce23f886: Download complete Step #1: d74dccfeea37: Verifying Checksum Step #1: d74dccfeea37: Download complete Step #1: eaeb815cd75a: Verifying Checksum Step #1: eaeb815cd75a: Download complete Step #1: 51df0d6876cd: Pull complete Step #1: 3ccdc7b565ee: Verifying Checksum Step #1: 3ccdc7b565ee: Download complete Step #1: 11c03f65d6c1: Verifying Checksum Step #1: 11c03f65d6c1: Download complete Step #1: 38da3118a46e: Pull complete Step #1: e6ee04fb6b22: Verifying Checksum Step #1: e6ee04fb6b22: Download complete Step #1: 92c5a6b4f98c: Download complete Step #1: ec67c84a6d76: Pull complete Step #1: 8bb7dd1116ca: Pull complete Step #1: 1fb4fb3d2b01: Pull complete Step #1: ec9eb7fda120: Verifying Checksum Step #1: ec9eb7fda120: Download complete Step #1: a7d3a0578149: Pull complete Step #1: 23e3013e5b98: Pull complete Step #1: 50e1ee57936a: Pull complete Step #1: b46b6cdbb6f2: Pull complete Step #1: c0d18e8fb1fa: Pull complete Step #1: 29a663a40ba4: Pull complete Step #1: d57e2535d3c0: Pull complete Step #1: e530a9eecf2b: Pull complete Step #1: 4f27abcdaf5d: Pull complete Step #1: 81adce140048: Pull complete Step #1: 1eaaa1542342: Pull complete Step #1: 6becd2001539: Pull complete Step #1: 22d4835417b0: Pull complete Step #1: 601a9cbfd137: Pull complete Step #1: 972df7da24e8: Pull complete Step #1: 535ecd0613d1: Pull complete Step #1: 16949380c6e4: Pull complete Step #1: da4104990ff0: Pull complete Step #1: c19b7fe83e8a: Pull complete Step #1: 3c6277aa8e2b: Pull complete Step #1: bcf869ca811e: Pull complete Step #1: 4a49dc7a9851: Pull complete Step #1: de9ad109123c: Pull complete Step #1: d74dccfeea37: Pull complete Step #1: 9650ce23f886: Pull complete Step #1: eaeb815cd75a: Pull complete Step #1: 3ccdc7b565ee: Pull complete Step #1: 11c03f65d6c1: Pull complete Step #1: e6ee04fb6b22: Pull complete Step #1: ec9eb7fda120: Pull complete Step #1: 92c5a6b4f98c: Pull complete Step #1: Digest: sha256:62f10f6b26d6227806d82477b0bf67b00ae52887368a9fa25648006152af5ef8 Step #1: Status: Downloaded newer image for gcr.io/oss-fuzz-base/base-builder-go:latest Step #1: ---> 565213b65e20 Step #1: Step 2/4 : RUN git clone --depth 1 https://github.com/pingcap/tidb Step #1: ---> Running in abe8888d99ec Step #1: Cloning into 'tidb'... Step #1: Removing intermediate container abe8888d99ec Step #1: ---> caf5cd4a4bff Step #1: Step 3/4 : COPY build.sh fuzzMarshalJSON.go fuzzNewBitLiteral.go fuzzNewHexLiteral.go $SRC/ Step #1: ---> 5d7ed5bd9fa4 Step #1: Step 4/4 : WORKDIR $SRC/tidb Step #1: ---> Running in 049036f63f80 Step #1: Removing intermediate container 049036f63f80 Step #1: ---> a6a5c4cb7f70 Step #1: Successfully built a6a5c4cb7f70 Step #1: Successfully tagged gcr.io/oss-fuzz/tidb:latest Finished Step #1 Starting Step #2 - "srcmap" Step #2 - "srcmap": Already have image: gcr.io/oss-fuzz/tidb Step #2 - "srcmap": ++ tempfile Step #2 - "srcmap": + SRCMAP=/tmp/fileB4B9ZN Step #2 - "srcmap": + echo '{}' Step #2 - "srcmap": + PATHS_TO_SCAN=/src Step #2 - "srcmap": + [[ go == \g\o ]] Step #2 - "srcmap": + PATHS_TO_SCAN='/src /root/go' Step #2 - "srcmap": ++ find /src /root/go -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/tidb/.git Step #2 - "srcmap": + GIT_DIR=/src/tidb Step #2 - "srcmap": + cd /src/tidb Step #2 - "srcmap": ++ git config --get remote.origin.url Step #2 - "srcmap": + GIT_URL=https://github.com/pingcap/tidb Step #2 - "srcmap": ++ git rev-parse HEAD Step #2 - "srcmap": + GIT_REV=14e99eab84426fede2d56ee2076ec25c5d729e73 Step #2 - "srcmap": + jq_inplace /tmp/fileB4B9ZN '."/src/tidb" = { type: "git", url: "https://github.com/pingcap/tidb", rev: "14e99eab84426fede2d56ee2076ec25c5d729e73" }' Step #2 - "srcmap": ++ tempfile Step #2 - "srcmap": + F=/tmp/file3GJ2ob Step #2 - "srcmap": + cat /tmp/fileB4B9ZN Step #2 - "srcmap": + jq '."/src/tidb" = { type: "git", url: "https://github.com/pingcap/tidb", rev: "14e99eab84426fede2d56ee2076ec25c5d729e73" }' Step #2 - "srcmap": + mv /tmp/file3GJ2ob /tmp/fileB4B9ZN Step #2 - "srcmap": ++ find /src /root/go -name .svn -type d Step #2 - "srcmap": ++ find /src /root/go -name .hg -type d Step #2 - "srcmap": + '[' '' '!=' '' ']' Step #2 - "srcmap": + cat /tmp/fileB4B9ZN Step #2 - "srcmap": + rm /tmp/fileB4B9ZN Step #2 - "srcmap": { Step #2 - "srcmap": "/src/tidb": { Step #2 - "srcmap": "type": "git", Step #2 - "srcmap": "url": "https://github.com/pingcap/tidb", Step #2 - "srcmap": "rev": "14e99eab84426fede2d56ee2076ec25c5d729e73" Step #2 - "srcmap": } Step #2 - "srcmap": } Finished Step #2 - "srcmap" Starting Step #3 - "compile-libfuzzer-address-x86_64" Step #3 - "compile-libfuzzer-address-x86_64": Already have image (with digest): gcr.io/cloud-builders/docker Step #3 - "compile-libfuzzer-address-x86_64": --------------------------------------------------------------- Step #3 - "compile-libfuzzer-address-x86_64": vm.mmap_rnd_bits = 28 Step #3 - "compile-libfuzzer-address-x86_64": Compiling libFuzzer to /usr/lib/libFuzzingEngine.a... done. Step #3 - "compile-libfuzzer-address-x86_64": --------------------------------------------------------------- Step #3 - "compile-libfuzzer-address-x86_64": CC=clang Step #3 - "compile-libfuzzer-address-x86_64": CXX=clang++ -lresolv Step #3 - "compile-libfuzzer-address-x86_64": CFLAGS=-O1 -fno-omit-frame-pointer -gline-tables-only -Wno-error=enum-constexpr-conversion -Wno-error=incompatible-function-pointer-types -Wno-error=int-conversion -Wno-error=deprecated-declarations -Wno-error=implicit-function-declaration -Wno-error=implicit-int -Wno-error=vla-cxx-extension -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -fsanitize=address -fsanitize-address-use-after-scope -fsanitize=fuzzer-no-link Step #3 - "compile-libfuzzer-address-x86_64": CXXFLAGS=-O1 -fno-omit-frame-pointer -gline-tables-only -Wno-error=enum-constexpr-conversion -Wno-error=incompatible-function-pointer-types -Wno-error=int-conversion -Wno-error=deprecated-declarations -Wno-error=implicit-function-declaration -Wno-error=implicit-int -Wno-error=vla-cxx-extension -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -fsanitize=address -fsanitize-address-use-after-scope -fsanitize=fuzzer-no-link -stdlib=libc++ Step #3 - "compile-libfuzzer-address-x86_64": RUSTFLAGS=--cfg fuzzing -Zsanitizer=address -Cdebuginfo=1 -Cforce-frame-pointers Step #3 - "compile-libfuzzer-address-x86_64": --------------------------------------------------------------- Step #3 - "compile-libfuzzer-address-x86_64": + mv /src/fuzzMarshalJSON.go /src/tidb/pkg/types/ Step #3 - "compile-libfuzzer-address-x86_64": + mv /src/fuzzNewBitLiteral.go /src/tidb/pkg/types/ Step #3 - "compile-libfuzzer-address-x86_64": + mv /src/fuzzNewHexLiteral.go /src/tidb/pkg/types/ Step #3 - "compile-libfuzzer-address-x86_64": + compile_go_fuzzer github.com/pingcap/tidb/pkg/types FuzzUnmarshalJSON fuzzUnmarshalJSON Step #3 - "compile-libfuzzer-address-x86_64": /usr/local/bin/compile_go_fuzzer: line 28: cd: /root/go/src/github.com/pingcap/tidb/pkg/types: No such file or directory Step #3 - "compile-libfuzzer-address-x86_64": go: downloading go1.23 (linux/amd64) Step #3 - "compile-libfuzzer-address-x86_64": go: download go1.23 for linux/amd64: toolchain not available Step #3 - "compile-libfuzzer-address-x86_64": go: downloading go1.23 (linux/amd64) Step #3 - "compile-libfuzzer-address-x86_64": go: download go1.23 for linux/amd64: toolchain not available Step #3 - "compile-libfuzzer-address-x86_64": /usr/local/bin/compile_go_fuzzer: line 32: cd: github.com/pingcap/tidb@*: No such file or directory Step #3 - "compile-libfuzzer-address-x86_64": /src/tidb Step #3 - "compile-libfuzzer-address-x86_64": go: downloading go1.23 (linux/amd64) Step #3 - "compile-libfuzzer-address-x86_64": go: download go1.23 for linux/amd64: toolchain not available Step #3 - "compile-libfuzzer-address-x86_64": go: downloading go1.23 (linux/amd64) Step #3 - "compile-libfuzzer-address-x86_64": go: download go1.23 for linux/amd64: toolchain not available Step #3 - "compile-libfuzzer-address-x86_64": Running go-fuzz -tags gofuzz -func FuzzUnmarshalJSON -o fuzzUnmarshalJSON.a github.com/pingcap/tidb/pkg/types Step #3 - "compile-libfuzzer-address-x86_64": 2024/11/20 06:04:32 failed to load packages:go [-e -json -compiled=false -test=false -export=false -deps=false -find=true -buildmode c-archive -gcflags all=-d=libfuzzer -tags gofuzz,gofuzz_libfuzzer,libfuzzer,gofuzz -trimpath -gcflags syscall=-d=libfuzzer=0 -- github.com/pingcap/tidb/pkg/types]: exit status 1: go: downloading go1.23 (linux/amd64) Step #3 - "compile-libfuzzer-address-x86_64": go: download go1.23 for linux/amd64: toolchain not available Step #3 - "compile-libfuzzer-address-x86_64": ******************************************************************************** Step #3 - "compile-libfuzzer-address-x86_64": Failed to build. Step #3 - "compile-libfuzzer-address-x86_64": To reproduce, run: Step #3 - "compile-libfuzzer-address-x86_64": python infra/helper.py build_image tidb Step #3 - "compile-libfuzzer-address-x86_64": python infra/helper.py build_fuzzers --sanitizer address --engine libfuzzer --architecture x86_64 tidb Step #3 - "compile-libfuzzer-address-x86_64": ******************************************************************************** Finished Step #3 - "compile-libfuzzer-address-x86_64" ERROR ERROR: build step 3 "gcr.io/cloud-builders/docker" failed: step exited with non-zero status: 1