lightstep / lightstep-tracer-go

The Lightstep distributed tracing library for Go
https://lightstep.com
MIT License
98 stars 54 forks source link

fatal error: concurrent map iteration and map write #219

Closed shangyuchen-grabtaxi closed 4 years ago

shangyuchen-grabtaxi commented 4 years ago

fatal error: concurrent map iteration and map write goroutine 927 [running]: runtime.throw(0x2370ef0, 0x26) golang/go/src/runtime/panic.go:616 +0x81 fp=0xc45811b948 sp=0xc45811b928 pc=0x4390d1 runtime.mapiternext(0xc45811ba68) golang/go/src/runtime/hashmap.go:747 +0x55c fp=0xc45811b9d8 sp=0xc45811b948 pc=0x416f1c runtime.mapiterinit(0x20197a0, 0xc4479662a0, 0xc45811ba68) golang/go/src/runtime/hashmap.go:737 +0x1f1 fp=0xc45811ba00 sp=0xc45811b9d8 pc=0x4168d1 gitlab.myteksi.net/gophers/go/vendor/github.com/lightstep/lightstep-tracer-go.(protoConverter).fromTags(0xc4213cee20, 0xc4479662a0, 0x0, 0x0, 0xc421355368) /vendor/github.com/lightstep/lightstep-tracer-go/proto_converter.go:98 +0xc5 fp=0xc45811bad8 sp=0xc45811ba00 pc=0xa2ad55 gitlab.myteksi.net/gophers/go/vendor/github.com/lightstep/lightstep-tracer-go.(protoConverter).toSpan(0xc4213cee20, 0x676e73bea7fbdf76, 0x100c992d72328040, 0xc447966c60, 0x4f23c13f22e8a5e, 0xc45755f920, 0x2e, 0xbf50b47df9311c5a, 0x44cc6ea401bdb, 0x38157e0, ...) /vendor/github.com/lightstep/lightstep-tracer-go/proto_converter.go:70 +0x1d4 fp=0xc45811bbe0 sp=0xc45811bad8 pc=0xa2a5b4 gitlab.myteksi.net/gophers/go/vendor/github.com/lightstep/lightstep-tracer-go.(protoConverter).toSpans(0xc4213cee20, 0xc421355368, 0xc4213da5d0, 0xc4460203c0, 0xbf50b48579d99fc7) /vendor/github.com/lightstep/lightstep-tracer-go/proto_converter.go:58 +0x169 fp=0xc45811bd90 sp=0xc45811bbe0 pc=0xa2a359 gitlab.myteksi.net/gophers/go/vendor/github.com/lightstep/lightstep-tracer-go.(protoConverter).toReportRequest(0xc4213cee20, 0x1f8dde19191f9cf, 0xc4213da5d0, 0xc4213cedc0, 0x20, 0xc421355368, 0xc45811be48) /vendor/github.com/lightstep/lightstep-tracer-go/proto_converter.go:36 +0xa7 fp=0xc45811bdf8 sp=0xc45811bd90 pc=0xa29ff7 gitlab.myteksi.net/gophers/go/vendor/github.com/lightstep/lightstep-tracer-go.(grpcCollectorClient).Translate(0xc4213943c0, 0x25738c0, 0xc4387c29c0, 0xc421355368, 0xc4387c29c0, 0xc434191b30, 0x4cdad6, 0x4cd22d, 0xc45811bea0) /vendor/github.com/lightstep/lightstep-tracer-go/collector_client_grpc.go:121 +0x63 fp=0xc45811be40 sp=0xc45811bdf8 pc=0xa24883 gitlab.myteksi.net/gophers/go/vendor/github.com/lightstep/lightstep-tracer-go.(tracerImpl).Flush(0xc421355200, 0x25738c0, 0xc4387c29c0) /vendor/github.com/lightstep/lightstep-tracer-go/tracer.go:233 +0x152 fp=0xc45811bee8 sp=0xc45811be40 pc=0xa32a82 gitlab.myteksi.net/gophers/go/vendor/github.com/lightstep/lightstep-tracer-go.(*tracerImpl).reportLoop(0xc421355200) /vendor/github.com/lightstep/lightstep-tracer-go/tracer.go:356 +0x21c fp=0xc45811bfd8 sp=0xc45811bee8 pc=0xa3398c runtime.goexit() golang/go/src/runtime/asm_amd64.s:2361 +0x1 fp=0xc45811bfe0 sp=0xc45811bfd8 pc=0x4687f1 created by gitlab.myteksi.net/gophers/go/vendor/github.com/lightstep/lightstep-tracer-go.NewTracer /vendor/github.com/lightstep/lightstep-tracer-go/tracer.go:122 +0x76f

for version: github.com/lightstep/lightstep-tracer-go v0.0.0-20180829203755-64af8e62274e

shangyuchen-grabtaxi commented 4 years ago

thanks iredelmeier for the quick action