-
Notifications
You must be signed in to change notification settings - Fork 18.3k
Closed
Labels
FrozenDueToAgeNeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
Description
Please answer these questions before submitting your issue. Thanks!
What did you do?
Compile and run godoc as godoc -http=:6060
.
What did you expect to see?
I expected the program to use a reasonable amount of memory; on my machine it gets to about 200 MB and then remains constant.
What did you see instead?
The program's memory consumption grew in an unbounded way; up to 30 GB RAM before I killed it. In addition, a number of error output lines (thousands) were streamed to the console:
$ godoc -http=:6060
2017/07/17 22:51:20 ignoring symlink: stat /Users/kevin/src/chromium.googlesource.com/infra/infra/appengine_module/gae_event_mon/checkouts.py: no such file or directory
2017/07/17 22:51:20 ignoring symlink: stat /Users/kevin/src/chromium.googlesource.com/infra/infra/appengine_module/gae_event_mon/config.py: no such file or directory
2017/07/17 22:51:20 ignoring symlink: stat /Users/kevin/src/chromium.googlesource.com/infra/infra/appengine_module/gae_event_mon/httplib2_utils.py: no such file or direct
Does this issue reproduce with the latest release (go1.8.3)?
Yes
System details
go version devel +e9b9dfe3f7 Tue Jul 18 04:42:09 2017 +0000 darwin/amd64
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/kevin"
GORACE=""
GOROOT="/Users/kevin/go"
GOTOOLDIR="/Users/kevin/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/sf/fsn3_vgd0n98r0jb86bgp83r0000gn/T/go-build558191022=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOROOT/bin/go version: go version devel +e9b9dfe3f7 Tue Jul 18 04:42:09 2017 +0000 darwin/amd64
GOROOT/bin/go tool compile -V: compile version devel +e9b9dfe3f7 Tue Jul 18 04:42:09 2017 +0000
uname -v: Darwin Kernel Version 16.6.0: Fri Apr 14 16:21:16 PDT 2017; root:xnu-3789.60.24~6/RELEASE_X86_64
ProductName: Mac OS X
ProductVersion: 10.12.5
BuildVersion: 16F73
lldb --version: lldb-370.0.42
Swift-3.1
I've bisected the commits in x/tools and https://go-review.googlesource.com/c/45096/ is the first one where the program's memory begins growing.
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeNeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.Feedback is required from experts, contributors, and/or the community before a change can be made.