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

cmd/go: panic with "go help documentation | head" #11839

Closed
jeffallen opened this issue Jul 23, 2015 · 3 comments
Closed

cmd/go: panic with "go help documentation | head" #11839

jeffallen opened this issue Jul 23, 2015 · 3 comments
Milestone

Comments

@jeffallen
Copy link
Contributor

$ go help documentation | head
// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// DO NOT EDIT THIS FILE. GENERATED BY mkalldocs.sh.
// Edit the documentation in other files and rerun mkalldocs.sh to generate this one.

/*
Go is a tool for managing Go source code.

panic: template: top:9:47: executing "top" at <

: write /dev/stdout: broken pipe

goroutine 1 [running]:
main.tmpl(0xb64220, 0xc82002a010, 0x6251c0, 0x1c5, 0x3dcca0, 0xc820185880)
/Users/jeffall/go/src/cmd/go/main.go:243 +0x403
main.help(0xc82000a320, 0x1, 0x1)
/Users/jeffall/go/src/cmd/go/main.go:292 +0x4bf
main.main()
/Users/jeffall/go/src/cmd/go/main.go:129 +0x180

The panic() in go tool's tmpl() function does not belong there; getting an error white writing to a file descriptor is not wholly unexpected.

$ go version
go version devel +aad4fe4 Thu Jul 23 05:50:53 2015 +0000 darwin/amd64

@gopherbot
Copy link

CL https://golang.org/cl/12513 mentions this issue.

@gopherbot
Copy link

CL https://golang.org/cl/12571 mentions this issue.

@mdempsky
Copy link
Member

Similar problem with godoc too:

$ godoc runtime | head -0
2015/07/24 10:01:01 template: package.txt:14:28: executing "package.txt" at <PACKAGE DOCUMENTATIO...>: write /dev/stdout: broken pipe

@rsc rsc closed this as completed in ea08541 Jul 27, 2015
@mikioh mikioh changed the title panic with "go help documentation | head" cmd/go: panic with "go help documentation | head" Jul 28, 2015
@mikioh mikioh added this to the Go1.5 milestone Jul 28, 2015
@golang golang locked and limited conversation to collaborators Aug 5, 2016
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