Skip to content
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

internal error in pointer analysis: runtime error: invalid memory address or nil pointer dereference #179

Open
agpai2 opened this issue Apr 9, 2024 · 0 comments

Comments

@agpai2
Copy link

agpai2 commented Apr 9, 2024

I am unable to generate visualizations using this package. I always end up getting this or a similar panic error. Any advice on how this can be resolved?

Internal panic in pointer analysis:
goroutine 1 [running]:
runtime/debug.Stack()
        /opt/homebrew/Cellar/go/1.22.1/libexec/src/runtime/debug/stack.go:24 +0x64
runtime/debug.PrintStack()
        /opt/homebrew/Cellar/go/1.22.1/libexec/src/runtime/debug/stack.go:16 +0x1c
golang.org/x/tools/go/pointer.Analyze.func1()
        /Users/<user_id>/go/pkg/mod/golang.org/x/tools/go/[email protected]/analysis.go:225 +0xc0
panic({0x100d785a0?, 0x1011417c0?})
        /opt/homebrew/Cellar/go/1.22.1/libexec/src/runtime/panic.go:770 +0x124
golang.org/x/tools/go/ssa.(*Function).Type(0x100d73b80?)
        /Users/<user_id>/go/pkg/mod/golang.org/x/[email protected]/go/ssa/ssa.go:1523
golang.org/x/tools/go/pointer.(*analysis).valueNode(0x14060556000, {0x100e1b088, 0x0})
        /Users/<user_id>/go/pkg/mod/golang.org/x/tools/go/[email protected]/gen.go:234 +0xa8
golang.org/x/tools/go/pointer.(*analysis).genMethodsOf(0x14060556000, {0x100e153a0, 0x1401e820a80})
        /Users/<user_id>/go/pkg/mod/golang.org/x/tools/go/[email protected]/gen.go:1297 +0xd8
golang.org/x/tools/go/pointer.(*analysis).generate(0x14060556000)
        /Users/<user_id>/go/pkg/mod/golang.org/x/tools/go/[email protected]/gen.go:1336 +0x268
golang.org/x/tools/go/pointer.Analyze(0x1406054def0)
        /Users/<user_id>i/go/pkg/mod/golang.org/x/tools/go/[email protected]/analysis.go:290 +0x9a0
main.(*analysis).DoAnalysis(0x140000a49c0, {0x100c0508e, 0x7}, {0x0, 0x0}, 0x0, {0x140000320f0, 0x1, 0x1})
        /Users/<user_id>/go/pkg/mod/github.com/ofabry/[email protected]/analysis.go:129 +0x4d8
main.main()
        /Users/<user_id>i/go/pkg/mod/github.com/ofabry/[email protected]/main.go:145 +0x270
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant