-
Notifications
You must be signed in to change notification settings - Fork 142
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
[bug] when enable tracing support, I find that there are concurrent operations with map #9
Labels
Comments
@LinkinStars thank you for reporting this issue. Can you please try with the latest release |
I change to version v0.1.0, but the problem remains. 2020/10/09 19:04:51 Reporting span 7df3dc34375dfee6:50ce03eb333bc0ed:3ad27942d4ab172a:1
fatal error: concurrent map writesdoSomething
goroutine 67 [running]:
runtime.throw(0x15de707, 0x15)
/usr/local/go/src/runtime/panic.go:1116 +0x72 fp=0xc000285678 sp=0xc000285648 pc=0x1034a02
runtime.mapassign_faststr(0x15310a0, 0xc0002de780, 0x15d772f, 0x4, 0x1)
/usr/local/go/src/runtime/map_faststr.go:211 +0x3f7 fp=0xc0002856e0 sp=0xc000285678 pc=0x1015287
github.com/s8sg/goflow/eventhandler.(*TraceHandler).StartOperationSpan(0xc00015b180, 0xc000229028, 0x8, 0xc0004bbfe0, 0x14, 0x15d772f, 0x4)
/Users/apple/go/pkg/mod/github.com/s8sg/goflow@v0.1.0/eventhandler/trace_handler.go:127 +0x223 fp=0xc000285770 sp=0xc0002856e0 pc=0x138d1e3
github.com/s8sg/goflow/eventhandler.(*GoFlowEventHandler).ReportOperationStart(0xc0000a81c0, 0x15d772f, 0x4, 0xc000229028, 0x8, 0xc0004bbfe0, 0x14)
/Users/apple/go/pkg/mod/github.com/s8sg/goflow@v0.1.0/eventhandler/goflow_event_handler.go:66 +0x6b fp=0xc0002857b8 sp=0xc000285770 pc=0x138bd0b
github.com/faasflow/sdk/executor.(*FlowExecutor).executeNode(0xc000285b30, 0xc0000284a0, 0x5, 0x8, 0xc000402088, 0x1a2f9f0, 0x1, 0x0, 0x0)
/Users/apple/go/pkg/mod/github.com/faasflow/sdk@v1.0.0/executor/executor.go:350 +0x702 fp=0xc000285900 sp=0xc0002857b8 pc=0x1160a52
github.com/faasflow/sdk/executor.(*FlowExecutor).Execute(0xc000285b30, 0xc0001774d0, 0x15db96f, 0xf, 0x1a9bd40, 0x203000, 0x203000)
/Users/apple/go/pkg/mod/github.com/faasflow/sdk@v1.0.0/executor/executor.go:1266 +0xa8a fp=0xc000285a98 sp=0xc000285900 pc=0x1169d3a
github.com/faasflow/runtime/controller/handler.ExecuteFlowHandler(0xc000285c60, 0xc0003958c0, 0x16a8ec0, 0xc000154410, 0x0, 0x0)
/Users/apple/go/pkg/mod/github.com/faasflow/runtime@v0.2.2/controller/handler/execute_flow_handler.go:28 +0x295 fp=0xc000285bf8 sp=0xc000285a98 pc=0x1423bc5
github.com/s8sg/goflow/runtime.(*FlowRuntime).handleNewRequest(0xc000112a20, 0xc0003958c0, 0x0, 0x0)
/Users/apple/go/pkg/mod/github.com/s8sg/goflow@v0.1.0/runtime/flow_runtime.go:372 +0xf2 fp=0xc000285ca0 sp=0xc000285bf8 pc=0x14ac092
github.com/s8sg/goflow/runtime.(*FlowRuntime).handleRequest(0xc000112a20, 0xc0003958c0, 0xc00002844b, 0x3, 0x0, 0x0)
/Users/apple/go/pkg/mod/github.com/s8sg/goflow@v0.1.0/runtime/flow_runtime.go:349 +0x10b fp=0xc000285d08 sp=0xc000285ca0 pc=0x14abe3b
github.com/s8sg/goflow/runtime.(*FlowRuntime).queueReceiver(0xc000112a20, 0xc0000a00c0, 0x1e, 0xc00022a1b0, 0x7, 0x9, 0x254815dd1, 0x1a6fd60)
/Users/apple/go/pkg/mod/github.com/s8sg/goflow@v0.1.0/runtime/flow_runtime.go:324 +0x181 fp=0xc000285dd8 sp=0xc000285d08 pc=0x14ab881
github.com/s8sg/goflow/runtime.(*FlowRuntime).queueReceiver-fm(0xc0000a00c0, 0x1e, 0xc00022a1b0, 0x7, 0x9, 0xc0001aec60, 0x0)
/Users/apple/go/pkg/mod/github.com/s8sg/goflow@v0.1.0/runtime/flow_runtime.go:304 +0x5c fp=0xc000285e28 sp=0xc000285dd8 pc=0x14af4fc
github.com/benmanns/goworker.(*worker).run(0xc0000a82c0, 0xc000066900, 0xc000021410)
/Users/apple/go/pkg/mod/github.com/benmanns/goworker@v0.1.3/worker.go:154 +0x29f fp=0xc000285ed8 sp=0xc000285e28 pc=0x142067f
github.com/benmanns/goworker.(*worker).work.func1(0xc0000ac0d0, 0xc0000a82c0, 0xc00010a480)
/Users/apple/go/pkg/mod/github.com/benmanns/goworker@v0.1.3/worker.go:108 +0x12a fp=0xc000285fc8 sp=0xc000285ed8 pc=0x142243a
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1373 +0x1 fp=0xc000285fd0 sp=0xc000285fc8 pc=0x10647c1
created by github.com/benmanns/goworker.(*worker).work
/Users/apple/go/pkg/mod/github.com/benmanns/goworker@v0.1.3/worker.go:93 +0x1b4 |
Ack. Let me check |
This is Fixed by #15 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
error message
test code
Maybe
TraceHandler's operationSpans
concurrent operate.The text was updated successfully, but these errors were encountered: