Navigation Menu

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/cmd/callgraph: pta algorithm fails with internal error #31787

Closed
rootAvish opened this issue May 1, 2019 · 2 comments
Closed

x/tools/cmd/callgraph: pta algorithm fails with internal error #31787

rootAvish opened this issue May 1, 2019 · 2 comments
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

@rootAvish
Copy link

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

$ go version
1.12.1

Does this issue reproduce with the latest release?

What operating system and processor architecture are you using (go env)?

MacOS Mojave, amd64

go env Output
$ go env

GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/avgupta/Library/Caches/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/avgupta/golang"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/Cellar/go/1.12.1/libexec"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.12.1/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/9k/_rqr9c3564vfgzh1x2d8ndzh0000gn/T/go-build929933793=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

  • Clone the kubernetes/kubernetes repo as with go get -d k8s.io/kubernetes, mine was at revision 8f5a62af48d707eab9acd557a4b7366acb42dcf4

  • Build, with make

  • Try to build the callgraph with pta algorithm, as with:

$ callgraph -algo=pta ./cmd/hyperkube

What did you expect to see?

A callgraph, also the output said I should report this bug.

What did you see instead?

Error output
^Internal panic in pointer analysis:
goroutine 1 [running]:
runtime/debug.Stack(0x24, 0x0, 0x0)
	/usr/local/Cellar/go/1.11.4/libexec/src/runtime/debug/stack.go:24 +0xa7
runtime/debug.PrintStack()
	/usr/local/Cellar/go/1.11.4/libexec/src/runtime/debug/stack.go:16 +0x22
golang.org/x/tools/go/pointer.Analyze.func1(0xc1dff3dc90)
	/Users/avgupta/golang/src/golang.org/x/tools/go/pointer/analysis.go:227 +0x10b
panic(0x12e7ec0, 0xc0e9e1e2a0)
	/usr/local/Cellar/go/1.11.4/libexec/src/runtime/panic.go:513 +0x1b9
golang.org/x/tools/go/pointer.(*analysis).taggedValue(0xc0807e88c0, 0xc0000e3e2f, 0x2, 0x64, 0xc046d1c000)
	/Users/avgupta/golang/src/golang.org/x/tools/go/pointer/gen.go:272 +0x12a
golang.org/x/tools/go/pointer.(*invokeConstraint).solve(0xc075471420, 0xc0807e88c0, 0xc1ee6d08c0)
	/Users/avgupta/golang/src/golang.org/x/tools/go/pointer/solve.go:317 +0x239
golang.org/x/tools/go/pointer.(*analysis).solveConstraints(0xc0807e88c0, 0xc11a676870, 0xc1ee6d08c0)
	/Users/avgupta/golang/src/golang.org/x/tools/go/pointer/solve.go:165 +0x170
golang.org/x/tools/go/pointer.(*analysis).solve(0xc0807e88c0)
	/Users/avgupta/golang/src/golang.org/x/tools/go/pointer/solve.go:59 +0x2e0
golang.org/x/tools/go/pointer.Analyze(0xc0a2b0b9a0, 0x0, 0x13badc0, 0xc0e9e1e2c0)
	/Users/avgupta/golang/src/golang.org/x/tools/go/pointer/analysis.go:331 +0x4ce
main.doCallgraph(0x0, 0x0, 0x0, 0x0, 0x7ffeefbff690, 0x3, 0x136ef07, 0x3f, 0xc000072000, 0xc0000761a0, ...)
	/Users/avgupta/golang/src/golang.org/x/tools/cmd/callgraph/main.go:233 +0x32d
main.main()
	/Users/avgupta/golang/src/golang.org/x/tools/cmd/callgraph/main.go:159 +0xa5
callgraph: internal error in pointer analysis: not a tagged object: n933423 (please report this bug)
@bradfitz bradfitz changed the title Callgraph for pta algorithm fails with fails with internal error x/tools/cmd/callgraph: pta algorithm fails with fails with internal error May 1, 2019
@gopherbot gopherbot added this to the Unreleased milestone May 1, 2019
@rootAvish rootAvish changed the title x/tools/cmd/callgraph: pta algorithm fails with fails with internal error x/tools/cmd/callgraph: pta algorithm fails with internal error May 2, 2019
@bcmills
Copy link
Contributor

bcmills commented May 21, 2019

CC @ianthehat

@bcmills bcmills added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label May 21, 2019
@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

4 participants