-
Notifications
You must be signed in to change notification settings - Fork 113
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
gocritic check
panics with invalid memory address or nil pointer dereference
#1388
Comments
Minimal reproduction: package main
import "os"
func main() {
os.Exit(1)
} $ gocritic check pnc.go
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x60316a]
goroutine 44 [running]:
go/types.(*Checker).handleBailout(0xc0003d2000, 0xc00056dba0)
/usr/lib/google-golang/src/go/types/check.go:339 +0x88
panic({0x7eb1c0?, 0xb53f60?})
... package main
import "os"
func main() {
// os.Exit(1)
} $ gocritic check pnc.go
$ # all good |
mr0re1
added a commit
to mr0re1/hpc-toolkit
that referenced
this issue
Dec 8, 2023
mr0re1
added a commit
to mr0re1/hpc-toolkit
that referenced
this issue
Dec 8, 2023
Looks like go-critic was built with |
ek-nag
pushed a commit
to ek-nag/hpc-toolkit
that referenced
this issue
Dec 8, 2023
Can you check that this works with Go 1.22 RC 2, please? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: