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/guru: assignment to entry in nil map #14746

Closed
dominikh opened this issue Mar 10, 2016 · 0 comments
Closed

x/tools/cmd/guru: assignment to entry in nil map #14746

dominikh opened this issue Mar 10, 2016 · 0 comments

Comments

@dominikh
Copy link
Member

$ cat foo.go
package main

type I interface {
    DH()
}

type T struct{}

func (T) DH() {}
$ guru referrers foo.go:\#47
panic: assignment to entry in nil map

goroutine 1 [running]:
panic(0x778600, 0xc8213c6550)
    /usr/lib/go/src/runtime/panic.go:464 +0x3e6
main.globalReferrers(0xc8200b69a0, 0xc820012b70, 0xb, 0xc820012b70, 0xb, 0xc82000bcb0, 0x29, 0x2f, 0x7, 0x6, ...)
    /home/dominikh/prj/src/golang.org/x/tools/cmd/guru/referrers.go:178 +0x111
main.referrers(0xc8200b69a0, 0x0, 0x0)
    /home/dominikh/prj/src/golang.org/x/tools/cmd/guru/referrers.go:82 +0x96f
main.Run(0xc8200b69a0, 0x0, 0x0)
    /home/dominikh/prj/src/golang.org/x/tools/cmd/guru/guru.go:124 +0x637
main.main()
    /home/dominikh/prj/src/golang.org/x/tools/cmd/guru/main.go:204 +0x8d5

/cc @alandonovan

@ianlancetaylor ianlancetaylor added this to the Unreleased milestone Mar 10, 2016
@golang golang locked and limited conversation to collaborators Mar 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants