{"action":"reopened","issue":{"url":"https://api.github.com/repos/couchbase/sync_gateway/issues/2009","repository_url":"https://api.github.com/repos/couchbase/sync_gateway","labels_url":"https://api.github.com/repos/couchbase/sync_gateway/issues/2009/labels{/name}","comments_url":"https://api.github.com/repos/couchbase/sync_gateway/issues/2009/comments","events_url":"https://api.github.com/repos/couchbase/sync_gateway/issues/2009/events","html_url":"https://github.com/couchbase/sync_gateway/issues/2009","id":167948436,"number":2009,"title":"sgcollect_info pprof panics on Windows","user":{"login":"ajres","id":7745210,"avatar_url":"https://avatars.githubusercontent.com/u/7745210?v=3","gravatar_id":"","url":"https://api.github.com/users/ajres","html_url":"https://github.com/ajres","followers_url":"https://api.github.com/users/ajres/followers","following_url":"https://api.github.com/users/ajres/following{/other_user}","gists_url":"https://api.github.com/users/ajres/gists{/gist_id}","starred_url":"https://api.github.com/users/ajres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajres/subscriptions","organizations_url":"https://api.github.com/users/ajres/orgs","repos_url":"https://api.github.com/users/ajres/repos","events_url":"https://api.github.com/users/ajres/events{/privacy}","received_events_url":"https://api.github.com/users/ajres/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-27T20:27:19Z","updated_at":"2016-07-27T20:42:53Z","closed_at":null,"body":"This is not a direct sgcollect_info issue but impacts testing Windows.\n\nI installed golang 1.6.3 on Windows8\n\nWhen running sgcollect_info the pprof command fail with a panic:\n\nsample pprof commnad:\n\n```\ngo tool pprof -text -seconds=5 C:\\Program Files (x86)\\Couchbase\\\\sync_gateway.exe http://127.0.0.1:4985/_debug/pprof/goroutine\n```\n\noutput:\n\n```\nFetching profile from http://127.0.0.1:4985/_debug/pprof/goroutine\npanic: runtime error: invalid memory address or nil pointer dereference\n[signal 0xc0000005 code=0x1 addr=0x0 pc=0x4be866]\n\ngoroutine 5 [running]:\npanic(0x8d8140, 0xc082006100)\n\tc:/go/src/runtime/panic.go:481 +0x3f4\ncmd/pprof/internal/driver.adjustURL(0xc0820062f0, 0xa, 0x5, 0x2a46d8, 0xc08201c0b8, 0x0, 0x0, 0x0, 0x0, 0x0)\n\tc:/go/src/cmd/pprof/internal/driver/driver.go:142 +0xbd6\ncmd/pprof/internal/driver.grabProfile(0xc0820062f0, 0xa, 0x0, 0x0, 0x0, 0x0, 0xa71980, 0xa71fb0, 0x2a4720, 0xc082007e10, ...)\n\tc:/go/src/cmd/pprof/internal/driver/driver.go:335 +0x8b\ncmd/pprof/internal/driver.PProf.func1(0xc08210a290, 0xc082012900, 0xa71980, 0xa71fb0, 0x2a4720, 0xc082007e10, 0x2a46d8, 0xc08201c0b8, 0xc08210a280, 0xc08210a288, ...)\n\tc:/go/src/cmd/pprof/internal/driver/driver.go:70 +0x108\ncreated by cmd/pprof/internal/driver.PProf\n\tc:/go/src/cmd/pprof/internal/driver/driver.go:78 +0x582\n```\n\nReproduced running pprof command manually."}}
{"actor":{"display_login":"tleyden"}}