-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
x/vuln: Panic "cannot range over: func(yield func(K, V) bool) using golang 1.23.0 #68978
Comments
It is interesting that the version of govulncheck is If yes, do you have a test code on which we could reproduce the issue? |
I will double check but as stated I ran go install golang.org/x/vuln/cmd/govulncheck@latest within the 1.23 container, I would expect that would grab the latest but I could be mistaken. I'll check my docker file to see if 2 versions are there. as for the code, I can't post the proprietary code but as stated this worked with a 1.22.5 container and that is the full stack trace. |
This line in the stack trace means that you are using x/tools at the pseudo version v0.12.1-0.20230815132531-74c255bcf846 . The latest version of x/tools for vulncheck is v0.23.0. This is before https://go.googlesource.com/vuln/+/286bb05c5ff5bbdfe3b680955a2560ba16c2ac4a. So I am somewhat confident what you are running is [email protected] . Not v1.1.3. I do not know why you are running this version, but that seems to be the problem.
This suggests both a Makefile and dockerfile are involved. A minimized reproducer or more details about both of these components would help. |
I did find an older version on vulncheck in the image and once updated it started to work again. Thank you for your assistance! |
govulncheck version
Go: go1.23.0
Scanner: [email protected]
DB: https://vuln.go.dev/
DB updated: 2024-08-19 17:26:34 +0000 UTC
Does this issue reproduce at the latest version of golang.org/x/vuln?
yes, we are seeing this with @latest
Output of
go env
in your module/workspace:What did you do?
Simply ran
go install golang.org/x/vuln/cmd/govulncheck@latest ; govulncheck ./...
within a gitlab pipelineWhat did you see happen?
running go vulncheck within a container built
FROM golang:1.23.0
a scan of our repro fails with the following:What did you expect to see?
previous versions of golang did not panic
The text was updated successfully, but these errors were encountered: