{"action":"closed","issue":{"url":"https://api.github.com/repos/golang/go/issues/21648","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/21648/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/21648/comments","events_url":"https://api.github.com/repos/golang/go/issues/21648/events","html_url":"https://github.com/golang/go/issues/21648","id":253176607,"number":21648,"title":"cmd/test: go test -memprofile outputs a broken profile.","user":{"login":"OneOfOne","id":1080443,"avatar_url":"https://avatars2.githubusercontent.com/u/1080443?v=4","gravatar_id":"","url":"https://api.github.com/users/OneOfOne","html_url":"https://github.com/OneOfOne","followers_url":"https://api.github.com/users/OneOfOne/followers","following_url":"https://api.github.com/users/OneOfOne/following{/other_user}","gists_url":"https://api.github.com/users/OneOfOne/gists{/gist_id}","starred_url":"https://api.github.com/users/OneOfOne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OneOfOne/subscriptions","organizations_url":"https://api.github.com/users/OneOfOne/orgs","repos_url":"https://api.github.com/users/OneOfOne/repos","events_url":"https://api.github.com/users/OneOfOne/events{/privacy}","received_events_url":"https://api.github.com/users/OneOfOne/received_events","type":"User","site_admin":false},"labels":[{"id":373402289,"url":"https://api.github.com/repos/golang/go/labels/NeedsInvestigation","name":"NeedsInvestigation","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/62","html_url":"https://github.com/golang/go/milestone/62","labels_url":"https://api.github.com/repos/golang/go/milestones/62/labels","id":2827591,"number":62,"title":"Go1.11","description":"","creator":{"login":"rsc","id":104030,"avatar_url":"https://avatars1.githubusercontent.com/u/104030?v=4","gravatar_id":"","url":"https://api.github.com/users/rsc","html_url":"https://github.com/rsc","followers_url":"https://api.github.com/users/rsc/followers","following_url":"https://api.github.com/users/rsc/following{/other_user}","gists_url":"https://api.github.com/users/rsc/gists{/gist_id}","starred_url":"https://api.github.com/users/rsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsc/subscriptions","organizations_url":"https://api.github.com/users/rsc/orgs","repos_url":"https://api.github.com/users/rsc/repos","events_url":"https://api.github.com/users/rsc/events{/privacy}","received_events_url":"https://api.github.com/users/rsc/received_events","type":"User","site_admin":false},"open_issues":880,"closed_issues":246,"state":"open","created_at":"2017-10-10T13:39:17Z","updated_at":"2018-03-30T20:49:57Z","due_on":"2018-07-31T07:00:00Z","closed_at":null},"comments":3,"created_at":"2017-08-27T17:12:11Z","updated_at":"2018-03-30T20:49:57Z","closed_at":"2018-03-30T20:49:57Z","author_association":"CONTRIBUTOR","body":"I spent quite a bit trying to debug this until I realized just removing `-benchmem` fixes it.\r\n\r\n```bash\r\n➤ alias GO go18; GO version && GO test -bench=. -memprofile=mem.pprof compress/gzip >/dev/null && GO tool pprof -top -cum mem.pprof\r\ngo version go1.8.3 linux/amd64\r\n528.17kB of 528.17kB total (  100%)\r\nDropped 20 nodes (cum <= 2.64kB)\r\n      flat  flat%   sum%        cum   cum%\r\n         0     0%     0%   528.17kB   100%  main.main\r\n         0     0%     0%   528.17kB   100%  regexp.(*Regexp).MatchString\r\n         0     0%     0%   528.17kB   100%  regexp.(*Regexp).doExecute\r\n         0     0%     0%   528.17kB   100%  regexp.(*Regexp).doMatch\r\n  528.17kB   100%   100%   528.17kB   100%  regexp.(*bitState).reset\r\n         0     0%   100%   528.17kB   100%  regexp.(*machine).backtrack\r\n.............\r\n\r\n➤ alias GO go19; GO version && GO test -bench=. -memprofile=mem.pprof compress/gzip >/dev/null && GO tool pprof -top -cum mem.pprof\r\ngo version go1.9 linux/amd64\r\nFile: gzip.test\r\nType: inuse_space\r\nTime: Aug 27, 2017 at 7:10pm (EET)\r\nShowing nodes accounting for 0, 0% of 0 total\r\n      flat  flat%   sum%        cum   cum%\r\n\r\n➤ alias GO go; GO version && GO test -bench=. -memprofile=mem.pprof compress/gzip >/dev/null && GO tool pprof -top -cum mem.pprof\r\ngo version devel +b046878018 2017-08-26 15:55:04 +0000 linux/amd64\r\nFile: gzip.test\r\nType: inuse_space\r\nTime: Aug 27, 2017 at 7:10pm (EET)\r\nShowing nodes accounting for 0, 0% of 0 total\r\n      flat  flat%   sum%        cum   cum%\r\n```\r\n"}}
{"actor":{"display_login":"josharian"}}