pchain-org / pchain

Pchain client-in-Go
https://plian.org
GNU General Public License v3.0
24 stars 12 forks source link

panic after start pchain #27

Closed liaoyd closed 5 years ago

liaoyd commented 5 years ago

fatal error: concurrent map writes

goroutine 155 [running]: runtime.throw(0x1073011, 0x15) /usr/local/go/src/runtime/panic.go:616 +0x81 fp=0xc42166ab50 sp=0xc42166ab30 pc=0x4407f1 runtime.mapassign_faststr(0xefdfa0, 0xc4201fd920, 0xc4216389f0, 0x10, 0x1) /usr/local/go/src/runtime/hashmap_fast.go:703 +0x3e9 fp=0xc42166abc0 sp=0xc42166ab50 pc=0x4212f9 github.com/pchain/vendor/github.com/ethereum/go-ethereum/consensus/tendermint/consensus.(ConsensusReactor).AddPeer(0xc4204a8180, 0x13310a0, 0xc42031c900) /home/ubuntu/pchain/src/github.com/pchain/vendor/github.com/ethereum/go-ethereum/consensus/tendermint/consensus/reactor.go:133 +0x3fc fp=0xc42166ac38 sp=0xc42166abc0 pc=0xb45c9c github.com/pchain/vendor/github.com/ethereum/go-ethereum/consensus/tendermint.(backend).AddPeer(0xc4200d79e0, 0x13310a0, 0xc42031c900) /home/ubuntu/pchain/src/github.com/pchain/vendor/github.com/ethereum/go-ethereum/consensus/tendermint/handler.go:100 +0xcc fp=0xc42166ac90 sp=0xc42166ac38 pc=0xb6c31c github.com/pchain/vendor/github.com/ethereum/go-ethereum/eth.(*ProtocolManager).handle(0xc4200303c0, 0xc42031c900, 0x0, 0x0) /home/ubuntu/pchain/src/github.com/pchain/vendor/github.com/ethereum/go-ethereum/eth/handler.go:306 +0x77c fp=0xc42166ae00 sp=0xc42166ac90 pc=0xb9219c

fanbsb commented 5 years ago

Fix in https://github.com/pchain-org/pchain/commit/373529220ecdf4c3ae8f9e521ad0ec2ce672ebcd