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: not a *reflect.rtype-tagged object #185

Open
tappoz opened this issue Jun 19, 2024 · 0 comments
Open

Comments

@tappoz
Copy link

tappoz commented Jun 19, 2024

go version go1.21.0 linux/amd64

went to the project directory where the go.mod file is located, then tried both:

  • ~/go/bin/go-callvis -file=foo <my-package>/
  • ~/go/bin/go-callvis <my-package>/

same error:

Internal panic in pointer analysis:
goroutine 1 [running]:
runtime/debug.Stack()
	/usr/local/go/src/runtime/debug/stack.go:24 +0x5e
runtime/debug.PrintStack()
	/usr/local/go/src/runtime/debug/stack.go:16 +0x13
golang.org/x/tools/go/pointer.Analyze.func1()
	/home/<my-user>/go/pkg/mod/golang.org/x/[email protected]/go/pointer/analysis.go:225 +0xc5
panic({0xa421c0?, 0xc08a8988b0?})
	/usr/local/go/src/runtime/panic.go:914 +0x21f
golang.org/x/tools/go/pointer.(*analysis).rtypeTaggedValue(0xc078138200, 0x0?)
	/home/<my-user>/go/pkg/mod/golang.org/x/[email protected]/go/pointer/gen.go:213 +0x128
golang.org/x/tools/go/pointer.(*reflectMakeSliceConstraint).solve(0xc0c0784c10, 0xc078138200, 0x0?)
	/home/<my-user>/go/pkg/mod/golang.org/x/[email protected]/go/pointer/reflect.go:1242 +0xe5
golang.org/x/tools/go/pointer.(*analysis).solveConstraints(0xc078138200, 0xc0a73885d0, 0xc06c8be9c0)
	/home/<my-user>/go/pkg/mod/golang.org/x/[email protected]/go/pointer/solve.go:163 +0x72
golang.org/x/tools/go/pointer.(*analysis).solve(0xc078138200)
	/home/<my-user>/go/pkg/mod/golang.org/x/[email protected]/go/pointer/solve.go:59 +0x2bf
golang.org/x/tools/go/pointer.Analyze(0xc03ef323c0)
	/home/<my-user>/go/pkg/mod/golang.org/x/[email protected]/go/pointer/analysis.go:329 +0xc2c
main.(*analysis).DoAnalysis(0xc000156a00, {0xb04884, 0x7}, {0x0, 0x0}, 0x0, {0xc000118170, 0x1, 0x1})
	/home/<my-user>/go/pkg/mod/github.com/ofabry/[email protected]/analysis.go:129 +0x5f5
main.main()
	/home/<my-user>/go/pkg/mod/github.com/ofabry/[email protected]/main.go:145 +0x28a
2024/06/19 09:56:03 internal error in pointer analysis: not a *reflect.rtype-tagged object: obj=n151394 tag=*reflect.rtype payload=n151395 (please report this bug)
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