panic: runtime error: slice bounds out of range [:32] with capacity 0
BUG REPORT
Stack Trace or error message
uniapi@oix:~/Sia$ siad
Sia Daemon v1.4.2.1
WARN: compiled without build commit or version. To compile correctly, please use the makefile
Loading...
(1/7) Loading siad...
(2/7) Loading gateway...
(3/7) Loading consensus...
(4/7) Loading transaction pool...
(5/7) Loading wallet...
(6/7) Loading host...
(7/7) Loading renter...
API is now available, synchronous startup completed in 0.117 seconds
goroutine 15 [running]:
gitlab.com/NebulousLabs/Sia/modules/consensus.(*ConsensusSet).targetAdjustmentBase(0xc000236000, 0xc003cb8d00, 0xc0045b0420, 0xb971c0)
/export/home/uniapi/Go/src/gitlab.com/NebulousLabs/Sia/modules/consensus/processedblock.go:70 +0x2f0
gitlab.com/NebulousLabs/Sia/modules/consensus.(*ConsensusSet).setChildTarget(0xc000236000, 0xc003cb8d00, 0xc0045b0420)
/export/home/uniapi/Go/src/gitlab.com/NebulousLabs/Sia/modules/consensus/processedblock.go:117 +0x139
gitlab.com/NebulousLabs/Sia/modules/consensus.(*ConsensusSet).newChild(0xc000236000, 0xc0001b6540, 0xc0045b02c0, 0x3902000000000000, 0xefa0210745b02312, 0xe2266e3c05a4033c, 0x1e0947cc40c3f265, 0x833406ef0441bddc, 0x5859c7b6, 0xc003c3c800, ...)
/export/home/uniapi/Go/src/gitlab.com/NebulousLabs/Sia/modules/consensus/processedblock.go:145 +0x39d
gitlab.com/NebulousLabs/Sia/modules/consensus.(*ConsensusSet).addBlockToTree(0xc000236000, 0xc0001b6540, 0x3902000000000000, 0xefa0210745b02312, 0xe2266e3c05a4033c, 0x1e0947cc40c3f265, 0x833406ef0441bddc, 0x5859c7b6, 0xc003c3c800, 0x1, ...)
/export/home/uniapi/Go/src/gitlab.com/NebulousLabs/Sia/modules/consensus/accept.go:155 +0x98
gitlab.com/NebulousLabs/Sia/modules/consensus.(*ConsensusSet).managedAcceptBlocks.func1(0xc0001b6540, 0xe36677aefd7c4001, 0xc0001b6540)
/export/home/uniapi/Go/src/gitlab.com/NebulousLabs/Sia/modules/consensus/accept.go:268 +0x32a
gitlab.com/NebulousLabs/bolt.(*DB).Update(0xc0002ac000, 0xc0001d70e0, 0x0, 0x0)
/export/home/uniapi/Go/pkg/mod/gitlab.com/!nebulous!labs/bolt@v1.4.0/db.go:677 +0xa8
gitlab.com/NebulousLabs/Sia/modules/consensus.(*ConsensusSet).managedAcceptBlocks(0xc000236000, 0xc003bb4000, 0xa, 0xa, 0x0, 0x0, 0x0)
/export/home/uniapi/Go/src/gitlab.com/NebulousLabs/Sia/modules/consensus/accept.go:247 +0x426
gitlab.com/NebulousLabs/Sia/modules/consensus.(*ConsensusSet).managedReceiveBlocks(0xc000236000, 0xe280c0, 0xc0039f5360, 0x0, 0x0)
/export/home/uniapi/Go/src/gitlab.com/NebulousLabs/Sia/modules/consensus/synchronize.go:224 +0x517
gitlab.com/NebulousLabs/Sia/modules/gateway.(*Gateway).managedRPC(0xc0001b8000, 0xc0001eeca0, 0x11, 0xc74206, 0xa, 0xc001b78110, 0x0, 0x0)
/export/home/uniapi/Go/src/gitlab.com/NebulousLabs/Sia/modules/gateway/rpc.go:68 +0x2f0
gitlab.com/NebulousLabs/Sia/modules/gateway.(*Gateway).RPC(0xc0001b8000, 0xc0001eeca0, 0x11, 0xc74206, 0xa, 0xc001b78110, 0x0, 0x0)
/export/home/uniapi/Go/src/gitlab.com/NebulousLabs/Sia/modules/gateway/rpc.go:81 +0xf2
gitlab.com/NebulousLabs/Sia/modules/consensus.(*ConsensusSet).managedInitialBlockchainDownload.func1(0xc000236000, 0xc0001d7e78, 0xc0001d7e28, 0xc0001d7e30, 0x0, 0x0)
/export/home/uniapi/Go/src/gitlab.com/NebulousLabs/Sia/modules/consensus/synchronize.go:579 +0x129
gitlab.com/NebulousLabs/Sia/modules/consensus.(*ConsensusSet).managedInitialBlockchainDownload(0xc000236000, 0xc7bada, 0x11)
/export/home/uniapi/Go/src/gitlab.com/NebulousLabs/Sia/modules/consensus/synchronize.go:600 +0x26e
gitlab.com/NebulousLabs/Sia/modules/consensus.consensusSetAsyncStartup(0xc000236000, 0x1, 0x0, 0x1000200000001)
/export/home/uniapi/Go/src/gitlab.com/NebulousLabs/Sia/modules/consensus/consensusset.go:165 +0x324
gitlab.com/NebulousLabs/Sia/modules/consensus.NewCustomConsensusSet.func1(0xc00005c5a0, 0xc000236000, 0xe2e701)
/export/home/uniapi/Go/src/gitlab.com/NebulousLabs/Sia/modules/consensus/consensusset.go:219 +0xf2
created by gitlab.com/NebulousLabs/Sia/modules/consensus.NewCustomConsensusSet
/export/home/uniapi/Go/src/gitlab.com/NebulousLabs/Sia/modules/consensus/consensusset.go:210 +0x136
Expected Behavior
siad should continue syncing the blockchain.
Observed Behavior
siad crashes every time reached progress 34.2%
uniapi@oix:~$ siac consensus
Synced: No
Height: 83490
Progress (estimated): 34.2%
How to reproduce it (as minimally and precisely as possible)
Can provide access to the target machine if necessary.
Environment
- Sia version: Sia Daemon v1.4.2.1-master
- OS: Oracle Solaris 11.3 X86