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/pprof: handle "pprof in use" graciously #3680

Closed
hanwen opened this issue May 29, 2012 · 3 comments
Closed

cmd/pprof: handle "pprof in use" graciously #3680

hanwen opened this issue May 29, 2012 · 3 comments
Milestone

Comments

@hanwen
Copy link
Contributor

@hanwen hanwen commented May 29, 2012

Thanks.

What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
1. use runtime/pprof and http/pprof simultaneously
2. go tool pprof DEBUG-URL
3. this yields:

Read http://localhost:50556/debug/pprof/symbol
Gathering CPU profile from http://localhost:50556/debug/pprof/profile?seconds=30 for 30
seconds to
  /home/hanwen/pprof/worker.1338264155.localhost-port50556
Be patient...
Wrote profile to /home/hanwen/pprof/worker.1338264155.localhost-port50556
substr outside of string at /home/hanwen/vc/go/pkg/tool/linux_386/pprof line 3299,
<PROFILE> line 1.
Use of uninitialized value in string eq at /home/hanwen/vc/go/pkg/tool/linux_386/pprof
line 3299, <PROFILE> line 1.
substr outside of string at /home/hanwen/vc/go/pkg/tool/linux_386/pprof line 3301,
<PROFILE> line 1.
Use of uninitialized value in string eq at /home/hanwen/vc/go/pkg/tool/linux_386/pprof
line 3301, <PROFILE> line 1.
/home/hanwen/pprof/worker.1338264155.localhost-port50556: header size >= 2**16
go tool pprof: exit status 1


The profile file itself contains:

"Could not enable CPU profiling: cpu profiling already in use"

What is the expected output?

a sensible error message 

this is on

8g, Linux, 

$ go tool 8g -V
8g version weekly.2012-03-27 +ac7250065a04
@robpike
Copy link
Contributor

@robpike robpike commented Jun 1, 2012

Comment 1:

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

Status changed to Accepted.

@rsc
Copy link
Contributor

@rsc rsc commented Sep 12, 2012

Comment 2:

Labels changed: added go1.1.

@rsc
Copy link
Contributor

@rsc rsc commented Dec 10, 2012

Comment 4:

This issue was closed by revision 9838774.

Status changed to Fixed.

@hanwen hanwen added fixed labels Dec 10, 2012
@rsc rsc added this to the Go1.1 milestone Apr 14, 2015
@rsc rsc removed the go1.1 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
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.