Skip to content

Instantly share code, notes, and snippets.

@gabsn
Created July 28, 2017 16:39
Show Gist options
  • Save gabsn/164aff85bf3117d763a6ae61244edc93 to your computer and use it in GitHub Desktop.
Save gabsn/164aff85bf3117d763a6ae61244edc93 to your computer and use it in GitHub Desktop.
==================
WARNING: DATA RACE
Read at 0x00c42470c7c8 by goroutine 9:
  reflect.Value.Int()
      /home/vagrant/.gimme/versions/go1.8.linux.amd64/src/reflect/value.go:900 +0x181
  github.com/DataDog/dd-trace-go/vendor/github.com/ugorji/go/codec.(*encFnInfo).kInt()
      /home/vagrant/go/src/github.com/DataDog/dd-trace-go/vendor/github.com/ugorji/go/codec/encode.go:416 +0x50
  github.com/DataDog/dd-trace-go/vendor/github.com/ugorji/go/codec.(*Encoder).doEncodeValue()
      /home/vagrant/go/src/github.com/DataDog/dd-trace-go/vendor/github.com/ugorji/go/codec/encode.go:1222 +0xa1
  github.com/DataDog/dd-trace-go/vendor/github.com/ugorji/go/codec.(*Encoder).encodeValue()
      /home/vagrant/go/src/github.com/DataDog/dd-trace-go/vendor/github.com/ugorji/go/codec/encode.go:1237 +0xb9
  github.com/DataDog/dd-trace-go/vendor/github.com/ugorji/go/codec.(*encFnInfo).kStruct()
      /home/vagrant/go/src/github.com/DataDog/dd-trace-go/vendor/github.com/ugorji/go/codec/encode.go:608 +0x900
  github.com/DataDog/dd-trace-go/vendor/github.com/ugorji/go/codec.(*Encoder).doEncodeValue()
      /home/vagrant/go/src/github.com/DataDog/dd-trace-go/vendor/github.com/ugorji/go/codec/encode.go:1222 +0xa1
  github.com/DataDog/dd-trace-go/vendor/github.com/ugorji/go/codec.(*Encoder).encodeValue()
      /home/vagrant/go/src/github.com/DataDog/dd-trace-go/vendor/github.com/ugorji/go/codec/encode.go:1237 +0xb9
  github.com/DataDog/dd-trace-go/vendor/github.com/ugorji/go/codec.(*encFnInfo).kSlice()
      /home/vagrant/go/src/github.com/DataDog/dd-trace-go/vendor/github.com/ugorji/go/codec/encode.go:533 +0xb09
  github.com/DataDog/dd-trace-go/vendor/github.com/ugorji/go/codec.(*Encoder).doEncodeValue()
      /home/vagrant/go/src/github.com/DataDog/dd-trace-go/vendor/github.com/ugorji/go/codec/encode.go:1222 +0xa1
  github.com/DataDog/dd-trace-go/vendor/github.com/ugorji/go/codec.(*Encoder).encodeValue()
      /home/vagrant/go/src/github.com/DataDog/dd-trace-go/vendor/github.com/ugorji/go/codec/encode.go:1237 +0xb9
  github.com/DataDog/dd-trace-go/vendor/github.com/ugorji/go/codec.(*encFnInfo).kSlice()
      /home/vagrant/go/src/github.com/DataDog/dd-trace-go/vendor/github.com/ugorji/go/codec/encode.go:533 +0xb09
  github.com/DataDog/dd-trace-go/vendor/github.com/ugorji/go/codec.(*Encoder).doEncodeValue()
      /home/vagrant/go/src/github.com/DataDog/dd-trace-go/vendor/github.com/ugorji/go/codec/encode.go:1222 +0xa1
  github.com/DataDog/dd-trace-go/vendor/github.com/ugorji/go/codec.(*Encoder).encodeI()
      /home/vagrant/go/src/github.com/DataDog/dd-trace-go/vendor/github.com/ugorji/go/codec/encode.go:1230 +0xdb
  github.com/DataDog/dd-trace-go/vendor/github.com/ugorji/go/codec.(*Encoder).encode()
      /home/vagrant/go/src/github.com/DataDog/dd-trace-go/vendor/github.com/ugorji/go/codec/encode.go:1166 +0x1ad
  github.com/DataDog/dd-trace-go/vendor/github.com/ugorji/go/codec.(*Encoder).Encode()
      /home/vagrant/go/src/github.com/DataDog/dd-trace-go/vendor/github.com/ugorji/go/codec/encode.go:1071 +0x91
  github.com/DataDog/dd-trace-go/tracer.(*msgpackEncoder).EncodeTraces()
      /home/vagrant/go/src/github.com/DataDog/dd-trace-go/tracer/encoder.go:43 +0xcd
  github.com/DataDog/dd-trace-go/tracer.(*httpTransport).SendTraces()
      /home/vagrant/go/src/github.com/DataDog/dd-trace-go/tracer/transport.go:93 +0x21d
  github.com/DataDog/dd-trace-go/tracer.(*Tracer).flushTraces()
      /home/vagrant/go/src/github.com/DataDog/dd-trace-go/tracer/tracer.go:269 +0x457
  github.com/DataDog/dd-trace-go/tracer.(*Tracer).flush()
      /home/vagrant/go/src/github.com/DataDog/dd-trace-go/tracer/tracer.go:312 +0x38
  github.com/DataDog/dd-trace-go/tracer.(*Tracer).worker()
      /home/vagrant/go/src/github.com/DataDog/dd-trace-go/tracer/tracer.go:335 +0x217

Previous write at 0x00c42470c7c8 by goroutine 331:
  github.com/DataDog/dd-trace-go/tracer.(*Span).Finish()
      /home/vagrant/go/src/github.com/DataDog/dd-trace-go/tracer/span.go:216 +0x2fd
  github.com/DataDog/dd-go/trace/intake/common.Writer.writeStats()
      /home/vagrant/go/src/github.com/DataDog/dd-go/trace/intake/common/writer.go:127 +0x2b3

Goroutine 9 (running) created at:
  github.com/DataDog/dd-trace-go/tracer.NewTracerTransport()
      /home/vagrant/go/src/github.com/DataDog/dd-trace-go/tracer/tracer.go:84 +0x5b5
  github.com/DataDog/dd-trace-go/tracer.NewTracer()
      /home/vagrant/go/src/github.com/DataDog/dd-trace-go/tracer/tracer.go:60 +0x46
  github.com/DataDog/dd-trace-go/tracer.init()
      /home/vagrant/go/src/github.com/DataDog/dd-trace-go/tracer/tracer.go:363 +0xf9
  github.com/DataDog/dd-trace-go/tracer/contrib/sqlxtraced.init()
      /home/vagrant/go/src/github.com/DataDog/dd-trace-go/tracer/contrib/sqlxtraced/sqlxtraced.go:36 +0xa4
  github.com/DataDog/dd-go/db/postgres.init()
      /home/vagrant/go/src/github.com/DataDog/dd-go/db/postgres/types.go:103 +0xd4
  github.com/DataDog/dd-go/model.init()
      /home/vagrant/go/src/github.com/DataDog/dd-go/model/user.go:36 +0xc0
  github.com/DataDog/dd-go/consumer.init()
      /home/vagrant/go/src/github.com/DataDog/dd-go/consumer/wireformat.go:62 +0xa9
  main.init()
      /home/vagrant/go/src/github.com/DataDog/dd-go/trace/apps/trace-api/server.go:140 +0xae

Goroutine 331 (running) created at:
  github.com/DataDog/dd-go/trace/intake/common.Writer.Run()
      /home/vagrant/go/src/github.com/DataDog/dd-go/trace/intake/common/writer.go:52 +0x13a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment