harmony-one / harmony

The core protocol of harmony
https://harmony.one
GNU Lesser General Public License v3.0
1.46k stars 286 forks source link

segmentation violation on v8329-v2023.4.2-133-gfe78ba07 #4646

Open sophoah opened 5 months ago

sophoah commented 5 months ago

Describe the bug shard 1 devnet with leader rotation activated faced a segmentation fault after deletion of the shard 0 DB and restart

[signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0x1aa075f]
goroutine 2436 [running]:
github.com/harmony-one/harmony/consensus.(*Consensus).isLeader(0x22?)
        /root/go/src/github.com/harmony-one/harmony/consensus/consensus_service.go:491 +0x1f
github.com/harmony-one/harmony/consensus.(*Consensus).StartChannel(0xc00d3f8f00)
        /root/go/src/github.com/harmony-one/harmony/consensus/consensus_v2.go:332 +0x36
github.com/harmony-one/harmony/node.(*Node).BootstrapConsensus.func2()
        /root/go/src/github.com/harmony-one/harmony/node/node_handler.go:437 +0x25
created by github.com/harmony-one/harmony/node.(*Node).BootstrapConsensus
        /root/go/src/github.com/harmony-one/harmony/node/node_handler.go:436 +0x1af

To Reproduce Steps to reproduce the behavior:

  1. stop harmony process
  2. delete sard 0 DB
  3. start harmony process