-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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: fails to parse trace with "time stamps out of order" #52776
Comments
I just tested with gotip
I did not see this issue at all. |
It looks like there are two machines involved, one on amd64 (broken with go1.18.1) and one on arm64 (working with tip). Is that right? IIUC, the timestamps available to the execution tracer are different on x86 processors vs on ARM. I wasn't able to reproduce the problem on my darwin/arm64 machine with go1.18.1 or with tip (yesterday's |
cc @golang/runtime |
See previously #16755. |
Does this program use cgo? (Looks like no?) #29707 is a known case of this with a pending fix, but it only affects cgo binaries. |
With the new tracer this error can no longer happen -- timestamps are not used for ordering events anymore. (See #60773.) |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
YES
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
This is a program I have used for years to teach the tracing tool.
https://github.com/ardanlabs/gotraining/tree/master/topics/go/profiling/trace
These are the changes you need to make to main.
Uncomment out the trace calls and run
freqConcurrent
Then run as follows
What did you expect to see?
I expected the trace to be read and the browser to present itself.
What did you see instead?
The text was updated successfully, but these errors were encountered: