Repository: go
Issue: cmd/compile/internal/types2: TestIssue43124 fails randomly in go1.21rc2
Labels: NeedsInvestigation,compiler/runtime

<!--
Please answer these questions before submitting your issue. Thanks!
-->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.20.5 linux/amd64
</pre>

### Does this issue reproduce with the latest release?



### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOENV="/root/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/root/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/root/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/lib/go-1.20"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go-1.20/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.20.5"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
GOWORK=""
CGO_CFLAGS="-O2 -g"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-O2 -g"
CGO_FFLAGS="-O2 -g"
CGO_LDFLAGS="-O2 -g"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build2213430322=/tmp/go-build -gno-record-gcc-switches"

</pre></details>

### What did you do?

Build go1.21rc2

`bash run.bash -k -no-rebuild`

### What did you expect to see?

No error

### What did you see instead?

```
##### Test execution environment.
# GOARCH: amd64
# CPU: 12th Gen Intel(R) Core(TM) i5-1240P
# GOOS: linux
# OS Version: Linux 6.3.0-1-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.3.7-1 (2023-06-12) x86_64

...

--- FAIL: TestIssue43124 (0.00s)
panic: a:1:19: could not import text/template (can't find import: "text/template") [recovered]
        panic: a:1:19: could not import text/template (can't find import: "text/template")

goroutine 543 [running]:
panic({0x78a860?, 0xc0002ca7c0?})
        /usr/lib/go-1.21/src/runtime/panic.go:1017 +0x3ac fp=0xc000435b68 sp=0xc000435ab8 pc=0x43a8cc
testing.tRunner.func1.2({0x78a860, 0xc0002ca7c0})
        /usr/lib/go-1.21/src/testing/testing.go:1545 +0x238 fp=0xc000435c18 sp=0xc000435b68 pc=0x5176f8
testing.tRunner.func1()
        /usr/lib/go-1.21/src/testing/testing.go:1548 +0x397 fp=0xc000435d80 sp=0xc000435c18 pc=0x5171b7
runtime.deferCallSave(0xc000435e38, 0xc000435f90?)
        /usr/lib/go-1.21/src/runtime/panic.go:798 +0x84 fp=0xc000435d90 sp=0xc000435d80 pc=0x43a484
runtime.runOpenDeferFrame(0xc0000230e0)
        /usr/lib/go-1.21/src/runtime/panic.go:771 +0x1b8 fp=0xc000435dd0 sp=0xc000435d90 pc=0x43a2b8
panic({0x78a860?, 0xc0002ca7c0?})
        /usr/lib/go-1.21/src/runtime/panic.go:914 +0x21f fp=0xc000435e80 sp=0xc000435dd0 pc=0x43a73f
cmd/compile/internal/types2_test.mustTypecheck(...)
        /usr/lib/go-1.21/src/cmd/compile/internal/types2/api_test.go:46
cmd/compile/internal/types2_test.TestIssue43124(0xc00041d520)
        /usr/lib/go-1.21/src/cmd/compile/internal/types2/issues_test.go:549 +0x365 fp=0xc000435f70 sp=0xc000435e80 pc=0x704465
testing.tRunner(0xc00041d520, 0x7daad8)
        /usr/lib/go-1.21/src/testing/testing.go:1595 +0xff fp=0xc000435fc0 sp=0xc000435f70 pc=0x516d5f
testing.(*T).Run.func1()
        /usr/lib/go-1.21/src/testing/testing.go:1648 +0x25 fp=0xc000435fe0 sp=0xc000435fc0 pc=0x517ce5
runtime.goexit()
        /usr/lib/go-1.21/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc000435fe8 sp=0xc000435fe0 pc=0x470401
created by testing.(*T).Run in goroutine 1
        /usr/lib/go-1.21/src/testing/testing.go:1648 +0x3ad

goroutine 1 [chan receive]:
runtime.gopark(0xc0000ab988?, 0x410845?, 0x48?, 0xb5?, 0x18?)
        /usr/lib/go-1.21/src/runtime/proc.go:398 +0xce fp=0xc0000ab920 sp=0xc0000ab900 pc=0x43db4e
runtime.chanrecv(0xc00002c8c0, 0xc0000aba07, 0x1)
        /usr/lib/go-1.21/src/runtime/chan.go:583 +0x3cd fp=0xc0000ab998 sp=0xc0000ab920 pc=0x409c4d
runtime.chanrecv1(0xa660c0?, 0x734bc0?)
        /usr/lib/go-1.21/src/runtime/chan.go:442 +0x12 fp=0xc0000ab9c0 sp=0xc0000ab998 pc=0x409852
testing.(*T).Run(0xc00009ad00, {0x7b317e?, 0x51663c?}, 0x7daad8)
        /usr/lib/go-1.21/src/testing/testing.go:1649 +0x3c8 fp=0xc0000aba80 sp=0xc0000ab9c0 pc=0x517b88
testing.runTests.func1(0xa67520?)
        /usr/lib/go-1.21/src/testing/testing.go:2054 +0x3e fp=0xc0000abad0 sp=0xc0000aba80 pc=0x519c9e
testing.tRunner(0xc00009ad00, 0xc0000abbe8)
        /usr/lib/go-1.21/src/testing/testing.go:1595 +0xff fp=0xc0000abb20 sp=0xc0000abad0 pc=0x516d5f
testing.runTests(0xc0000d68c0?, {0xa60b60, 0x73, 0x73}, {0xd0?, 0x779f40?, 0xa665a0?})
        /usr/lib/go-1.21/src/testing/testing.go:2052 +0x445 fp=0xc0000abc18 sp=0xc0000abb20 pc=0x519b85
testing.(*M).Run(0xc0000d68c0)
        /usr/lib/go-1.21/src/testing/testing.go:1925 +0x636 fp=0xc0000abe60 sp=0xc0000abc18 pc=0x518576
cmd/compile/internal/types2_test.TestMain(0xc00006c6f0?)
        /usr/lib/go-1.21/src/cmd/compile/internal/types2/main_test.go:16 +0x50 fp=0xc0000abe88 sp=0xc0000abe60 pc=0x706010
main.main()
        _testmain.go:289 +0x1c6 fp=0xc0000abf40 sp=0xc0000abe88 pc=0x710806
runtime.main()
        /usr/lib/go-1.21/src/runtime/proc.go:267 +0x2bb fp=0xc0000abfe0 sp=0xc0000abf40 pc=0x43d6db
runtime.goexit()
        /usr/lib/go-1.21/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc0000abfe8 sp=0xc0000abfe0 pc=0x470401

goroutine 2 [force gc (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
        /usr/lib/go-1.21/src/runtime/proc.go:398 +0xce fp=0xc00006cfa8 sp=0xc00006cf88 pc=0x43db4e
runtime.goparkunlock(...)
        /usr/lib/go-1.21/src/runtime/proc.go:404
runtime.forcegchelper()
        /usr/lib/go-1.21/src/runtime/proc.go:322 +0xb3 fp=0xc00006cfe0 sp=0xc00006cfa8 pc=0x43d9b3
runtime.goexit()
        /usr/lib/go-1.21/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc00006cfe8 sp=0xc00006cfe0 pc=0x470401
created by runtime.init.6 in goroutine 1
        /usr/lib/go-1.21/src/runtime/proc.go:310 +0x1a

goroutine 17 [GC sweep wait]:
runtime.gopark(0xa66201?, 0xa662a0?, 0xc?, 0x14?, 0x1?)
        /usr/lib/go-1.21/src/runtime/proc.go:398 +0xce fp=0xc000068778 sp=0xc000068758 pc=0x43db4e
runtime.goparkunlock(...)
        /usr/lib/go-1.21/src/runtime/proc.go:404
runtime.bgsweep(0x0?)
        /usr/lib/go-1.21/src/runtime/mgcsweep.go:321 +0xdf fp=0xc0000687c8 sp=0xc000068778 pc=0x427fdf
runtime.gcenable.func1()
        /usr/lib/go-1.21/src/runtime/mgc.go:200 +0x25 fp=0xc0000687e0 sp=0xc0000687c8 pc=0x41d0c5
runtime.goexit()
        /usr/lib/go-1.21/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc0000687e8 sp=0xc0000687e0 pc=0x470401
created by runtime.gcenable in goroutine 1
        /usr/lib/go-1.21/src/runtime/mgc.go:200 +0x66

goroutine 18 [GC scavenge wait]:
runtime.gopark(0x973d34?, 0x6614c9?, 0x0?, 0x0?, 0x0?)
        /usr/lib/go-1.21/src/runtime/proc.go:398 +0xce fp=0xc000068f70 sp=0xc000068f50 pc=0x43db4e
runtime.goparkunlock(...)
        /usr/lib/go-1.21/src/runtime/proc.go:404
runtime.(*scavengerState).park(0xa66620)
        /usr/lib/go-1.21/src/runtime/mgcscavenge.go:425 +0x49 fp=0xc000068fa0 sp=0xc000068f70 pc=0x4257c9
runtime.bgscavenge(0x0?)
        /usr/lib/go-1.21/src/runtime/mgcscavenge.go:658 +0x59 fp=0xc000068fc8 sp=0xc000068fa0 pc=0x425d79
runtime.gcenable.func2()
        /usr/lib/go-1.21/src/runtime/mgc.go:201 +0x25 fp=0xc000068fe0 sp=0xc000068fc8 pc=0x41d065
runtime.goexit()
        /usr/lib/go-1.21/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc000068fe8 sp=0xc000068fe0 pc=0x470401
created by runtime.gcenable in goroutine 1
        /usr/lib/go-1.21/src/runtime/mgc.go:201 +0xa5

goroutine 19 [finalizer wait]:
runtime.gopark(0x0?, 0x7dac78?, 0x0?, 0x80?, 0x2000000020?)
        /usr/lib/go-1.21/src/runtime/proc.go:398 +0xce fp=0xc00006c628 sp=0xc00006c608 pc=0x43db4e
runtime.runfinq()
        /usr/lib/go-1.21/src/runtime/mfinal.go:193 +0x107 fp=0xc00006c7e0 sp=0xc00006c628 pc=0x41c147
runtime.goexit()
        /usr/lib/go-1.21/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc00006c7e8 sp=0xc00006c7e0 pc=0x470401
created by runtime.createfing in goroutine 1
        /usr/lib/go-1.21/src/runtime/mfinal.go:163 +0x3d

goroutine 62 [GC worker (idle)]:
runtime.gopark(0xc00006a760?, 0x49106f?, 0xfa?, 0x92?, 0x516d5f?)
        /usr/lib/go-1.21/src/runtime/proc.go:398 +0xce fp=0xc00006a750 sp=0xc00006a730 pc=0x43db4e
runtime.gcBgMarkWorker()
        /usr/lib/go-1.21/src/runtime/mgc.go:1293 +0xe5 fp=0xc00006a7e0 sp=0xc00006a750 pc=0x41ec45
runtime.goexit()
        /usr/lib/go-1.21/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc00006a7e8 sp=0xc00006a7e0 pc=0x470401
created by runtime.gcBgMarkStartWorkers in goroutine 48
        /usr/lib/go-1.21/src/runtime/mgc.go:1217 +0x1c

goroutine 61 [GC worker (idle)]:
runtime.gopark(0xc000069f60?, 0x49106f?, 0xb0?, 0x9f?, 0x516d5f?)
        /usr/lib/go-1.21/src/runtime/proc.go:398 +0xce fp=0xc000069f50 sp=0xc000069f30 pc=0x43db4e
runtime.gcBgMarkWorker()
        /usr/lib/go-1.21/src/runtime/mgc.go:1293 +0xe5 fp=0xc000069fe0 sp=0xc000069f50 pc=0x41ec45
runtime.goexit()
        /usr/lib/go-1.21/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc000069fe8 sp=0xc000069fe0 pc=0x470401
created by runtime.gcBgMarkStartWorkers in goroutine 48
        /usr/lib/go-1.21/src/runtime/mgc.go:1217 +0x1c

goroutine 63 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
        /usr/lib/go-1.21/src/runtime/proc.go:398 +0xce fp=0xc00006af50 sp=0xc00006af30 pc=0x43db4e
runtime.gcBgMarkWorker()
        /usr/lib/go-1.21/src/runtime/mgc.go:1293 +0xe5 fp=0xc00006afe0 sp=0xc00006af50 pc=0x41ec45
runtime.goexit()
        /usr/lib/go-1.21/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc00006afe8 sp=0xc00006afe0 pc=0x470401
created by runtime.gcBgMarkStartWorkers in goroutine 48
        /usr/lib/go-1.21/src/runtime/mgc.go:1217 +0x1c

goroutine 64 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
        /usr/lib/go-1.21/src/runtime/proc.go:398 +0xce fp=0xc00006b750 sp=0xc00006b730 pc=0x43db4e
runtime.gcBgMarkWorker()
        /usr/lib/go-1.21/src/runtime/mgc.go:1293 +0xe5 fp=0xc00006b7e0 sp=0xc00006b750 pc=0x41ec45
runtime.goexit()
        /usr/lib/go-1.21/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc00006b7e8 sp=0xc00006b7e0 pc=0x470401
created by runtime.gcBgMarkStartWorkers in goroutine 48
        /usr/lib/go-1.21/src/runtime/mgc.go:1217 +0x1c

goroutine 65 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
        /usr/lib/go-1.21/src/runtime/proc.go:398 +0xce fp=0xc00006bf50 sp=0xc00006bf30 pc=0x43db4e
runtime.gcBgMarkWorker()
        /usr/lib/go-1.21/src/runtime/mgc.go:1293 +0xe5 fp=0xc00006bfe0 sp=0xc00006bf50 pc=0x41ec45
runtime.goexit()
        /usr/lib/go-1.21/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc00006bfe8 sp=0xc00006bfe0 pc=0x470401
created by runtime.gcBgMarkStartWorkers in goroutine 48
        /usr/lib/go-1.21/src/runtime/mgc.go:1217 +0x1c

goroutine 66 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
        /usr/lib/go-1.21/src/runtime/proc.go:398 +0xce fp=0xc0004ae750 sp=0xc0004ae730 pc=0x43db4e
runtime.gcBgMarkWorker()
        /usr/lib/go-1.21/src/runtime/mgc.go:1293 +0xe5 fp=0xc0004ae7e0 sp=0xc0004ae750 pc=0x41ec45
runtime.goexit()
        /usr/lib/go-1.21/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc0004ae7e8 sp=0xc0004ae7e0 pc=0x470401
created by runtime.gcBgMarkStartWorkers in goroutine 48
        /usr/lib/go-1.21/src/runtime/mgc.go:1217 +0x1c

goroutine 67 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
        /usr/lib/go-1.21/src/runtime/proc.go:398 +0xce fp=0xc0004aef50 sp=0xc0004aef30 pc=0x43db4e
runtime.gcBgMarkWorker()
        /usr/lib/go-1.21/src/runtime/mgc.go:1293 +0xe5 fp=0xc0004aefe0 sp=0xc0004aef50 pc=0x41ec45
runtime.goexit()
        /usr/lib/go-1.21/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc0004aefe8 sp=0xc0004aefe0 pc=0x470401
created by runtime.gcBgMarkStartWorkers in goroutine 48
        /usr/lib/go-1.21/src/runtime/mgc.go:1217 +0x1c

goroutine 68 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
        /usr/lib/go-1.21/src/runtime/proc.go:398 +0xce fp=0xc0004af750 sp=0xc0004af730 pc=0x43db4e
runtime.gcBgMarkWorker()
        /usr/lib/go-1.21/src/runtime/mgc.go:1293 +0xe5 fp=0xc0004af7e0 sp=0xc0004af750 pc=0x41ec45
runtime.goexit()
        /usr/lib/go-1.21/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc0004af7e8 sp=0xc0004af7e0 pc=0x470401
created by runtime.gcBgMarkStartWorkers in goroutine 48
        /usr/lib/go-1.21/src/runtime/mgc.go:1217 +0x1c

goroutine 69 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
        /usr/lib/go-1.21/src/runtime/proc.go:398 +0xce fp=0xc0004aff50 sp=0xc0004aff30 pc=0x43db4e
runtime.gcBgMarkWorker()
        /usr/lib/go-1.21/src/runtime/mgc.go:1293 +0xe5 fp=0xc0004affe0 sp=0xc0004aff50 pc=0x41ec45
runtime.goexit()
        /usr/lib/go-1.21/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc0004affe8 sp=0xc0004affe0 pc=0x470401
created by runtime.gcBgMarkStartWorkers in goroutine 48
        /usr/lib/go-1.21/src/runtime/mgc.go:1217 +0x1c

goroutine 70 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
        /usr/lib/go-1.21/src/runtime/proc.go:398 +0xce fp=0xc0004b0750 sp=0xc0004b0730 pc=0x43db4e
runtime.gcBgMarkWorker()
        /usr/lib/go-1.21/src/runtime/mgc.go:1293 +0xe5 fp=0xc0004b07e0 sp=0xc0004b0750 pc=0x41ec45
runtime.goexit()
        /usr/lib/go-1.21/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc0004b07e8 sp=0xc0004b07e0 pc=0x470401
created by runtime.gcBgMarkStartWorkers in goroutine 48
        /usr/lib/go-1.21/src/runtime/mgc.go:1217 +0x1c

goroutine 71 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
        /usr/lib/go-1.21/src/runtime/proc.go:398 +0xce fp=0xc0004b0f50 sp=0xc0004b0f30 pc=0x43db4e
runtime.gcBgMarkWorker()
        /usr/lib/go-1.21/src/runtime/mgc.go:1293 +0xe5 fp=0xc0004b0fe0 sp=0xc0004b0f50 pc=0x41ec45
runtime.goexit()
        /usr/lib/go-1.21/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc0004b0fe8 sp=0xc0004b0fe0 pc=0x470401
created by runtime.gcBgMarkStartWorkers in goroutine 48
        /usr/lib/go-1.21/src/runtime/mgc.go:1217 +0x1c

goroutine 3 [GC worker (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
        /usr/lib/go-1.21/src/runtime/proc.go:398 +0xce fp=0xc00006d750 sp=0xc00006d730 pc=0x43db4e
runtime.gcBgMarkWorker()
        /usr/lib/go-1.21/src/runtime/mgc.go:1293 +0xe5 fp=0xc00006d7e0 sp=0xc00006d750 pc=0x41ec45
runtime.goexit()
        /usr/lib/go-1.21/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc00006d7e8 sp=0xc00006d7e0 pc=0x470401
created by runtime.gcBgMarkStartWorkers in goroutine 48
        /usr/lib/go-1.21/src/runtime/mgc.go:1217 +0x1c

goroutine 4 [GC worker (idle)]:
runtime.gopark(0x128849d62b802?, 0x0?, 0x0?, 0x0?, 0x0?)
        /usr/lib/go-1.21/src/runtime/proc.go:398 +0xce fp=0xc00006df50 sp=0xc00006df30 pc=0x43db4e
runtime.gcBgMarkWorker()
        /usr/lib/go-1.21/src/runtime/mgc.go:1293 +0xe5 fp=0xc00006dfe0 sp=0xc00006df50 pc=0x41ec45
runtime.goexit()
        /usr/lib/go-1.21/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc00006dfe8 sp=0xc00006dfe0 pc=0x470401
created by runtime.gcBgMarkStartWorkers in goroutine 48
        /usr/lib/go-1.21/src/runtime/mgc.go:1217 +0x1c

goroutine 5 [GC worker (idle)]:
runtime.gopark(0x12884beb0a9d8?, 0x1?, 0xd1?, 0x5d?, 0x0?)
        /usr/lib/go-1.21/src/runtime/proc.go:398 +0xce fp=0xc00006e750 sp=0xc00006e730 pc=0x43db4e
runtime.gcBgMarkWorker()
        /usr/lib/go-1.21/src/runtime/mgc.go:1293 +0xe5 fp=0xc00006e7e0 sp=0xc00006e750 pc=0x41ec45
runtime.goexit()
        /usr/lib/go-1.21/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc00006e7e8 sp=0xc00006e7e0 pc=0x470401
created by runtime.gcBgMarkStartWorkers in goroutine 48
        /usr/lib/go-1.21/src/runtime/mgc.go:1217 +0x1c

goroutine 6 [GC worker (idle)]:
runtime.gopark(0x128849dc0a58e?, 0x1?, 0x7c?, 0x2a?, 0x0?)
        /usr/lib/go-1.21/src/runtime/proc.go:398 +0xce fp=0xc00006ef50 sp=0xc00006ef30 pc=0x43db4e
runtime.gcBgMarkWorker()
        /usr/lib/go-1.21/src/runtime/mgc.go:1293 +0xe5 fp=0xc00006efe0 sp=0xc00006ef50 pc=0x41ec45
runtime.goexit()
        /usr/lib/go-1.21/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc00006efe8 sp=0xc00006efe0 pc=0x470401
created by runtime.gcBgMarkStartWorkers in goroutine 48
        /usr/lib/go-1.21/src/runtime/mgc.go:1217 +0x1c

goroutine 7 [GC worker (idle)]:
runtime.gopark(0x12884beaf8d84?, 0x1?, 0x91?, 0x2c?, 0x0?)
        /usr/lib/go-1.21/src/runtime/proc.go:398 +0xce fp=0xc00006f750 sp=0xc00006f730 pc=0x43db4e
runtime.gcBgMarkWorker()
        /usr/lib/go-1.21/src/runtime/mgc.go:1293 +0xe5 fp=0xc00006f7e0 sp=0xc00006f750 pc=0x41ec45
runtime.goexit()
        /usr/lib/go-1.21/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc00006f7e8 sp=0xc00006f7e0 pc=0x470401
created by runtime.gcBgMarkStartWorkers in goroutine 48
        /usr/lib/go-1.21/src/runtime/mgc.go:1217 +0x1c
FAIL    cmd/compile/internal/types2     7.808s
```

No sure what happens. I build it in clean docker env. And it doesn't always fail...