-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Labels
HTLCbugUnintended code behaviourUnintended code behaviourcommitmentsCommitment transactions containing the state of the channelCommitment transactions containing the state of the channelhtlcswitch
Description
Background
After a clean stop of lnd (via lnrpc stop), and then restarting lnd, the node runs for a few minutes, but then crashes with the message and dump:
2018-04-24 10:12:44.022 [INF] HSWC: ChannelLink(1e49eb55a996b60dde39686e36cdc7e3039bf8b49454093265367b6ba7a28bac:0) has exited
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x58 pc=0x8b07ff]
goroutine 40072 [running]:
github.com/lightningnetwork/lnd/lnwallet.(*LightningChannel).evaluateHTLCView(0xc420271200, 0xc421ef4030, 0xc42a2fd518, 0xc42a2fd510, 0x43, 0x1, 0xc421dd7f80)
/Users/roasbeef/gocode/src/github.com/lightningnetwork/lnd/lnwallet/channel.go:2392 +0x1cf
github.com/lightningnetwork/lnd/lnwallet.(*LightningChannel).computeView(0xc420271200, 0xc421ef4030, 0x1, 0xc421ef4030, 0xc42403b020, 0xc42a2fde80, 0xc42a2fd5d0, 0x429d69)
/Users/roasbeef/gocode/src/github.com/lightningnetwork/lnd/lnwallet/channel.go:3267 +0x179
github.com/lightningnetwork/lnd/lnwallet.(*LightningChannel).validateCommitmentSanity(0xc420271200, 0x14, 0x20, 0x1, 0x0, 0x40c32e, 0xc420271368)
/Users/roasbeef/gocode/src/github.com/lightningnetwork/lnd/lnwallet/channel.go:3357 +0x116
github.com/lightningnetwork/lnd/lnwallet.(*LightningChannel).SignNextCommitment(0xc420271200, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/Users/roasbeef/gocode/src/github.com/lightningnetwork/lnd/lnwallet/channel.go:2851 +0x224
github.com/lightningnetwork/lnd/htlcswitch.(*channelLink).updateCommitTx(0xc433670780, 0x3, 0x0)
/Users/roasbeef/gocode/src/github.com/lightningnetwork/lnd/htlcswitch/link.go:1440 +0x9d
github.com/lightningnetwork/lnd/htlcswitch.(*channelLink).htlcManager(0xc433670780)
/Users/roasbeef/gocode/src/github.com/lightningnetwork/lnd/htlcswitch/link.go:879 +0x6cf
created by github.com/lightningnetwork/lnd/htlcswitch.(*channelLink).Start
/Users/roasbeef/gocode/src/github.com/lightningnetwork/lnd/htlcswitch/link.go:391 +0x14e
Your environment
- lnd 0.4.1-beta
- 4.13.0-1011-azure 14-Ubuntu SMP Thu Feb 15 16:15:39 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
- bitcoind 0.16.0
Steps to reproduce
Did not happen more than once (yet)
I had 65 open channels, on restart, received the above message.
Full log of the session is attached (logging level only at info).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
HTLCbugUnintended code behaviourUnintended code behaviourcommitmentsCommitment transactions containing the state of the channelCommitment transactions containing the state of the channelhtlcswitch