cmd/trace: go tool trace mishandles goroutine that extends beyond the current span. #21911
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
help wanted
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?% go version
go version devel +f351dbfa4d Thu Sep 14 04:49:58 2017 +0000 darwin/amd64
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?% uname -a
Darwin zapf.fritz.box 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64
What did you do?
Download the attached px.out trace
go tool trace px.out
Open the first span (0s-256.629789ms)
px.out.zip
What did you expect to see?
The trace to terminate at 256ms with the G1 runtime.main goroutine constrained to the 256ms boundry.
What did you see instead?
G1 runtime.main extends the length of the runtime of the program, 1.7s. Zooming into the trace G1 runtime.main does not appear to be valid, there are no breaks in the sequence and it doesn't seem to represent the real trace.
The text was updated successfully, but these errors were encountered: