You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We build a minimal reproducer.
This code obviously no longer makes logical sense, but is syntactically valid and can actually be executed (even though it is blocking forever).
go.mod:
module thisisjustfortesting
go 1.22.0
toolchain go1.22.2
Staticcheck is build from master (currently 0a683c9)
-debug.version
isgo version is:
go version go1.22.2 linux/amd64
go env (with obfuscated personal values):
command that was ran:
./staticcheck cmd/main.go
output:
i guess i can skip the "what's wrong" part :)
We build a minimal reproducer.
This code obviously no longer makes logical sense, but is syntactically valid and can actually be executed (even though it is blocking forever).
go.mod
:cmd/main.go
:Each single part of the code seems to be required to trigger the crash. Including the very strange ineffective assignments at the end of the for loop.
When applying the following patch the crash goes away.
However i am completely unsure about potential negative side-effects of this patch.
Thank you
The text was updated successfully, but these errors were encountered: