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
runtime: pprof output is broken for go test -cpuprofile #16891
Comments
If you're up for some investigation, want to do a git bisect to find the commit that broke this? |
I haven't built Go from the source tree yet so it may take me a little bit to get set up. I'll try to do it when I have time (likely Monday). |
I tried reproducing this:
I don't see any problem. @smithjacobj what did I do wrong? Alex |
Strangely enough I can't repro it for any other package, but it's reliable for this one (which I unfortunately can't share) when I flip between 1.6.3/1.7. I built a single-benchmark test package and was able to get usable results from pprof so there's some edge case I seem to be running into. |
@smithjacobj Can you share the profile file generated from this code, even if you can't share the code? |
Apologies for my tardiness, here's an example.
|
@smithjacobj Note that there is indeed profile information in the file you sent:
|
This is definitely a symbolization failure. Go 1.8 should make this impossible by putting the symbols in the profile. |
I'm going to close this since I believe Go 1.8 will fix it. |
I'm not sure this will get seen but I had an idea and the time to test the idea. The issue seems to be related to use of the I tested with a bare CGo sample, and also a control. Control results:
Bug results:
Control:impl
test
Bugimpl
test
|
Please answer these questions before submitting your issue. Thanks!
go version
)?1.7 windows/386
go env
)?Windows, 386
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
run
go test
on a package with the-cpuprofile
flag.Using output from 1.6.3, I get the following result from
pprof top10
:Using output from 1.7, I get the following result from
pprof top10
Additionally,
go-torch
gives me this output:The text was updated successfully, but these errors were encountered: