Skip to content

code.google.com/p/go.tools/cmd/godoc: Panic handling package listing #7557

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

Closed
anacrolix opened this issue Mar 16, 2014 · 1 comment
Closed

Comments

@anacrolix
Copy link
Contributor

Revision 0e4df5fb7982 in go.tools breaks package listings, even for an empty GOPATH
(just stdlib).

2014/03/17 01:26:41 http: panic serving 127.0.0.1:42157: runtime error: assignment to
entry in nil map
goroutine 444 [running]:
net/http.func·009()
    /home/matt/src/go/src/pkg/net/http/server.go:1093 +0xae
runtime.panic(0x95c3a0, 0x10f79bd)
    /home/matt/src/go/src/pkg/runtime/panic.c:248 +0x106
code.google.com/p/go.tools/godoc/analysis.(*Result).pkgInfo(0xc210063db0, 0xa03220, 0x1,
0x1)
    /home/matt/gopath/src/code.google.com/p/go.tools/godoc/analysis/analysis.go:244 +0xc4
code.google.com/p/go.tools/godoc/analysis.(*Result).PackageInfo(0xc210063db0, 0xa03220,
0x1, 0x8, 0x1, ...)
    /home/matt/gopath/src/code.google.com/p/go.tools/godoc/analysis/analysis.go:256 +0x40
code.google.com/p/go.tools/godoc.(*handlerServer).ServeHTTP(0xc210237ad0,
0x7f8aad1d18a0, 0xc2110ad500, 0xc2100e9410)
    /home/matt/gopath/src/code.google.com/p/go.tools/godoc/server.go:266 +0x6c7
net/http.(*ServeMux).ServeHTTP(0xc2110c3720, 0x7f8aad1d18a0, 0xc2110ad500, 0xc2100e9410)
    /home/matt/src/go/src/pkg/net/http/server.go:1496 +0x163
code.google.com/p/go.tools/godoc.(*Presentation).ServeHTTP(0xc210237a80, 0x7f8aad1d18a0,
0xc2110ad500, 0xc2100e9410)
    /home/matt/gopath/src/code.google.com/p/go.tools/godoc/pres.go:133 +0x49
net/http.(*ServeMux).ServeHTTP(0xc21001f660, 0x7f8aad1d18a0, 0xc2110ad500, 0xc2100e9410)
    /home/matt/src/go/src/pkg/net/http/server.go:1496 +0x163
net/http.serverHandler.ServeHTTP(0xc2100ed550, 0x7f8aad1d18a0, 0xc2110ad500,
0xc2100e9410)
    /home/matt/src/go/src/pkg/net/http/server.go:1597 +0x16e
net/http.(*conn).serve(0xc210fd2880)
    /home/matt/src/go/src/pkg/net/http/server.go:1167 +0x7b7
created by net/http.(*Server).Serve
    /home/matt/src/go/src/pkg/net/http/server.go:1644 +0x28b
@gopherbot
Copy link
Contributor

Comment 1 by [email protected]:

This issue was closed by revision bc3dddd1dd06.
https://code.google.com/p/go/source/detail?r=bc3dddd1dd06&repo=tools

Status changed to Fixed.

@golang golang locked and limited conversation to collaborators Jun 25, 2016
This issue was closed.
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

2 participants