Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/compile/internal/types2: TestIssue43124 fails randomly in go1.21rc2 #61064

Open
zhsj opened this issue Jun 29, 2023 · 6 comments
Open

cmd/compile/internal/types2: TestIssue43124 fails randomly in go1.21rc2 #61064

zhsj opened this issue Jun 29, 2023 · 6 comments
Assignees
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@zhsj
Copy link
Contributor

zhsj commented Jun 29, 2023

What version of Go are you using (go version)?

$ go version
go version go1.20.5 linux/amd64

Does this issue reproduce with the latest release?

What operating system and processor architecture are you using (go env)?

go env Output
$ 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"

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...

@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Jun 29, 2023
@bcmills
Copy link
Contributor

bcmills commented Jun 29, 2023

Curiously, types2.TestIssue43124 is substantially different from go/types.TestIssue43124.

It looks like the go/types test was changed in https://go.dev/cl/330629 for #46905. Perhaps that fix needs to be backported to types2?

(attn @griesemer, @findleyr)

@cagedmantis cagedmantis added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Jun 29, 2023
@cagedmantis cagedmantis added this to the Backlog milestone Jun 29, 2023
@griesemer griesemer self-assigned this Jun 29, 2023
@gopherbot
Copy link
Contributor

Change https://go.dev/cl/507215 mentions this issue: cmd/compile/internal/types2: make TestIssue43124 match the go/types version

gopherbot pushed a commit that referenced this issue Jun 29, 2023
…ersion

Replace the (flaky) types2.TestIssue43124 with the code of the
(stable) go/types version of this test.

While at it, replace a handful of syntax.Pos{} with the equivalent
nopos, to further reduce differences between the two versions of
the issues_test.go file.

For #61064.

Change-Id: I69f3e4627a48c9928e335d67736cb875ba3835fc
Reviewed-on: https://go-review.googlesource.com/c/go/+/507215
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Run-TryBot: Robert Griesemer <gri@google.com>
@bcmills
Copy link
Contributor

bcmills commented Jun 29, 2023

@zhsj, is it possible that your VM has too low of a memory limit? I can get a similar failure mode by killing the go list -export command that locates the text/template package.

That command may be fairly expensive if it ends up needing to build text/template and its dependencies from scratch. So perhaps the test is running out of memory while recompiling text/template into the cache.

@bcmills bcmills added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Jun 29, 2023
@zhsj
Copy link
Contributor Author

zhsj commented Jun 30, 2023

It's in docker at my workstation. Host has 32G memory.

zsj@nuc12:~$ free -h
               total        used        free      shared  buff/cache   available
Mem:            30Gi       9.4Gi       7.4Gi       2.1Gi        16Gi        21Gi
Swap:          975Mi          0B       975Mi

I didn't notice OOM kill event when building.

@gopherbot
Copy link
Contributor

Change https://go.dev/cl/507360 mentions this issue: go/internal/gcimporter: propagate errors from FindPkg

bradfitz pushed a commit to tailscale/go that referenced this issue Jul 15, 2023
…ersion

Replace the (flaky) types2.TestIssue43124 with the code of the
(stable) go/types version of this test.

While at it, replace a handful of syntax.Pos{} with the equivalent
nopos, to further reduce differences between the two versions of
the issues_test.go file.

For golang#61064.

Change-Id: I69f3e4627a48c9928e335d67736cb875ba3835fc
Reviewed-on: https://go-review.googlesource.com/c/go/+/507215
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Run-TryBot: Robert Griesemer <gri@google.com>
@gopherbot
Copy link
Contributor

Change https://go.dev/cl/511758 mentions this issue: internal/gcimporter: avoid test assumptions about internal packages in other repos

gopherbot pushed a commit to golang/tools that referenced this issue Jul 20, 2023
…n other repos

TestImportedTypes was assuming that go/internal/gcimporter declares a
FindPkg function with a particular signature. However, since
go/internal/gcimporter is internal, it is not subject to Go 1
compatibility and its API is subject to change.

I intend to change it in CL 507360.

For golang/go#61064.

Change-Id: I994f5b967ce9c57d07ce1fe8b6ce900176848efa
Reviewed-on: https://go-review.googlesource.com/c/tools/+/511758
Auto-Submit: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Alan Donovan <adonovan@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
gopherbot pushed a commit that referenced this issue Jul 20, 2023
Previously, FindPkg returned the empty string as a sentinel value,
causing Import to collapse all errors to "can't find import".

(See also https://go.dev/wiki/CodeReviewComments#in-band-errors.)

For #61064.

Change-Id: I21f335d206308b44fe585619e00782abb0b65a94
Reviewed-on: https://go-review.googlesource.com/c/go/+/507360
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Bryan Mills <bcmills@google.com>
@seankhliao seankhliao removed the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
Status: In Progress
Development

No branches or pull requests

6 participants