linux-amd64-race at 64056b67eb7e47a8b7658832b61557eab90c9fa6 :: Running /workdir/go/src/make.bash with args ["/workdir/go/src/make.bash"] and env ["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" "HOSTNAME=buildlet-linux-amd64-bullseye-rnc6567d2" "DEBIAN_FRONTEND=noninteractive" "HOME=/root" "USER=root" "GO_STAGE0_NET_DELAY=0s" "GO_STAGE0_DL_DELAY=200ms" "WORKDIR=/workdir" "GOROOT_BOOTSTRAP=/workdir/go1.4" "GO_BUILDER_NAME=linux-amd64-race" "GO_DISABLE_OUTBOUND_NETWORK=1" "GOBIN=" "TMPDIR=/workdir/tmp" "GOCACHE=/workdir/gocache" "PWD=/workdir/go/src"] in dir /workdir/go/src Building Go cmd/dist using /workdir/go1.4. (go1.17.13 linux/amd64) Building Go toolchain1 using /workdir/go1.4. Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1. Building Go toolchain2 using go_bootstrap and Go toolchain1. Building Go toolchain3 using go_bootstrap and Go toolchain2. Building packages and commands for linux/amd64. --- Installed Go for linux/amd64 in /workdir/go Installed commands in /workdir/go/bin :: Running /workdir/go/bin/go with args ["/workdir/go/bin/go" "install" "-race" "std"] and env ["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" "HOSTNAME=buildlet-linux-amd64-bullseye-rnc6567d2" "DEBIAN_FRONTEND=noninteractive" "HOME=/root" "USER=root" "GO_STAGE0_NET_DELAY=0s" "GO_STAGE0_DL_DELAY=200ms" "WORKDIR=/workdir" "GOROOT_BOOTSTRAP=/workdir/go1.4" "GO_BUILDER_NAME=linux-amd64-race" "GO_DISABLE_OUTBOUND_NETWORK=1" "GOBIN=" "TMPDIR=/workdir/tmp" "GOCACHE=/workdir/gocache" "PWD=/workdir/go/bin"] in dir /workdir/go/bin ##### Test execution environment. # GOARCH: amd64 # CPU: Intel(R) Xeon(R) CPU @ 2.20GHz # GOOS: linux # OS Version: Linux 5.10.133+ #1 SMP Wed Aug 3 14:42:50 UTC 2022 x86_64 ##### Testing packages. ok archive/tar 0.102s ok archive/zip 2.302s ok bufio 0.325s ok bytes 4.432s ok compress/bzip2 0.528s ok compress/flate 5.507s ok compress/gzip 11.859s ok compress/lzw 0.594s ok compress/zlib 4.935s ok container/heap 0.040s ok container/list 0.029s ok container/ring 0.031s ok context 0.048s ok crypto 0.027s ok crypto/aes 0.062s ok crypto/cipher 0.059s ok crypto/des 0.059s ok crypto/dsa 0.029s ok crypto/ecdh 0.201s ok crypto/ecdsa 0.039s ok crypto/ed25519 0.384s ok crypto/elliptic 0.059s ok crypto/hmac 0.039s ok crypto/internal/boring 0.029s ok crypto/internal/boring/bcache 0.277s ok crypto/internal/edwards25519 35.651s ok crypto/internal/edwards25519/field 12.728s ok crypto/internal/nistec 3.905s ok crypto/internal/nistec/fiat 0.025s [no tests to run] ok crypto/internal/subtle 0.029s ok crypto/md5 0.042s ok crypto/rand 0.443s ok crypto/rc4 0.464s ok crypto/rsa 0.334s ok crypto/sha1 0.049s ok crypto/sha256 0.039s ok crypto/sha512 0.039s ok crypto/subtle 0.039s ok crypto/tls 1.243s ok crypto/x509 0.916s ok database/sql 0.353s ok database/sql/driver 0.029s ok debug/buildinfo 0.027s ok debug/dwarf 0.090s ok debug/elf 0.088s ok debug/gosym 0.319s ok debug/macho 0.040s ok debug/pe 0.059s ok debug/plan9obj 0.029s ok embed 0.029s [no tests to run] ok embed/internal/embedtest 0.028s ok encoding/ascii85 0.039s ok encoding/asn1 0.039s ok encoding/base32 0.081s ok encoding/base64 0.039s ok encoding/binary 0.039s ok encoding/csv 0.070s ok encoding/gob 0.111s ok encoding/hex 0.038s ok encoding/json 1.210s ok encoding/pem 2.402s ok encoding/xml 0.234s ok errors 0.040s ok expvar 0.030s ok flag 0.136s ok fmt 0.557s ok go/ast 0.039s ok go/build 2.938s ok go/build/constraint 0.036s ok go/constant 0.039s ok go/doc 0.248s ok go/doc/comment 1.894s ok go/format 0.062s ok go/importer 0.063s ok go/internal/gccgoimporter 0.060s ok go/internal/gcimporter 7.863s ok go/internal/srcimporter 10.145s ok go/parser 0.819s ok go/printer 1.207s ok go/scanner 0.039s ok go/token 0.132s ok go/types 28.903s ok hash 0.031s ok hash/adler32 0.059s ok hash/crc32 0.070s ok hash/crc64 0.041s ok hash/fnv 0.030s ok hash/maphash 0.343s ok html 0.029s ok html/template 0.293s ok image 0.425s ok image/color 0.051s ok image/draw 0.535s ok image/gif 54.619s ok image/jpeg 23.522s ok image/png 1.830s ok index/suffixarray 1.005s ok internal/abi 0.052s ok internal/buildcfg 0.030s ok internal/cpu 0.088s ok internal/dag 0.029s ok internal/diff 0.031s ok internal/fmtsort 0.029s ok internal/fuzz 0.049s ok internal/godebug 0.028s ok internal/intern 0.267s ok internal/itoa 0.029s ok internal/poll 0.527s ok internal/profile 0.028s ok internal/reflectlite 0.244s ok internal/saferio 0.035s ok internal/singleflight 0.040s ok internal/trace 0.162s ok internal/unsafeheader 0.029s ok internal/xcoff 0.063s ok io 0.063s ok io/fs 0.267s ok io/ioutil 0.039s ok log 0.043s ok log/syslog 1.255s ok math 0.051s ok math/big 3.086s ok math/bits 0.039s ok math/cmplx 0.031s ok math/rand 1.971s ok mime 0.060s ok mime/multipart 1.568s ok mime/quotedprintable 0.055s ok net 10.865s ok net/http 6.783s ok net/http/cgi 0.551s ok net/http/cookiejar 0.042s ok net/http/fcgi 0.150s ok net/http/httptest 0.124s ok net/http/httptrace 0.029s ok net/http/httputil 0.678s ok net/http/internal 0.039s ok net/http/internal/ascii 0.029s ok net/http/pprof 5.215s ok net/internal/socktest 0.030s ok net/mail 0.039s ok net/netip 0.365s ok net/rpc 0.076s ok net/rpc/jsonrpc 0.041s ok net/smtp 0.060s ok net/textproto 0.029s ok net/url 0.049s ok os 0.934s ok os/exec 1.334s ok os/exec/internal/fdtest 0.029s ok os/signal 2.331s ok os/user 0.029s ok path 0.031s ok path/filepath 0.087s ok plugin 0.029s ok reflect 0.576s ok regexp 0.374s ok regexp/syntax 1.720s ok runtime 27.267s ok runtime/cgo 0.028s ok runtime/debug 0.115s ok runtime/internal/atomic 0.085s ok runtime/internal/math 0.028s ok runtime/internal/sys 0.028s ok runtime/metrics 0.029s ok runtime/pprof 8.349s ok runtime/race 22.896s ok runtime/trace 3.189s ok sort 0.414s ok strconv 2.240s ok strings 2.850s ok sync 0.479s ok sync/atomic 1.805s ok syscall 0.328s ok testing 0.709s ok testing/fstest 0.029s ok testing/iotest 0.029s ok testing/quick 0.185s ok text/scanner 0.040s ok text/tabwriter 0.039s ok text/template 0.153s ok text/template/parse 0.060s ok time 2.325s ok unicode 0.039s ok unicode/utf16 0.029s ok unicode/utf8 0.049s ok cmd/addr2line 1.573s ok cmd/api 5.617s ok cmd/asm/internal/asm 2.935s ok cmd/asm/internal/lex 0.039s ok cmd/compile/internal/abt 0.061s ok cmd/compile/internal/amd64 48.511s ok cmd/compile/internal/dwarfgen 0.412s ok cmd/compile/internal/importer 2.074s ok cmd/compile/internal/ir 0.029s ok cmd/compile/internal/logopt 0.258s ok cmd/compile/internal/noder 0.040s ok cmd/compile/internal/reflectdata 0.029s [no tests to run] ok cmd/compile/internal/ssa 14.573s ok cmd/compile/internal/syntax 0.145s ok cmd/compile/internal/test 11.101s ok cmd/compile/internal/typecheck 0.266s ok cmd/compile/internal/types 0.030s ok cmd/compile/internal/types2 4.096s ok cmd/cover 1.642s ok cmd/dist 0.029s ok cmd/doc 0.455s ok cmd/fix 0.481s go test proxy running at GOPROXY=http://127.0.0.1:39417/mod ================== WARNING: DATA RACE Read at 0x000001406340 by goroutine 275: cmd/go/internal/base.AtExit() /workdir/go/src/cmd/go/internal/base/base.go:110 +0x5d0 cmd/go/internal/work.(*Builder).Init() /workdir/go/src/cmd/go/internal/work/action.go:273 +0x54c cmd/go_test.(*testScript).cmdCc() /workdir/go/src/cmd/go/script_test.go:560 +0x12f cmd/go_test.(*testScript).run() /workdir/go/src/cmd/go/script_test.go:445 +0xa09 cmd/go_test.TestScript.func1() /workdir/go/src/cmd/go/script_test.go:97 +0x3d5 testing.tRunner() /workdir/go/src/testing/testing.go:1446 +0x216 testing.(*T).Run.func1() /workdir/go/src/testing/testing.go:1493 +0x47 Previous write at 0x000001406340 by goroutine 274: cmd/go/internal/base.AtExit() /workdir/go/src/cmd/go/internal/base/base.go:110 +0x678 cmd/go/internal/work.(*Builder).Init() /workdir/go/src/cmd/go/internal/work/action.go:273 +0x54c cmd/go_test.(*testScript).cmdCc() /workdir/go/src/cmd/go/script_test.go:560 +0x12f cmd/go_test.(*testScript).run() /workdir/go/src/cmd/go/script_test.go:445 +0xa09 cmd/go_test.TestScript.func1() /workdir/go/src/cmd/go/script_test.go:97 +0x3d5 testing.tRunner() /workdir/go/src/testing/testing.go:1446 +0x216 testing.(*T).Run.func1() /workdir/go/src/testing/testing.go:1493 +0x47 Goroutine 275 (running) created at: testing.(*T).Run() /workdir/go/src/testing/testing.go:1493 +0x75d cmd/go_test.TestScript() /workdir/go/src/cmd/go/script_test.go:81 +0x624 testing.tRunner() /workdir/go/src/testing/testing.go:1446 +0x216 testing.(*T).Run.func1() /workdir/go/src/testing/testing.go:1493 +0x47 Goroutine 274 (running) created at: testing.(*T).Run() /workdir/go/src/testing/testing.go:1493 +0x75d cmd/go_test.TestScript() /workdir/go/src/cmd/go/script_test.go:81 +0x624 testing.tRunner() /workdir/go/src/testing/testing.go:1446 +0x216 testing.(*T).Run.func1() /workdir/go/src/testing/testing.go:1493 +0x47 ================== ================== WARNING: DATA RACE Read at 0x00c0003c0170 by goroutine 275: runtime.growslice() /workdir/go/src/runtime/slice.go:184 +0x0 cmd/go/internal/base.AtExit() /workdir/go/src/cmd/go/internal/base/base.go:110 +0x60a cmd/go/internal/work.(*Builder).Init() /workdir/go/src/cmd/go/internal/work/action.go:273 +0x54c cmd/go_test.(*testScript).cmdCc() /workdir/go/src/cmd/go/script_test.go:560 +0x12f cmd/go_test.(*testScript).run() /workdir/go/src/cmd/go/script_test.go:445 +0xa09 cmd/go_test.TestScript.func1() /workdir/go/src/cmd/go/script_test.go:97 +0x3d5 testing.tRunner() /workdir/go/src/testing/testing.go:1446 +0x216 testing.(*T).Run.func1() /workdir/go/src/testing/testing.go:1493 +0x47 Previous write at 0x00c0003c0170 by goroutine 274: cmd/go/internal/base.AtExit() /workdir/go/src/cmd/go/internal/base/base.go:110 +0x633 cmd/go/internal/work.(*Builder).Init() /workdir/go/src/cmd/go/internal/work/action.go:273 +0x54c cmd/go_test.(*testScript).cmdCc() /workdir/go/src/cmd/go/script_test.go:560 +0x12f cmd/go_test.(*testScript).run() /workdir/go/src/cmd/go/script_test.go:445 +0xa09 cmd/go_test.TestScript.func1() /workdir/go/src/cmd/go/script_test.go:97 +0x3d5 testing.tRunner() /workdir/go/src/testing/testing.go:1446 +0x216 testing.(*T).Run.func1() /workdir/go/src/testing/testing.go:1493 +0x47 Goroutine 275 (running) created at: testing.(*T).Run() /workdir/go/src/testing/testing.go:1493 +0x75d cmd/go_test.TestScript() /workdir/go/src/cmd/go/script_test.go:81 +0x624 testing.tRunner() /workdir/go/src/testing/testing.go:1446 +0x216 testing.(*T).Run.func1() /workdir/go/src/testing/testing.go:1493 +0x47 Goroutine 274 (running) created at: testing.(*T).Run() /workdir/go/src/testing/testing.go:1493 +0x75d cmd/go_test.TestScript() /workdir/go/src/cmd/go/script_test.go:81 +0x624 testing.tRunner() /workdir/go/src/testing/testing.go:1446 +0x216 testing.(*T).Run.func1() /workdir/go/src/testing/testing.go:1493 +0x47 ================== --- FAIL: TestScript (0.04s) --- FAIL: TestScript/list_case_collision (0.33s) script_test.go:270: # (2022-08-12T20:21:04Z) # Tests golang.org/issue/4773 (0.150s) # List files explicitly on command line, to encounter case-checking # logic even on case-insensitive filesystems. (0.117s) # Test that the path reported with an indirect import is correct. (0.057s) PASS testing.go:1319: race detected during execution of test --- FAIL: TestScript/list_split_main (0.74s) script_test.go:270: # (2022-08-12T20:21:04Z) # This test checks that a "main" package with an external test package # is recompiled only once. # Verifies golang.org/issue/34321. (0.710s) PASS testing.go:1319: race detected during execution of test --- FAIL: TestScript/list_ambiguous_path (0.39s) script_test.go:270: # (2022-08-12T20:21:04Z) # Ensures that we can correctly list package patterns ending in '.go'. # See golang.org/issue/34653. # A single pattern for a package ending in '.go'. (0.057s) # Multiple patterns for packages including one ending in '.go'. (0.105s) # A single pattern for a Go file. (0.127s) # A single typo-ed pattern for a Go file. This should # treat the wrong pattern as if it were a package. (0.038s) # Multiple patterns for Go files with a typo. This should # treat the wrong pattern as if it were a nonexistent file. (0.062s) PASS testing.go:1319: race detected during execution of test --- FAIL: TestScript/linkname (0.50s) script_test.go:270: # (2022-08-12T20:21:04Z) # check for linker name in error message about linker crash (0.502s) PASS testing.go:1319: race detected during execution of test --- FAIL: TestScript/list_gofile_in_goroot (0.72s) script_test.go:270: # (2022-08-12T20:21:04Z) # Return an error if the user tries to list a go source file directly in $GOROOT/src. # Tests golang.org/issue/36587 (0.073s) # switch to GOROOT/src (0.000s) # In module mode, 'go list ./...' should not treat .go files in GOROOT/src as an # importable package, since that directory has no valid import path. (0.257s) # In GOPATH mode, 'go list ./...' should synthesize a legacy GOPATH-mode path — # not a standard-library or empty path — for the errant package. (0.266s) # switch to GOPATH/src (0.000s) # GO111MODULE=off,GOPATH (0.124s) PASS testing.go:1319: race detected during execution of test --- FAIL: TestScript/list_load_err (0.99s) script_test.go:270: # (2022-08-12T20:21:04Z) # go list -e -deps should list imports from any file it can read, even if # other files in the same package cause go/build.Import to return an error. # Verifies golang.org/issue/38568 (0.544s) # go list -e should include files with errors in GoFiles, TestGoFiles, and # other lists, assuming they match constraints. # Verifies golang.org/issue/39986 (0.447s) PASS testing.go:1319: race detected during execution of test --- FAIL: TestScript/list_symlink_internal (1.19s) script_test.go:270: # (2022-08-12T20:21:04Z) # All of these should succeed, not die in internal-handling code. (0.821s) PASS testing.go:1319: race detected during execution of test --- FAIL: TestScript/list_importmap (1.25s) script_test.go:270: # (2022-08-12T20:21:04Z) # gccgo does not have standard packages. (0.000s) # fmt should have no rewritten imports. # The import from a/b should map c/d to a's vendor directory. (0.427s) # flag [fmt.test] should import fmt [fmt.test] as fmt # fmt.test should import testing [fmt.test] as testing # fmt.test should not import a modified os (0.825s) PASS testing.go:1319: race detected during execution of test --- FAIL: TestScript/list_parse_err (1.31s) script_test.go:270: # (2022-08-12T20:21:04Z) # 'go list' without -e should fail and print errors on stderr. (0.737s) # 'go list -e' should report imports, even if some files have parse errors # before the import block. (0.144s) # 'go list' should report the position of the error if there's only one. (0.175s) # 'go test' should report the position of the error if there's only one. (0.224s) PASS testing.go:1319: race detected during execution of test --- FAIL: TestScript/list_constraints (1.10s) script_test.go:270: # (2022-08-12T20:21:04Z) # Check that files and their imports are not included in 'go list' output # when they are excluded by build constraints. # Linux and cgo files should be included when building in that configuration. (0.567s) # Disabling cgo should exclude cgo files and their imports. (0.186s) # Changing OS should exclude linux sources. (0.100s) # Enabling a tag should include files that require it. (0.122s) # Packages that require a tag should not be listed unless the tag is on. (0.121s) PASS testing.go:1319: race detected during execution of test --- FAIL: TestScript/build_GOTMPDIR (1.58s) script_test.go:270: # (2022-08-12T20:21:04Z) # Set GOCACHE to a clean directory to ensure that 'go build' has work to report. (0.000s) # 'go build' should use GOTMPDIR if set. (0.980s) # Make GOTMPDIR a regular file. This prevents the creation of work directories, # so we can check that certain commands don't create them. # This simulates running on a full disk or a read-only volume. (0.000s) # 'go build' should fail if GOTMPDIR is read-only. (0.047s) # 'go list' should only fail if it needs to build something. (0.278s) # 'go clean -cache' and 'go clean -modcache' should not fail. (0.136s) # 'go env' should not fail for specific variables. # Without arguments, it needs to initialize a builder to load cgo flags, and # that uses a temporary directory. (0.109s) PASS testing.go:1319: race detected during execution of test --- FAIL: TestScript/link_syso_issue33139 (1.13s) script_test.go:270: # (2022-08-12T20:21:04Z) # Test that we can use the external linker with a host syso file that is # embedded in a package, that is referenced by a Go assembly function. # See issue 33139. (0.000s) # External linking is not supported on linux/ppc64. # See: https://github.com/golang/go/issues/8912 (1.125s) PASS testing.go:1319: race detected during execution of test --- FAIL: TestScript/list_json_fields (1.75s) script_test.go:270: # (2022-08-12T20:21:04Z) # Test using -json flag to specify specific fields. # Test -json produces "full" output by looking for multiple fields present. (0.350s) # Same thing for -json=true (0.369s) # Test -json=false produces non-json output. (0.133s) # Test -json= keeps only that field. (0.177s) # Test -json= with multiple fields. (0.164s) # Test -json= with Deps outputs the Deps field. (0.136s) # Test -json= without Stale skips computing buildinfo (0.013s) # Control case: with -json=Stale cmd/go executes git status to compute buildinfo (0.295s) # Test case: without -json=Stale cmd/go skips git status (0.112s) PASS testing.go:1319: race detected during execution of test --- FAIL: TestScript/link_syso_deps (1.50s) script_test.go:270: # (2022-08-12T20:21:04Z) # Test that syso in deps is available to cgo. (0.000s) # External linking is not supported on linux/ppc64. # See: https://github.com/golang/go/issues/8912 (1.497s) PASS testing.go:1319: race detected during execution of test --- FAIL: TestScript/list_compiled_imports (2.69s) script_test.go:270: # (2022-08-12T20:21:04Z) # go list should report import "C" (0.449s) # go list -compiled should report imports in compiled files as well, # adding "runtime/cgo", "unsafe", and "syscall" but not dropping "C". (2.238s) PASS testing.go:1319: race detected during execution of test --- FAIL: TestScript/list_symlink_issue35941 (4.81s) script_test.go:270: # (2022-08-12T20:21:04Z) # Issue 35941: suppress symlink warnings when running 'go list all'. (4.700s) # Show symlink warnings when patterns contain '...'. (0.078s) PASS testing.go:1319: race detected during execution of test FAIL FAIL cmd/go 45.988s FAIL go tool dist: Failed: exit status 1 Error: tests failed: dist test failed: go_test:cmd/go: exit status 1