Error with consensus: unexpected fault address
-
I am getting the following error when starting the siad daemon (v0.6.0) on Debian.
From what I can tell it cannot fully load the blockchain, therefore I cannot use the wallet, host etc.Below are the first messages I get when executing ./siad -M gc
Loading...
(1/2) Loading gateway...
(2/2) Loading consensus...
Finished loading in 0.442046251 seconds
unexpected fault address 0x77697040
fatal error: fault
[signal 0xb code=0x1 addr=0x77697040 pc=0x82f8bf6]After that, I get a lot of goroutine messages until it exits the program.
-
Would be extremely helpful if you could provide the first goroutine. I think it's the same problem as described here: https://github.com/NebulousLabs/Sia/issues/1237
The more examples we have of the failure, the easier it will be for us to get to the bottom of the crashes.
-
Here are the first four goroutines:
goroutine 26 [running]:
runtime.throw(0x860c088, 0x5)
/usr/local/go/src/runtime/panic.go:530 +0x7f fp=0x18da916c sp=0x18da9160
runtime.sigpanic()
/usr/local/go/src/runtime/sigpanic_unix.go:27 +0x27c fp=0x18da9198 sp=0x18da916c
github.com/NebulousLabs/bolt.(*Tx).rollback(0x19006a80)
/home/luke/go/src/github.com/NebulousLabs/bolt/tx.go:245 +0x66 fp=0x18da91b8 sp=0x18da9198
github.com/NebulousLabs/bolt.(*Tx).Commit(0x19006a80, 0x0, 0x0)
/home/luke/go/src/github.com/NebulousLabs/bolt/tx.go:163 +0x1f2 fp=0x18da9274 sp=0x18da91b8
github.com/NebulousLabs/bolt.(*DB).Update(0x18c7d8c0, 0x18da92cc, 0x0, 0x0)
/home/luke/go/src/github.com/NebulousLabs/bolt/db.go:580 +0xf4 fp=0x18da92a0 sp=0x18da9274
github.com/NebulousLabs/Sia/modules/consensus.(*ConsensusSet).addBlockToTree(0x18c6f080, 0x0, 0xe80e0000, 0x177d340d, 0xcbb749aa, 0x475fa958, 0xe93e48cf, 0x57d54dac, 0xd5733133, 0x3d0a09c8, ...)
/home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/accept.go:183 +0xde fp=0x18da9328 sp=0x18da92a0
github.com/NebulousLabs/Sia/modules/consensus.(*ConsensusSet).managedAcceptBlock(0x18c6f080, 0x0, 0xe80e0000, 0x177d340d, 0xcbb749aa, 0x475fa958, 0xe93e48cf, 0x57d54dac, 0xd5733133, 0x3d0a09c8, ...)
/home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/accept.go:259 +0x108 fp=0x18da9408 sp=0x18da9328
github.com/NebulousLabs/Sia/modules/consensus.(*ConsensusSet).threadedReceiveBlocks(0x18c6f080, 0xb769d2a8, 0x18c53508, 0x0, 0x0)
/home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/synchronize.go:215 +0x72e fp=0x18da9d98 sp=0x18da9408
github.com/NebulousLabs/Sia/modules/consensus.(*ConsensusSet).(github.com/NebulousLabs/Sia/modules/consensus.threadedReceiveBlocks)-fm(0xb769d2a8, 0x18c53508, 0x0, 0x0)
/home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/consensusset.go:146 +0x3c fp=0x18da9db0 sp=0x18da9d98
github.com/NebulousLabs/Sia/modules/gateway.(*Gateway).RPC(0x18d22600, 0x865d8f0, 0x11, 0x863ba70, 0xa, 0x18c534f8, 0x0, 0x0)
/home/luke/go/src/github.com/NebulousLabs/Sia/modules/gateway/rpc.go:53 +0x3d5 fp=0x18da9e58 sp=0x18da9db0
github.com/NebulousLabs/Sia/modules/consensus.(*ConsensusSet).threadedInitialBlockchainDownload(0x18c6f080)
/home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/synchronize.go:479 +0x580 fp=0x18da9fa0 sp=0x18da9e58
github.com/NebulousLabs/Sia/modules/consensus.New.func1(0x18c6f080, 0xb7665970, 0x18d22600)
/home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/consensusset.go:138 +0x25 fp=0x18da9fb8 sp=0x18da9fa0
runtime.goexit()
/usr/local/go/src/runtime/asm_386.s:1585 +0x1 fp=0x18da9fbc sp=0x18da9fb8
created by github.com/NebulousLabs/Sia/modules/consensus.New
/home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/consensusset.go:152 +0x617goroutine 1 [IO wait]:
net.runtime_pollWait(0xb7666898, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:160 +0x55
net.(*pollDesc).Wait(0x18ec8db8, 0x72, 0x0, 0x0)
/usr/local/go/src/net/fd_poll_runtime.go:73 +0x35
net.(*pollDesc).WaitRead(0x18ec8db8, 0x0, 0x0)
/usr/local/go/src/net/fd_poll_runtime.go:78 +0x33
net.(*netFD).accept(0x18ec8d80, 0x0, 0xb7666bd0, 0x18c10280)
/usr/local/go/src/net/fd_unix.go:426 +0x20b
net.(*TCPListener).AcceptTCP(0x18c53348, 0x1, 0x0, 0x0)
/usr/local/go/src/net/tcpsock_posix.go:254 +0x47
net.(*TCPListener).Accept(0x18c53348, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/net/tcpsock_posix.go:264 +0x39
net/http.(*Server).Serve(0x18d2ef00, 0xb7665ab8, 0x18c53348, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2117 +0x100
github.com/NebulousLabs/Sia/api.(*Server).Serve(0x18d2c850, 0x0, 0x0)
/home/luke/go/src/github.com/NebulousLabs/Sia/api/server.go:91 +0x1ed
main.startDaemon(0x8652f00, 0xe, 0x86057a0, 0x5, 0x86057a8, 0x5, 0xbfeec9f6, 0x2, 0x0, 0x863bd40, ...)
/home/luke/go/src/github.com/NebulousLabs/Sia/siad/daemon.go:181 +0x1e59
main.startDaemonCmd(0x18c98300, 0x18ca3500, 0x0, 0x2)
/home/luke/go/src/github.com/NebulousLabs/Sia/siad/daemon.go:204 +0x1bd
github.com/spf13/cobra.(*Command).execute(0x18c98300, 0x18c58088, 0x2, 0x3, 0x0, 0x0)
/home/luke/go/src/github.com/spf13/cobra/command.go:565 +0x678
github.com/spf13/cobra.(*Command).ExecuteC(0x18c98300, 0x18c98300, 0x0, 0x0)
/home/luke/go/src/github.com/spf13/cobra/command.go:651 +0x43b
github.com/spf13/cobra.(*Command).Execute(0x18c98300, 0x0, 0x0)
/home/luke/go/src/github.com/spf13/cobra/command.go:610 +0x2b
main.main()
/home/luke/go/src/github.com/NebulousLabs/Sia/siad/main.go:172 +0x762goroutine 18 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:116 +0x11e
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:22 +0x1a
created by os/signal.init.1
/usr/local/go/src/os/signal/signal_unix.go:28 +0x36goroutine 19 [sleep]:
time.Sleep(0xf8475800, 0xd)
/usr/local/go/src/runtime/time.go:59 +0xe6
github.com/NebulousLabs/Sia/sync.(*RWMutex).threadedDeadlockFinder(0x18d225c0)
/home/luke/go/src/github.com/NebulousLabs/Sia/sync/lock.go:78 +0x468
created by github.com/NebulousLabs/Sia/sync.New
/home/luke/go/src/github.com/NebulousLabs/Sia/sync/lock.go:47 +0xb0
-
Thanks a bunch. We'll be looking into it soon, try to have a fix ready so it stops crashing people's computers.