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

gopls: server crash while using generics #1972

Closed
lukasl-dev opened this issue Dec 26, 2021 · 2 comments
Closed

gopls: server crash while using generics #1972

lukasl-dev opened this issue Dec 26, 2021 · 2 comments
Labels
FrozenDueToAge upstream-go Issues that are caused by bugs in the Go toolchain.
Milestone

Comments

@lukasl-dev
Copy link

gopls version: v0.7.4
gopls flags:
update flags: proxy
extension version: 2021.12.2121
go version: 1.18beta1
environment: Visual Studio Code - Insiders win32
initialization error: undefined
issue timestamp: Sun, 26 Dec 2021 16:56:47 GMT
restart history:
Sun, 26 Dec 2021 12:16:17 GMT: activation (enabled: true)

Describe what you observed.

After saving my .go file, the gopls server crashed. A stack overflow is described in the logs.

Please attach the stack trace from the crash.
A window with the error message should have popped up in the lower half of your screen.
Please copy the stack trace and error messages from that window and paste it in this issue.

[Info  - 13:16:19] 2021/12/26 13:16:19 go env for G:\github.com\lukasl-dev\bartender
(root G:\github.com\lukasl-dev\bartender)
(go version go version go1.18beta1 windows/amd64)
(valid build configuration = true)
(build flags: [])
GOMODCACHE=C:\Users\lkasl\go\pkg\mod
GOFLAGS=
GOINSECURE=
GOPRIVATE=
GOPROXY=https://proxy.golang.org,direct
GOROOT=C:\Users\lkasl\sdk\go1.18beta1
GO111MODULE=
GOCACHE=C:\Users\lkasl\AppData\Local\go-build
GOPATH=C:\Users\lkasl\go
GOSUMDB=sum.golang.org
GOMOD=G:\github.com\lukasl-dev\bartender\go.mod
GONOPROXY=
GONOSUMDB=


[Info  - 13:16:20] 2021/12/26 13:16:20 go/packages.Load
	snapshot=0
	directory=G:\github.com\lukasl-dev\bartender
	query=[builtin github.com/lukasl-dev/bartender/...]
	packages=10

[Info  - 13:16:21] 2021/12/26 13:16:20 discovered missing identifiers: map[memRecordCycle:true pageBits:true]
	package="runtime"

runtime: goroutine stack exceeds 1000000000-byte limit
runtime: sp=0xc023d41398 stack=[0xc023d40000, 0xc043d40000]
fatal error: stack overflow

runtime stack:
runtime.throw({0x181a702?, 0x1ede860?})
	C:/Users/lkasl/sdk/go1.18beta1/src/runtime/panic.go:992 +0x76
runtime.newstack()
	C:/Users/lkasl/sdk/go1.18beta1/src/runtime/stack.go:1101 +0x5db
runtime.morestack()
	C:/Users/lkasl/sdk/go1.18beta1/src/runtime/asm_amd64.s:547 +0x93

goroutine 1063 [running]:
go/types.under({0x1a69bf0?, 0xc0020b18c0?})
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/type.go:23 +0x71 fp=0xc023d413a8 sp=0xc023d413a0 pc=0x113eab1
go/types.(*TypeParam).iface(0xc0020b18c0)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:107 +0x37 fp=0xc023d41400 sp=0xc023d413a8 pc=0x113f6f7
go/types.(*TypeParam).Underlying(0x0?)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:91 +0x19 fp=0xc023d41418 sp=0xc023d41400 pc=0x113f639
go/types.under({0x1a69bf0?, 0xc0020b18c0?})
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/type.go:27 +0x58 fp=0xc023d41430 sp=0xc023d41418 pc=0x113ea98
go/types.(*TypeParam).iface(0xc0020b18c0)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:107 +0x37 fp=0xc023d41488 sp=0xc023d41430 pc=0x113f6f7
go/types.(*TypeParam).Underlying(0x0?)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:91 +0x19 fp=0xc023d414a0 sp=0xc023d41488 pc=0x113f639
go/types.under({0x1a69bf0?, 0xc0020b18c0?})
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/type.go:27 +0x58 fp=0xc023d414b8 sp=0xc023d414a0 pc=0x113ea98
go/types.(*TypeParam).iface(0xc0020b18c0)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:107 +0x37 fp=0xc023d41510 sp=0xc023d414b8 pc=0x113f6f7
go/types.(*TypeParam).Underlying(0x0?)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:91 +0x19 fp=0xc023d41528 sp=0xc023d41510 pc=0x113f639
go/types.under({0x1a69bf0?, 0xc0020b18c0?})
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/type.go:27 +0x58 fp=0xc023d41540 sp=0xc023d41528 pc=0x113ea98
go/types.(*TypeParam).iface(0xc0020b18c0)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:107 +0x37 fp=0xc023d41598 sp=0xc023d41540 pc=0x113f6f7
go/types.(*TypeParam).Underlying(0x0?)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:91 +0x19 fp=0xc023d415b0 sp=0xc023d41598 pc=0x113f639
go/types.under({0x1a69bf0?, 0xc0020b18c0?})
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/type.go:27 +0x58 fp=0xc023d415c8 sp=0xc023d415b0 pc=0x113ea98
go/types.(*TypeParam).iface(0xc0020b18c0)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:107 +0x37 fp=0xc023d41620 sp=0xc023d415c8 pc=0x113f6f7
go/types.(*TypeParam).Underlying(0x0?)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:91 +0x19 fp=0xc023d41638 sp=0xc023d41620 pc=0x113f639
go/types.under({0x1a69bf0?, 0xc0020b18c0?})
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/type.go:27 +0x58 fp=0xc023d41650 sp=0xc023d41638 pc=0x113ea98
go/types.(*TypeParam).iface(0xc0020b18c0)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:107 +0x37 fp=0xc023d416a8 sp=0xc023d41650 pc=0x113f6f7
go/types.(*TypeParam).Underlying(0x0?)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:91 +0x19 fp=0xc023d416c0 sp=0xc023d416a8 pc=0x113f639
go/types.under({0x1a69bf0?, 0xc0020b18c0?})
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/type.go:27 +0x58 fp=0xc023d416d8 sp=0xc023d416c0 pc=0x113ea98
go/types.(*TypeParam).iface(0xc0020b18c0)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:107 +0x37 fp=0xc023d41730 sp=0xc023d416d8 pc=0x113f6f7
go/types.(*TypeParam).Underlying(0x0?)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:91 +0x19 fp=0xc023d41748 sp=0xc023d41730 pc=0x113f639
go/types.under({0x1a69bf0?, 0xc0020b18c0?})
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/type.go:27 +0x58 fp=0xc023d41760 sp=0xc023d41748 pc=0x113ea98
go/types.(*TypeParam).iface(0xc0020b18c0)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:107 +0x37 fp=0xc023d417b8 sp=0xc023d41760 pc=0x113f6f7
go/types.(*TypeParam).Underlying(0x0?)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:91 +0x19 fp=0xc023d417d0 sp=0xc023d417b8 pc=0x113f639
go/types.under({0x1a69bf0?, 0xc0020b18c0?})
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/type.go:27 +0x58 fp=0xc023d417e8 sp=0xc023d417d0 pc=0x113ea98
go/types.(*TypeParam).iface(0xc0020b18c0)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:107 +0x37 fp=0xc023d41840 sp=0xc023d417e8 pc=0x113f6f7
go/types.(*TypeParam).Underlying(0x0?)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:91 +0x19 fp=0xc023d41858 sp=0xc023d41840 pc=0x113f639
go/types.under({0x1a69bf0?, 0xc0020b18c0?})
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/type.go:27 +0x58 fp=0xc023d41870 sp=0xc023d41858 pc=0x113ea98
go/types.(*TypeParam).iface(0xc0020b18c0)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:107 +0x37 fp=0xc023d418c8 sp=0xc023d41870 pc=0x113f6f7
go/types.(*TypeParam).Underlying(0x0?)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:91 +0x19 fp=0xc023d418e0 sp=0xc023d418c8 pc=0x113f639
go/types.under({0x1a69bf0?, 0xc0020b18c0?})
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/type.go:27 +0x58 fp=0xc023d418f8 sp=0xc023d418e0 pc=0x113ea98
go/types.(*TypeParam).iface(0xc0020b18c0)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:107 +0x37 fp=0xc023d41950 sp=0xc023d418f8 pc=0x113f6f7
go/types.(*TypeParam).Underlying(0x0?)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:91 +0x19 fp=0xc023d41968 sp=0xc023d41950 pc=0x113f639
go/types.under({0x1a69bf0?, 0xc0020b18c0?})
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/type.go:27 +0x58 fp=0xc023d41980 sp=0xc023d41968 pc=0x113ea98
go/types.(*TypeParam).iface(0xc0020b18c0)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:107 +0x37 fp=0xc023d419d8 sp=0xc023d41980 pc=0x113f6f7
go/types.(*TypeParam).Underlying(0x0?)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:91 +0x19 fp=0xc023d419f0 sp=0xc023d419d8 pc=0x113f639
go/types.under({0x1a69bf0?, 0xc0020b18c0?})
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/type.go:27 +0x58 fp=0xc023d41a08 sp=0xc023d419f0 pc=0x113ea98
go/types.(*TypeParam).iface(0xc0020b18c0)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:107 +0x37 fp=0xc023d41a60 sp=0xc023d41a08 pc=0x113f6f7
go/types.(*TypeParam).Underlying(0x0?)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:91 +0x19 fp=0xc023d41a78 sp=0xc023d41a60 pc=0x113f639
go/types.under({0x1a69bf0?, 0xc0020b18c0?})
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/type.go:27 +0x58 fp=0xc023d41a90 sp=0xc023d41a78 pc=0x113ea98
go/types.(*TypeParam).iface(0xc0020b18c0)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:107 +0x37 fp=0xc023d41ae8 sp=0xc023d41a90 pc=0x113f6f7
go/types.(*TypeParam).Underlying(0x0?)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:91 +0x19 fp=0xc023d41b00 sp=0xc023d41ae8 pc=0x113f639
go/types.under({0x1a69bf0?, 0xc0020b18c0?})
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/type.go:27 +0x58 fp=0xc023d41b18 sp=0xc023d41b00 pc=0x113ea98
go/types.(*TypeParam).iface(0xc0020b18c0)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:107 +0x37 fp=0xc023d41b70 sp=0xc023d41b18 pc=0x113f6f7
go/types.(*TypeParam).Underlying(0x0?)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:91 +0x19 fp=0xc023d41b88 sp=0xc023d41b70 pc=0x113f639
go/types.under({0x1a69bf0?, 0xc0020b18c0?})
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/type.go:27 +0x58 fp=0xc023d41ba0 sp=0xc023d41b88 pc=0x113ea98
go/types.(*TypeParam).iface(0xc0020b18c0)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:107 +0x37 fp=0xc023d41bf8 sp=0xc023d41ba0 pc=0x113f6f7
go/types.(*TypeParam).Underlying(0x0?)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:91 +0x19 fp=0xc023d41c10 sp=0xc023d41bf8 pc=0x113f639
go/types.under({0x1a69bf0?, 0xc0020b18c0?})
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/type.go:27 +0x58 fp=0xc023d41c28 sp=0xc023d41c10 pc=0x113ea98
go/types.(*TypeParam).iface(0xc0020b18c0)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:107 +0x37 fp=0xc023d41c80 sp=0xc023d41c28 pc=0x113f6f7
go/types.(*TypeParam).Underlying(0x0?)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:91 +0x19 fp=0xc023d41c98 sp=0xc023d41c80 pc=0x113f639
go/types.under({0x1a69bf0?, 0xc0020b18c0?})
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/type.go:27 +0x58 fp=0xc023d41cb0 sp=0xc023d41c98 pc=0x113ea98
go/types.(*TypeParam).iface(0xc0020b18c0)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:107 +0x37 fp=0xc023d41d08 sp=0xc023d41cb0 pc=0x113f6f7
go/types.(*TypeParam).Underlying(0x0?)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:91 +0x19 fp=0xc023d41d20 sp=0xc023d41d08 pc=0x113f639
go/types.under({0x1a69bf0?, 0xc0020b18c0?})
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/type.go:27 +0x58 fp=0xc023d41d38 sp=0xc023d41d20 pc=0x113ea98
go/types.(*TypeParam).iface(0xc0020b18c0)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:107 +0x37 fp=0xc023d41d90 sp=0xc023d41d38 pc=0x113f6f7
go/types.(*TypeParam).Underlying(0x0?)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:91 +0x19 fp=0xc023d41da8 sp=0xc023d41d90 pc=0x113f639
go/types.under({0x1a69bf0?, 0xc0020b18c0?})
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/type.go:27 +0x58 fp=0xc023d41dc0 sp=0xc023d41da8 pc=0x113ea98
go/types.(*TypeParam).iface(0xc0020b18c0)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:107 +0x37 fp=0xc023d41e18 sp=0xc023d41dc0 pc=0x113f6f7
go/types.(*TypeParam).Underlying(0x0?)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:91 +0x19 fp=0xc023d41e30 sp=0xc023d41e18 pc=0x113f639
go/types.under({0x1a69bf0?, 0xc0020b18c0?})
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/type.go:27 +0x58 fp=0xc023d41e48 sp=0xc023d41e30 pc=0x113ea98
go/types.(*TypeParam).iface(0xc0020b18c0)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:107 +0x37 fp=0xc023d41ea0 sp=0xc023d41e48 pc=0x113f6f7
go/types.(*TypeParam).Underlying(0x0?)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:91 +0x19 fp=0xc023d41eb8 sp=0xc023d41ea0 pc=0x113f639
go/types.under({0x1a69bf0?, 0xc0020b18c0?})
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/type.go:27 +0x58 fp=0xc023d41ed0 sp=0xc023d41eb8 pc=0x113ea98
go/types.(*TypeParam).iface(0xc0020b18c0)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:107 +0x37 fp=0xc023d41f28 sp=0xc023d41ed0 pc=0x113f6f7
go/types.(*TypeParam).Underlying(0x0?)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:91 +0x19 fp=0xc023d41f40 sp=0xc023d41f28 pc=0x113f639
go/types.under({0x1a69bf0?, 0xc0020b18c0?})
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/type.go:27 +0x58 fp=0xc023d41f58 sp=0xc023d41f40 pc=0x113ea98
go/types.(*TypeParam).iface(0xc0020b18c0)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:107 +0x37 fp=0xc023d41fb0 sp=0xc023d41f58 pc=0x113f6f7
go/types.(*TypeParam).Underlying(0x0?)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:91 +0x19 fp=0xc023d41fc8 sp=0xc023d41fb0 pc=0x113f639
go/types.under({0x1a69bf0?, 0xc0020b18c0?})
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/type.go:27 +0x58 fp=0xc023d41fe0 sp=0xc023d41fc8 pc=0x113ea98
go/types.(*TypeParam).iface(0xc0020b18c0)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:107 +0x37 fp=0xc023d42038 sp=0xc023d41fe0 pc=0x113f6f7
go/types.(*TypeParam).Underlying(0x0?)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:91 +0x19 fp=0xc023d42050 sp=0xc023d42038 pc=0x113f639
go/types.under({0x1a69bf0?, 0xc0020b18c0?})
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/type.go:27 +0x58 fp=0xc023d42068 sp=0xc023d42050 pc=0x113ea98
go/types.(*TypeParam).iface(0xc0020b18c0)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:107 +0x37 fp=0xc023d420c0 sp=0xc023d42068 pc=0x113f6f7
go/types.(*TypeParam).Underlying(0x0?)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:91 +0x19 fp=0xc023d420d8 sp=0xc023d420c0 pc=0x113f639
go/types.under({0x1a69bf0?, 0xc0020b18c0?})
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/type.go:27 +0x58 fp=0xc023d420f0 sp=0xc023d420d8 pc=0x113ea98
go/types.(*TypeParam).iface(0xc0020b18c0)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:107 +0x37 fp=0xc023d42148 sp=0xc023d420f0 pc=0x113f6f7
go/types.(*TypeParam).Underlying(0x0?)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:91 +0x19 fp=0xc023d42160 sp=0xc023d42148 pc=0x113f639
go/types.under({0x1a69bf0?, 0xc0020b18c0?})
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/type.go:27 +0x58 fp=0xc023d42178 sp=0xc023d42160 pc=0x113ea98
go/types.(*TypeParam).iface(0xc0020b18c0)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:107 +0x37 fp=0xc023d421d0 sp=0xc023d42178 pc=0x113f6f7
go/types.(*TypeParam).Underlying(0x0?)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:91 +0x19 fp=0xc023d421e8 sp=0xc023d421d0 pc=0x113f639
go/types.under({0x1a69bf0?, 0xc0020b18c0?})
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/type.go:27 +0x58 fp=0xc023d42200 sp=0xc023d421e8 pc=0x113ea98
go/types.(*TypeParam).iface(0xc0020b18c0)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:107 +0x37 fp=0xc023d42258 sp=0xc023d42200 pc=0x113f6f7
go/types.(*TypeParam).Underlying(0x0?)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:91 +0x19 fp=0xc023d42270 sp=0xc023d42258 pc=0x113f639
go/types.under({0x1a69bf0?, 0xc0020b18c0?})
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/type.go:27 +0x58 fp=0xc023d42288 sp=0xc023d42270 pc=0x113ea98
go/types.(*TypeParam).iface(0xc0020b18c0)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:107 +0x37 fp=0xc023d422e0 sp=0xc023d42288 pc=0x113f6f7
go/types.(*TypeParam).Underlying(0x0?)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:91 +0x19 fp=0xc023d422f8 sp=0xc023d422e0 pc=0x113f639
go/types.under({0x1a69bf0?, 0xc0020b18c0?})
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/type.go:27 +0x58 fp=0xc023d42310 sp=0xc023d422f8 pc=0x113ea98
go/types.(*TypeParam).iface(0xc0020b18c0)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:107 +0x37 fp=0xc023d42368 sp=0xc023d42310 pc=0x113f6f7
go/types.(*TypeParam).Underlying(0x0?)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:91 +0x19 fp=0xc023d42380 sp=0xc023d42368 pc=0x113f639
go/types.under({0x1a69bf0?, 0xc0020b18c0?})
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/type.go:27 +0x58 fp=0xc023d42398 sp=0xc023d42380 pc=0x113ea98
go/types.(*TypeParam).iface(0xc0020b18c0)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:107 +0x37 fp=0xc023d423f0 sp=0xc023d42398 pc=0x113f6f7
go/types.(*TypeParam).Underlying(0x0?)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:91 +0x19 fp=0xc023d42408 sp=0xc023d423f0 pc=0x113f639
go/types.under({0x1a69bf0?, 0xc0020b18c0?})
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/type.go:27 +0x58 fp=0xc023d42420 sp=0xc023d42408 pc=0x113ea98
go/types.(*TypeParam).iface(0xc0020b18c0)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:107 +0x37 fp=0xc023d42478 sp=0xc023d42420 pc=0x113f6f7
go/types.(*TypeParam).Underlying(0x0?)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:91 +0x19 fp=0xc023d42490 sp=0xc023d42478 pc=0x113f639
go/types.under({0x1a69bf0?, 0xc0020b18c0?})
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/type.go:27 +0x58 fp=0xc023d424a8 sp=0xc023d42490 pc=0x113ea98
go/types.(*TypeParam).iface(0xc0020b18c0)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:107 +0x37 fp=0xc023d42500 sp=0xc023d424a8 pc=0x113f6f7
go/types.(*TypeParam).Underlying(0x0?)
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/typeparam.go:91 +0x19 fp=0xc023d42518 sp=0xc023d42500 pc=0x113f639
go/types.under({0x1a69bf0?, 0xc0020b18c0?})
	C:/Users/lkasl/sdk/go1.18beta1/src/go/types/type.go:27 +0x58 fp=0xc023d42530 sp=0xc023d42518 pc=0x113ea98
...additional frames elided...
created by golang.org/x/tools/internal/memoize.(*Handle).run
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/memoize/memoize.go:320 +0x1b8

goroutine 1 [chan receive]:
golang.org/x/tools/internal/lsp/lsprpc.(*StreamServer).ServeStream(0xc000286ec0, {0x1a6d1d8, 0xc000606b70}, {0x1a6f528, 0xc000544730})
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/lsp/lsprpc/lsprpc.go:100 +0x3f2
golang.org/x/tools/internal/lsp/cmd.(*Serve).Run(0xc000400670, {0x1a6d1d8, 0xc0002b8120}, {0xc0000723d0?, 0x0?, 0x0?})
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/lsp/cmd/serve.go:123 +0x8f4
golang.org/x/tools/internal/tool.Run({0x1a6d1d8, 0xc0002b8120}, {0x1a6dbe8, 0xc000400670}, {0xc0000723d0, 0x0, 0x0})
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/tool/tool.go:153 +0x5ff
golang.org/x/tools/internal/lsp/cmd.(*Application).Run(0xc000400640, {0x1a6d168?, 0xc000032060?}, {0xc0000723d0?, 0x0, 0x0})
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/lsp/cmd/cmd.go:147 +0x15b
golang.org/x/tools/internal/tool.Run({0x1a6d168, 0xc000032060}, {0x1a6dba8, 0xc000400640}, {0xc0000723d0, 0x1, 0x1})
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/tool/tool.go:153 +0x5ff
golang.org/x/tools/internal/tool.Main({0x1a6d168, 0xc000032060}, {0x1a6dba8?, 0xc000400640?}, {0xc0000723d0, 0x1, 0x1})
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/tool/tool.go:92 +0x2ad
main.main()
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools/gopls@v0.7.4/main.go:25 +0x9e

goroutine 118 [select]:
golang.org/x/tools/internal/memoize.(*Handle).wait(0xc000d6bda0, {0x1a6d1d8, 0xc0000fe360})
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/memoize/memoize.go:366 +0xea
golang.org/x/tools/internal/memoize.(*Handle).run(0xc000d6bda0, {0x1a6d1d8, 0xc0000fe360}, 0x1e0bd17aa50?, {0x1a66d40?, 0xc000144900})
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/memoize/memoize.go:357 +0x1cc
golang.org/x/tools/internal/memoize.(*Handle).Get(0xc000d6bda0, {0x1a6d1d8, 0xc0000fe360}, 0xc0002e45c0, {0x1a66d40, 0xc000144900})
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/memoize/memoize.go:292 +0x1b6
golang.org/x/tools/internal/lsp/cache.(*packageHandle).check(0x17bfe00?, {0x1a6d1d8?, 0xc0000fe360?}, 0x0?)
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/lsp/cache/check.go:271 +0x3b
golang.org/x/tools/internal/lsp/cache.(*snapshot).ActivePackages(0xc00021e2c0?, {0x1a6d1d8, 0xc0000fe360})
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/lsp/cache/snapshot.go:948 +0xd2
golang.org/x/tools/internal/lsp/mod.DiagnosticsForMod({0x1a6d1d8, 0xc0000fe360}, {0x1a74890, 0xc000144900}, {0x1e0bcb77998, 0xc000282230})
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/lsp/mod/diagnostics.go:89 +0x82d
golang.org/x/tools/internal/lsp/mod.Diagnostics({0x1a6d1d8, 0xc0000fe1b0}, {0x1a74890, 0xc000144900})
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/lsp/mod/diagnostics.go:31 +0x33f
golang.org/x/tools/internal/lsp.(*Server).diagnose(0xc000618120, {0x1a6d788, 0xc0003086b0}, {0x1a74890, 0xc000144900}, 0x0)
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/lsp/diagnostics.go:197 +0x2cd
golang.org/x/tools/internal/lsp.(*Server).diagnoseDetached(0xee24c5?, {0x1a74890, 0xc000144900})
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/lsp/diagnostics.go:91 +0x78
golang.org/x/tools/internal/lsp.(*Server).addFolders.func3()
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/lsp/general.go:264 +0x45
created by golang.org/x/tools/internal/lsp.(*Server).addFolders
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/lsp/general.go:263 +0xafb

goroutine 1074 [chan receive]:
golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1.2()
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/jsonrpc2/handler.go:101 +0x70
created by golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/jsonrpc2/handler.go:100 +0x20a

goroutine 75 [chan receive]:
golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1.2()
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/jsonrpc2/handler.go:101 +0x70
created by golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/jsonrpc2/handler.go:100 +0x20a

goroutine 148 [chan receive]:
golang.org/x/tools/internal/lsp/debug.(*Instance).MonitorMemory.func1()
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/lsp/debug/serve.go:532 +0x7e
created by golang.org/x/tools/internal/lsp/debug.(*Instance).MonitorMemory
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/lsp/debug/serve.go:530 +0xea

goroutine 149 [syscall, locked to thread]:
syscall.SyscallN(0xf189c5?, {0xc00042fcf0?, 0x1e0bcd26f60?, 0x58?})
	C:/Users/lkasl/sdk/go1.18beta1/src/runtime/syscall_windows.go:538 +0x109
syscall.Syscall6(0x58?, 0x17e1f80?, 0x0?, 0xc00042fd88?, 0xeebc91?, 0xf07655?, 0xedb807?, 0xc00042fd70?)
	C:/Users/lkasl/sdk/go1.18beta1/src/runtime/syscall_windows.go:482 +0x50
syscall.ReadFile(0x1?, {0xc0002ba000?, 0x1000, 0x800000?}, 0x7ffff800000?, 0x2?)
	C:/Users/lkasl/sdk/go1.18beta1/src/syscall/zsyscall_windows.go:1024 +0x94
syscall.Read(0xc000126000?, {0xc0002ba000?, 0x0?, 0x2?})
	C:/Users/lkasl/sdk/go1.18beta1/src/syscall/syscall_windows.go:380 +0x2e
internal/poll.(*FD).Read(0xc000126000, {0xc0002ba000, 0x1000, 0x1000})
	C:/Users/lkasl/sdk/go1.18beta1/src/internal/poll/fd_windows.go:427 +0x1b4
os.(*File).read(...)
	C:/Users/lkasl/sdk/go1.18beta1/src/os/file_posix.go:31
os.(*File).Read(0xc000006010, {0xc0002ba000?, 0x2?, 0x2?})
	C:/Users/lkasl/sdk/go1.18beta1/src/os/file.go:119 +0x5e
golang.org/x/tools/internal/fakenet.(*connFeeder).run(0xc0002b81e0)
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/fakenet/conn.go:121 +0xd2
created by golang.org/x/tools/internal/fakenet.NewConn
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/fakenet/conn.go:26 +0x38a

goroutine 150 [select]:
golang.org/x/tools/internal/fakenet.(*connFeeder).run(0xc0002b8210)
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/fakenet/conn.go:115 +0x9f
created by golang.org/x/tools/internal/fakenet.NewConn
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/fakenet/conn.go:27 +0x3d6

goroutine 162 [select]:
golang.org/x/tools/internal/fakenet.(*connFeeder).do(0xc0002b81e0, {0xc0002ba000?, 0x0?, 0x0?})
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/fakenet/conn.go:103 +0x135
golang.org/x/tools/internal/fakenet.(*fakeConn).Read(0x0?, {0xc0002ba000?, 0x0?, 0x0?})
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/fakenet/conn.go:67 +0x25
bufio.(*Reader).fill(0xc00013ac60)
	C:/Users/lkasl/sdk/go1.18beta1/src/bufio/bufio.go:106 +0x103
bufio.(*Reader).ReadSlice(0xc00013ac60, 0x0?)
	C:/Users/lkasl/sdk/go1.18beta1/src/bufio/bufio.go:371 +0x2f
bufio.(*Reader).collectFragments(0xc00203f230?, 0x0?)
	C:/Users/lkasl/sdk/go1.18beta1/src/bufio/bufio.go:446 +0x74
bufio.(*Reader).ReadString(0xc000e17c88?, 0x30?)
	C:/Users/lkasl/sdk/go1.18beta1/src/bufio/bufio.go:494 +0x2b
golang.org/x/tools/internal/jsonrpc2.(*headerStream).Read(0xc000288810, {0x1a6d1d8, 0xc000606b70})
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/jsonrpc2/stream.go:110 +0xb8
golang.org/x/tools/internal/jsonrpc2.(*conn).run(0xc000544730, {0x1a6d1d8, 0xc000606b70}, 0xc00060e138)
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/jsonrpc2/conn.go:196 +0xbc
created by golang.org/x/tools/internal/jsonrpc2.(*conn).Go
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/jsonrpc2/conn.go:189 +0xb0

goroutine 1090 [semacquire]:
sync.runtime_Semacquire(0x7411d311?)
	C:/Users/lkasl/sdk/go1.18beta1/src/runtime/sema.go:56 +0x25
sync.(*WaitGroup).Wait(0x0?)
	C:/Users/lkasl/sdk/go1.18beta1/src/sync/waitgroup.go:136 +0x52
golang.org/x/tools/internal/memoize.(*Generation).Destroy(0xc0002e45c0, {0x182d37d, 0x16})
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/memoize/memoize.go:76 +0x65
created by golang.org/x/tools/internal/lsp/cache.(*View).invalidateContent
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/lsp/cache/view.go:710 +0x25c

goroutine 1092 [select]:
golang.org/x/tools/internal/memoize.(*Handle).wait(0xc000d6bda0, {0x1a6d1d8, 0xc001dd4c00})
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/memoize/memoize.go:366 +0xea
golang.org/x/tools/internal/memoize.(*Handle).Get(0xc000d6bda0, {0x1a6d1d8, 0xc001dd4c00}, 0xc00306e1c0, {0x1a66d40, 0xc0009ff300})
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/memoize/memoize.go:294 +0x13f
golang.org/x/tools/internal/lsp/cache.(*packageHandle).check(0x1a6d1d8?, {0x1a6d1d8?, 0xc001dd4c00?}, 0xc001b33e50?)
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/lsp/cache/check.go:271 +0x3b
golang.org/x/tools/internal/lsp/cache.(*snapshot).PackagesForFile(0xc0009ff300?, {0x1a6d1d8, 0xc001dd4ab0}, {0xc001b33e50, 0x44}, 0x0?, 0x0?)
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/lsp/cache/snapshot.go:470 +0x225
golang.org/x/tools/internal/lsp.(*Server).diagnoseChangedFiles(0xc000618120, {0x1a6d1d8, 0xc001dd4750}, {0x1a74890, 0xc0009ff300}, {0xc002337140, 0x1, 0x0?}, 0x0)
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/lsp/diagnostics.go:156 +0x5ae
golang.org/x/tools/internal/lsp.(*Server).diagnoseSnapshot(0xc000618120, {0x1a74890, 0xc0009ff300}, {0xc002337140, 0x1, 0x1}, 0x0?)
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/lsp/diagnostics.go:121 +0x1ff
golang.org/x/tools/internal/lsp.(*Server).diagnoseSnapshots.func1({0x1a74890?, 0xc0009ff300?}, {0xc002337140?, 0xc000202300?, 0xc0005ae080?})
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/lsp/diagnostics.go:101 +0x85
created by golang.org/x/tools/internal/lsp.(*Server).diagnoseSnapshots
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/lsp/diagnostics.go:99 +0x90

goroutine 96 [select]:
golang.org/x/tools/internal/memoize.(*Handle).wait(0xc000d6bda0, {0x1a6d1d8, 0xc001dd5bc0})
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/memoize/memoize.go:366 +0xea
golang.org/x/tools/internal/memoize.(*Handle).Get(0xc000d6bda0, {0x1a6d1d8, 0xc001dd5bc0}, 0xc00306e1c0, {0x1a66d40, 0xc0009ff300})
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/memoize/memoize.go:294 +0x13f
golang.org/x/tools/internal/lsp/cache.(*packageHandle).check(0x1a6d130?, {0x1a6d1d8?, 0xc001dd5bc0?}, 0xc001b33e50?)
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/lsp/cache/check.go:271 +0x3b
golang.org/x/tools/internal/lsp/cache.(*snapshot).PackageForFile(0xc002b76190?, {0x1a6d130, 0xc0005ae240}, {0xc001b33e50, 0x44}, 0xc001d87f88?, 0x1)
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/lsp/cache/snapshot.go:508 +0x25c
golang.org/x/tools/internal/lsp.goLinks({0x1a6d130, 0xc0005ae240}, {0x1a74890, 0xc0009ff300}, {0x1a6db68?, 0xc0020694a0?})
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/lsp/link.go:103 +0xd6
golang.org/x/tools/internal/lsp.(*Server).documentLink(0x16cf0e0?, {0x1a6d130, 0xc0005ae240}, 0xc0002e9680?)
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/lsp/link.go:37 +0x170
golang.org/x/tools/internal/lsp.(*Server).DocumentLink(0xc00003c3f0?, {0x1a6d130?, 0xc0005ae240?}, 0x16cf0e0?)
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/lsp/server_gen.go:104 +0x25
golang.org/x/tools/internal/lsp/protocol.serverDispatch({0x1a6d130, 0xc0005ae240}, {0x1a77f60, 0xc000618120}, 0xc001dd57a0, {0x1a6d398, 0xc0005ae180})
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/lsp/protocol/tsserver.go:502 +0x23eb
golang.org/x/tools/internal/lsp/protocol.ServerHandler.func1({0x1a6d130, 0xc0005ae240}, 0xc001dd57a0, {0x1a6d398, 0xc0005ae180})
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/lsp/protocol/protocol.go:154 +0x90
golang.org/x/tools/internal/lsp/lsprpc.handshaker.func1({0x1a6d130, 0xc0005ae240}, 0xc001dd57a0, {0x1a6d398?, 0xc0005ae180?})
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/lsp/lsprpc/lsprpc.go:506 +0xa43
golang.org/x/tools/internal/jsonrpc2.MustReplyHandler.func1({0x1a6d130, 0xc0005ae240}, 0xc0002892a8, {0x1a6d398?, 0xc0005ae180?})
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/jsonrpc2/handler.go:35 +0xf6
golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1.2()
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/jsonrpc2/handler.go:103 +0xa3
created by golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/jsonrpc2/handler.go:100 +0x20a

goroutine 133 [chan receive]:
golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1.2()
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/jsonrpc2/handler.go:101 +0x70
created by golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/jsonrpc2/handler.go:100 +0x20a

goroutine 132 [chan receive]:
golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1.2()
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/jsonrpc2/handler.go:101 +0x70
created by golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/jsonrpc2/handler.go:100 +0x20a

goroutine 180 [chan receive]:
golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1.2()
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/jsonrpc2/handler.go:101 +0x70
created by golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/jsonrpc2/handler.go:100 +0x20a

goroutine 1075 [chan receive]:
golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1.2()
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/jsonrpc2/handler.go:101 +0x70
created by golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/jsonrpc2/handler.go:100 +0x20a

goroutine 1033 [chan receive]:
golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1.2()
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/jsonrpc2/handler.go:101 +0x70
created by golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/jsonrpc2/handler.go:100 +0x20a

goroutine 1035 [chan receive]:
golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1.2()
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/jsonrpc2/handler.go:101 +0x70
created by golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/jsonrpc2/handler.go:100 +0x20a

goroutine 1034 [chan receive]:
golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1.2()
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/jsonrpc2/handler.go:101 +0x70
created by golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/jsonrpc2/handler.go:100 +0x20a

goroutine 1091 [semacquire]:
sync.runtime_Semacquire(0xc00306e400?)
	C:/Users/lkasl/sdk/go1.18beta1/src/runtime/sema.go:56 +0x25
sync.(*WaitGroup).Wait(0xc001023f28?)
	C:/Users/lkasl/sdk/go1.18beta1/src/sync/waitgroup.go:136 +0x52
golang.org/x/tools/internal/lsp.(*Server).diagnoseSnapshots(0xc000618120, 0xc000144900?, 0x0)
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/lsp/diagnostics.go:104 +0x1f6
golang.org/x/tools/internal/lsp.(*Server).processModifications.func1()
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/lsp/text_synchronization.go:300 +0x45
created by golang.org/x/tools/internal/lsp.(*Server).processModifications
	C:/Users/lkasl/go/pkg/mod/golang.org/x/tools@v0.1.9-0.20211209172050-90a85b2969be/internal/lsp/text_synchronization.go:299 +0x2db
[Info  - 13:16:21] Connection to server got closed. Server will restart.
[Error - 13:16:21] Request textDocument/documentLink failed.
Error: Connection got disposed.
    at Object.dispose (c:\Users\lkasl\.vscode-insiders\extensions\golang.go-nightly-2021.12.2121\dist\goMain.js:4909:25)
    at Object.dispose (c:\Users\lkasl\.vscode-insiders\extensions\golang.go-nightly-2021.12.2121\dist\goMain.js:9694:35)
    at LanguageClient2.handleConnectionClosed (c:\Users\lkasl\.vscode-insiders\extensions\golang.go-nightly-2021.12.2121\dist\goMain.js:11902:38)
    at LanguageClient2.handleConnectionClosed (c:\Users\lkasl\.vscode-insiders\extensions\golang.go-nightly-2021.12.2121\dist\goMain.js:14311:15)
    at closeHandler (c:\Users\lkasl\.vscode-insiders\extensions\golang.go-nightly-2021.12.2121\dist\goMain.js:11890:16)
    at CallbackList.invoke (c:\Users\lkasl\.vscode-insiders\extensions\golang.go-nightly-2021.12.2121\dist\goMain.js:3025:35)
    at Emitter.fire (c:\Users\lkasl\.vscode-insiders\extensions\golang.go-nightly-2021.12.2121\dist\goMain.js:3076:34)
    at closeHandler (c:\Users\lkasl\.vscode-insiders\extensions\golang.go-nightly-2021.12.2121\dist\goMain.js:4171:24)
    at CallbackList.invoke (c:\Users\lkasl\.vscode-insiders\extensions\golang.go-nightly-2021.12.2121\dist\goMain.js:3025:35)
    at Emitter.fire (c:\Users\lkasl\.vscode-insiders\extensions\golang.go-nightly-2021.12.2121\dist\goMain.js:3076:34)
    at StreamMessageReader.fireClose (c:\Users\lkasl\.vscode-insiders\extensions\golang.go-nightly-2021.12.2121\dist\goMain.js:3218:27)
    at Socket.<anonymous> (c:\Users\lkasl\.vscode-insiders\extensions\golang.go-nightly-2021.12.2121\dist\goMain.js:3301:42)
    at Socket.emit (events.js:327:22)
    at Pipe.<anonymous> (net.js:673:12)
@gopherbot gopherbot added this to the Untriaged milestone Dec 26, 2021
@lukasl-dev
Copy link
Author

My handler.go file:

package request

type H interface {
	~func() error
}

func Handle[H H](h H) error {
	return h()
}

func foo() {
	Handle(func() error { return nil })
}

@lukasl-dev lukasl-dev changed the title gopls: automated issue report (crash) gopls: server crash while using generics Dec 26, 2021
@suzmue
Copy link
Contributor

suzmue commented Dec 28, 2021

This looks like a duplicate of golang/go#50321

The bug is described in @findleyr s comment: golang/go#50321 (comment)

@suzmue suzmue closed this as completed Dec 28, 2021
@suzmue suzmue added the upstream-go Issues that are caused by bugs in the Go toolchain. label Dec 28, 2021
@golang golang locked and limited conversation to collaborators Dec 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge upstream-go Issues that are caused by bugs in the Go toolchain.
Projects
None yet
Development

No branches or pull requests

3 participants