-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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/trace: generated timestamps have a jump in them #15102
Comments
Please try the following patch:
|
Or you are not able to reproduce it at all? If so, I guess it is it. |
But randomNumber doesn't change after program startup, so I don't
understand how that could affect the sequence in this way.
|
@minux I meant that maybe randomNumber causes cputicks overflow, and then overflow somehow causes the jump. But randomNumber is int32, so it should not cause int64 overflow. |
CL https://golang.org/cl/21730 mentions this issue. |
@dvyukov I just tried my "corrupted" file again and with your change it works! ev.Ts = (ev.Ts - minTs) * 1e9 / ticksPerSec |
I discovered a problem with a trace file that was generated on a
linux/arm
device (Beaglebone Black ARMv7). The program was cross-compiled on my laptopgo version go1.6 darwin/amd64
withGOOS=linux GOARCH=arm GOARM=7
.I generated the trace file with
runtime/trace
packages Start/Stop functions.Then I transfered the file to my laptop and ran
go tool trace
. Web browser opened, but when clicking on something it produced the errorfailed to parse trace: time stamps out of order
.The check that produces this error is here: internal/trace/parser.go
I modified the source code to print the index and timestamps of the relevant events in the tracefile:
This is the tracefile: trace_1.zip
Do you also need the code? It is <200LOC but dependent on 32bit Linux system calls.
So except one jump, that looks like just the switch of the sign, everything is consistent.
I was not able to reproduce this. What could have happened here?
The text was updated successfully, but these errors were encountered: