Skip to content

pprof http used with net/http/pprof/ package broken on windows/amd64 #6177

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
emidoots opened this issue Aug 17, 2013 · 4 comments
Closed

pprof http used with net/http/pprof/ package broken on windows/amd64 #6177

emidoots opened this issue Aug 17, 2013 · 4 comments
Milestone

Comments

@emidoots
Copy link

What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
1. Use net/http/pprof in an program on Windows, like so:
    http://play.golang.org/p/ohboNwlL3c
2. Try to use pprof's http mode:
    go tool pprof minpprof.exe http://localhost:6161/debug/pprof/profile

What is the expected output?
pprof should work correctly instead of giving errors and exiting.

What do you see instead?

Use of uninitialized value $ENV{"HOME"} in concatenation (.) or string at
C:\Go\pkg\tool\windows_amd64\pprof line 3204.
Gathering CPU profile from http://localhost:6161/debug/pprof/profile?seconds=30 for 30
seconds to
  /pprof/minpprof.exe.1376738770.localhost-port6161
Be patient...
Failed to get profile: curl --max-time 90 -s -o
/pprof/.tmp.minpprof.exe.1376738770.localhost-port6161
'http://localhost:6161/debug/pprof/pr
ofile?seconds=30':

Which compiler are you using (5g, 6g, 8g, gccgo)?
6g

Which operating system are you using?
Windows amd64

Which version are you using?  (run 'go version')
tip

go version devel +6d2a2628859d Sat Aug 17 13:40:55 2013 +0900 windows/amd64
@shivakumargn
Copy link
Contributor

Comment 1:

CL for review https://golang.org/cl/13085043

@robpike
Copy link
Contributor

robpike commented Aug 17, 2013

Comment 2:

Labels changed: added priority-later, removed priority-triage.

Status changed to Accepted.

@shivakumargn
Copy link
Contributor

Comment 3:

Fixed with https://code.google.com/p/go/source/detail?r=66ba9277d461

@alexbrainman
Copy link
Member

Comment 4:

Status changed to Fixed.

@rsc rsc added this to the Go1.2 milestone Apr 14, 2015
@rsc rsc removed the go1.2maybe label Apr 14, 2015
@golang golang locked and limited conversation to collaborators Jun 24, 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

6 participants