Skip to content

cmd/trace: go tool trace trace time stamps out of order #24663

@bbuchanan-bcs

Description

@bbuchanan-bcs

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

go version go1.10.1 linux/amd64

Does this issue reproduce with the latest release?

1.10.1 is the latest stable version to my knowledge

What operating system and processor architecture are you using (go env)?

GOARCH="amd64"
GOBIN=""
GOCACHE="/home/bo/.cache/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/bo/go"
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build507967120=/tmp/go-build -gno-record-gcc-switches"

What did you do?

Starting up a microservice of ours and use our loadtest to generate load. During load I took a trace.
wget http://localhost:6060/debug/pprof/trace?seconds=10

Attempting to view the trace resulted in:
go tool trace trace\?seconds\=10 2018/04/03 16:00:52 Parsing trace... failed to parse trace: time stamps out of order

This happens occasionally. Sometimes I can change GOMAXPROCS and it will work correctly. I attached an example bad trace file.

trace.zip

I can't provide source since it is proprietary code. This also occurred on go 1.9.2 as well. I upgraded to try to fix the issue. I will mention that we are running into other issues that might effect this but I'll open separate issues for them as I get time.

  • Go 1.10.1 appears to have javascript and html errors in chrome if I can get a trace to open. This didn't occur on 1.9.2
  • Our services seem to have a problem with things getting listed as (Did Not Finish) and causing the trace visualizations to grow vertically. This appears to be a bug and makes it almost impossible to get anything out of the trace. This was also something I was trying to fix by upgrading from 1.9.2 to 1.10.1

What did you expect to see?

The trace to parse and the web browser to launch.

What did you see instead?

The trace failed to parse.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions