-
Notifications
You must be signed in to change notification settings - Fork 18k
x/vuln: "panic: interface conversion: types.Type is *types.Interface, not *types.Array" #59754
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
Comments
Similar to #57174. cc @golang/vulndb |
I was not able to reproduce the issue. Do you still experience the issue on the most recent version of govulncheck? |
Yes, it is still reproducible, but now it only fails on go version 1.20; on 1.19, it does not fail. ❯ govulncheck ./...
govulncheck is an experimental tool. Share feedback at https://go.dev/s/govulncheck-feedback.
Using go1.20.3 and govulncheck@v0.0.0 with
vulnerability data from https://vuln.go.dev (last modified 2023-04-18 21:32:26 +0000 UTC).
Scanning your code and 555 packages across 93 dependent modules for known vulnerabilities...
panic: interface conversion: types.Type is *types.Interface, not *types.Array
goroutine 9028 [running]:
golang.org/x/tools/go/callgraph/vta.sliceArrayElem({0x164f8d8, 0xc052ecc8a0})
/Users/alexeykiselev/go/pkg/mod/golang.org/x/tools@v0.8.1-0.20230421161920-b9619ee54b47/go/callgraph/vta/utils.go:126 +0x185
golang.org/x/tools/go/callgraph/vta.(*builder).indexAddr(0xc058a3fc08?, 0xc052ec5d40)
/Users/alexeykiselev/go/pkg/mod/golang.org/x/tools@v0.8.1-0.20230421161920-b9619ee54b47/go/callgraph/vta/graph.go:486 +0x38
golang.org/x/tools/go/callgraph/vta.(*builder).instr(0xc058a3faf0?, {0x16534b8?, 0xc052ec5d40?})
/Users/alexeykiselev/go/pkg/mod/golang.org/x/tools@v0.8.1-0.20230421161920-b9619ee54b47/go/callgraph/vta/graph.go:358 +0x2cd
golang.org/x/tools/go/callgraph/vta.(*builder).fun(...)
/Users/alexeykiselev/go/pkg/mod/golang.org/x/tools@v0.8.1-0.20230421161920-b9619ee54b47/go/callgraph/vta/graph.go:300
golang.org/x/tools/go/callgraph/vta.(*builder).visit(0xc058a3fc08, 0x50?)
/Users/alexeykiselev/go/pkg/mod/golang.org/x/tools@v0.8.1-0.20230421161920-b9619ee54b47/go/callgraph/vta/graph.go:292 +0x1bf
golang.org/x/tools/go/callgraph/vta.typePropGraph(...)
/Users/alexeykiselev/go/pkg/mod/golang.org/x/tools@v0.8.1-0.20230421161920-b9619ee54b47/go/callgraph/vta/graph.go:266
golang.org/x/tools/go/callgraph/vta.CallGraph(0xc058a3fee0?, 0xc06f3a7e70)
/Users/alexeykiselev/go/pkg/mod/golang.org/x/tools@v0.8.1-0.20230421161920-b9619ee54b47/go/callgraph/vta/vta.go:75 +0xe5
golang.org/x/vuln/internal/vulncheck.callGraph({0x1651cc0, 0xc0428b2690}, 0xc03b21afc0, {0xc06f3c0000, 0x1628, 0xc000202000?})
/Users/alexeykiselev/go/pkg/mod/golang.org/x/vuln@v0.1.0/internal/vulncheck/utils.go:80 +0x23e
golang.org/x/vuln/internal/vulncheck.Source.func1()
/Users/alexeykiselev/go/pkg/mod/golang.org/x/vuln@v0.1.0/internal/vulncheck/source.go:77 +0xf5
created by golang.org/x/vuln/internal/vulncheck.Source
/Users/alexeykiselev/go/pkg/mod/golang.org/x/vuln@v0.1.0/internal/vulncheck/source.go:73 +0x385
This is from our GitHub Action task https://github.com/wavesplatform/gowaves/actions/runs/4818244461/jobs/8579970029?pr=1082
|
As far as I understand, your local GOOS is darwin. What about the Github Action? |
It's |
Change https://go.dev/cl/492815 mentions this issue: |
Change https://go.dev/cl/492739 mentions this issue: |
What version of Go are you using (
go version
)?Does this issue reproduce at the latest version of golang.org/x/vuln?
Yes, the version is
v0.0.0-20230420164154-4183d94fd335
.What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
govulncheck
.gowaves
.govulncheck
.What did you expect to see?
Successful execution.
What did you see instead?
Also project's GitHub Action fails with the same error, but different version of
govulncheck
:The text was updated successfully, but these errors were encountered: