-
-
Notifications
You must be signed in to change notification settings - Fork 425
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
panic: runtime error: invalid memory address or nil pointer dereference [recovered] #180
Comments
go v1.22 go-callvis . goroutine 228 [running]: |
It seems that only go1.22 version will report this error. I tried to change to go1.21 version and compiled it and it worked normally. |
After I switched to go1.21.2, it still not work panic: runtime error: invalid memory address or nil pointer dereference [recovered] goroutine 114 [running]: |
I'm getting a similar panic when I try to get the callgraph for https://github.com/bbkane/envelope/
|
go-callvis --version mee too |
go-callvis
v0.7.0 built from git (unknown)
run go-callvis ${package}
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=0x2 addr=0x0 pc=0x1024ec084]
goroutine 61 [running]:
go/types.(*Checker).handleBailout(0x14000034200, 0x1400013fb98)
/opt/homebrew/opt/go/libexec/src/go/types/check.go:367 +0x9c
panic({0x102a27f60?, 0x102df17b0?})
/opt/homebrew/opt/go/libexec/src/runtime/panic.go:770 +0x124
go/types.(*StdSizes).Sizeof(0x0, {0x102ac4650, 0x102df84e0})
/opt/homebrew/opt/go/libexec/src/go/types/sizes.go:228 +0x314
go/types.(*Config).sizeof(...)
/opt/homebrew/opt/go/libexec/src/go/types/sizes.go:333
go/types.representableConst.func1({0x102ac4650?, 0x102df84e0?})
/opt/homebrew/opt/go/libexec/src/go/types/const.go:76 +0x9c
go/types.representableConst({0x102ac7888, 0x102e44a20}, 0x14000034200, 0x102df84e0, 0x1400013df98)
/opt/homebrew/opt/go/libexec/src/go/types/const.go:92 +0x138
go/types.(*Checker).representation(0x14000034200, 0x140004eb180, 0x102df84e0)
/opt/homebrew/opt/go/libexec/src/go/types/const.go:256 +0x68
go/types.(*Checker).implicitTypeAndValue(0x14000034200, 0x140004eb180, {0x102ac4650, 0x102df84e0})
/opt/homebrew/opt/go/libexec/src/go/types/expr.go:375 +0x304
go/types.(*Checker).convertUntyped(0x14000034200, 0x140004eb180, {0x102ac4650, 0x102df84e0})
/opt/homebrew/opt/go/libexec/src/go/types/const.go:289 +0x30
go/types.(*Checker).matchTypes(0x14000034200, 0x140004eb140, 0x140004eb180)
/opt/homebrew/opt/go/libexec/src/go/types/expr.go:926 +0x7c
The text was updated successfully, but these errors were encountered: