Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix another data race by backporting fb3ceba
WARNING: DATA RACE Read at 0x00c005b2f898 by goroutine 50785: gitlab.com/thorchain/tss/go-tss/p2p.(*StreamMgr).ReleaseStream() /home/alex/workspace/github.com/zeta-chain/go-tss/p2p/stream_helper.go:53 +0x1f0 gitlab.com/thorchain/tss/go-tss/p2p.(*Communication).ReleaseStream() /home/alex/workspace/github.com/zeta-chain/go-tss/p2p/communication.go:484 +0x104 gitlab.com/thorchain/tss/go-tss/tss.(*TssServer).KeySign.func1() /home/alex/workspace/github.com/zeta-chain/go-tss/tss/keysign.go:219 +0xc4 runtime.deferreturn() /usr/local/go/src/runtime/panic.go:602 +0x5c gitlab.com/thorchain/tss/go-tss/tss.(*FourNodeScaleZetaSuite).doTestConcurrentKeySign.func1() /home/alex/workspace/github.com/zeta-chain/go-tss/tss/tss_4nodes_zeta_test.go:198 +0x294 gitlab.com/thorchain/tss/go-tss/tss.(*FourNodeScaleZetaSuite).doTestConcurrentKeySign.gowrap1() /home/alex/workspace/github.com/zeta-chain/go-tss/tss/tss_4nodes_zeta_test.go:203 +0x44 Previous write at 0x00c005b2f898 by goroutine 72246: gitlab.com/thorchain/tss/go-tss/p2p.(*StreamMgr).AddStream() /home/alex/workspace/github.com/zeta-chain/go-tss/p2p/stream_helper.go:76 +0x13c gitlab.com/thorchain/tss/go-tss/p2p.(*Communication).readFromStream() /home/alex/workspace/github.com/zeta-chain/go-tss/p2p/communication.go:176 +0x334 gitlab.com/thorchain/tss/go-tss/p2p.(*Communication).handleStream() /home/alex/workspace/github.com/zeta-chain/go-tss/p2p/communication.go:195 +0x10c gitlab.com/thorchain/tss/go-tss/p2p.(*Communication).handleStream-fm() <autogenerated>:1 +0x44 github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1() /home/alex/go/pkg/mod/github.com/zeta-chain/[email protected]/p2p/host/basic/basic_host.go:580 +0xb4 github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler.gowrap1() /home/alex/go/pkg/mod/github.com/zeta-chain/[email protected]/p2p/host/basic/basic_host.go:421 +0x6c
- Loading branch information