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

Unable to open trace file: time stamps out of order #149

Closed
JAicewizard opened this issue Jan 17, 2024 · 4 comments
Closed

Unable to open trace file: time stamps out of order #149

JAicewizard opened this issue Jan 17, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@JAicewizard
Copy link

I wanted to try out this tool as an alternative to pprof, as it takes an hour to parse my profiles.

However after adding -trace ... as an argument running my benchmarks, I couldn't open them due to the timestamps being out of order.

One thing that I think could mess with the trace is that I used github.com/ianlancetaylor/cgosymbolizer to also get a profile (and trace) of c++ code within CGO, and thread sanitizer. Otherwise this is a completely normal CGO test binary and trace.

go env:

GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/home/jaap/.cache/go-build'
GOENV='/home/jaap/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/home/jaap/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/home/jaap/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/lib/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/lib/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.21.6'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/home/jaap/Projects/thesis/faissExt/go/go.mod'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build590854102=/tmp/go-build -gno-record-gcc-switches'
@dominikh
Copy link
Owner

Does go tool trace load the trace successfully? If it doesn't then this is probably one of the many instances of the "time stamps out of order" bug (golang/go#16755) that has myriad weird causes. In that case, the only fix is to wait for Go 1.22, which reworks tracing and should no longer suffer from this issue.

@dominikh dominikh added the bug Something isn't working label Jan 17, 2024
@JAicewizard
Copy link
Author

Oh wow, yeah that is an old bug :O
I tried rerunning with 1.22 but I see that gotraceui doesn't support 1.22 yet

@dominikh
Copy link
Owner

I tried rerunning with 1.22 but I see that gotraceui doesn't support 1.22 yet

Unfortunately not, no. I am working on a branch that supports 1.22, but that in turn doesn't support 1.21 yet.

If you can confirm that go tool trace also fails to load the 1.21 trace then I will close this issue. Else you have found a bug in our parser.

@JAicewizard
Copy link
Author

Nope go tool trace also fails, closing now. Thanks for the quick replies!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants