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

x/tools/go/pointer: interface conversion: *ssa.Convert is not types.Type: missing method Underlying #27002

Closed
dominikh opened this issue Aug 15, 2018 · 1 comment
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. Tools This label describes issues relating to any tools in the x/tools repository.
Milestone

Comments

@dominikh
Copy link
Member

What version of Go are you using (go version)?

go version devel +81555cb4f3 Tue Aug 14 09:19:38 2018 +0000 linux/amd64

What did you do?

callgraph -test -algo pta reflect

What did you see?

Internal panic in pointer analysis:
goroutine 1 [running]:
runtime/debug.Stack(0x24, 0x0, 0x0)
	/usr/lib/go/src/runtime/debug/stack.go:24 +0xa7
runtime/debug.PrintStack()
	/usr/lib/go/src/runtime/debug/stack.go:16 +0x22
golang.org/x/tools/go/pointer.Analyze.func1(0xc420469c18)
	/home/dominikh/prj/src/golang.org/x/tools/go/pointer/analysis.go:227 +0x110
panic(0x6d2c60, 0xc4265ef180)
	/usr/lib/go/src/runtime/panic.go:502 +0x229
golang.org/x/tools/go/pointer.(*rtypeInOutConstraint).solve(0xc42e669540, 0xc429543500, 0xc42b97a600)
	/home/dominikh/prj/src/golang.org/x/tools/go/pointer/reflect.go:1724 +0x1a0
golang.org/x/tools/go/pointer.(*analysis).solveConstraints(0xc429543500, 0xc423ecca50, 0xc42b97a600)
	/home/dominikh/prj/src/golang.org/x/tools/go/pointer/solve.go:165 +0xa9
golang.org/x/tools/go/pointer.(*analysis).solve(0xc429543500)
	/home/dominikh/prj/src/golang.org/x/tools/go/pointer/solve.go:59 +0x2fb
golang.org/x/tools/go/pointer.Analyze(0xc42716ef50, 0x0, 0x76b3c0, 0xc42c995ef0)
	/home/dominikh/prj/src/golang.org/x/tools/go/pointer/analysis.go:331 +0x51d
main.doCallgraph(0x0, 0x0, 0x0, 0x0, 0x7ffcb53e53bb, 0x3, 0x73e59e, 0x3f, 0x1, 0xc42000e180, ...)
	/home/dominikh/prj/src/golang.org/x/tools/cmd/callgraph/main.go:230 +0x2b9
main.main()
	/home/dominikh/prj/src/golang.org/x/tools/cmd/callgraph/main.go:159 +0xa5
callgraph: internal error in pointer analysis: interface conversion: *ssa.Convert is not types.Type: missing method Underlying (please report this bug)

/cc @alandonovan

@gopherbot gopherbot added this to the Unreleased milestone Aug 15, 2018
@dominikh dominikh added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Aug 15, 2018
@gopherbot gopherbot added the Tools This label describes issues relating to any tools in the x/tools repository. label Sep 12, 2019
@adonovan
Copy link
Member

x/tools/go/pointer was deleted; see #59676.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. Tools This label describes issues relating to any tools in the x/tools repository.
Projects
None yet
Development

No branches or pull requests

3 participants