ElementsProject / lightning

Core Lightning — Lightning Network implementation focusing on spec compliance and performance
Other
2.84k stars 901 forks source link

Crashloop on current master #7087

Closed daywalker90 closed 8 months ago

daywalker90 commented 8 months ago

i was testing master on a couple commits before and after rc1 was tagged and on current master my testnet node keeps crashing even after i deleted gossip_store again:

 DEBUG   lightningd: Adding block 2578284: 00000000000000005d53af34a83ff9cc0b7d2e7c9be92ac173d932922855b82f
 lightningd: FATAL SIGNAL 11 (version v23.11-400-gcdb0001-modded)
 0x5599cd81dbd5 send_backtrace
         common/daemon.c:33
 0x5599cd81dc5d crashdump
         common/daemon.c:75
 0x7f73540f504f ???
         ./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
 0x5599cd8340cc bitcoin_block_from_hex
         bitcoin/block.c:214
 0x5599cd7a1e68 getrawblockbyheight_callback
         lightningd/bitcoind.c:492
 0x5599cd7ed7ca plugin_response_handle
         lightningd/plugin.c:661
 0x5599cd7f0f31 plugin_read_json_one
         lightningd/plugin.c:773
 0x5599cd7f11cd plugin_read_json
         lightningd/plugin.c:824
 0x5599cd988d37 next_plan
         ccan/ccan/io/io.c:59
 0x5599cd9891be do_plan
         ccan/ccan/io/io.c:407
 0x5599cd989257 io_ready
         ccan/ccan/io/io.c:417
 0x5599cd98aab4 io_loop
         ccan/ccan/io/poll.c:453
 0x5599cd7c5501 io_loop_with_timers
         lightningd/io_loop_with_timers.c:22
 0x5599cd7caa51 main
         lightningd/lightningd.c:1425
 0x7f73540e0249 __libc_start_call_main
         ../sysdeps/nptl/libc_start_call_main.h:58
 0x7f73540e0304 __libc_start_main_impl
         ../csu/libc-start.c:360
 0x5599cd79ff10 ???
         ???:0
 0xffffffffffffffff ???
         ???:0
 **BROKEN** lightningd: FATAL SIGNAL 11 (version v23.11-400-gcdb0001-modded)
 **BROKEN** lightningd: backtrace: common/daemon.c:38 (send_backtrace) 0x5599cd81dc1d
 **BROKEN** lightningd: backtrace: common/daemon.c:75 (crashdump) 0x5599cd81dc5d
 **BROKEN** lightningd: backtrace: ./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0 ((null)) 0x7f73540f504f
 **BROKEN** lightningd: backtrace: bitcoin/block.c:214 (bitcoin_block_from_hex) 0x5599cd8340cc
 **BROKEN** lightningd: backtrace: lightningd/bitcoind.c:492 (getrawblockbyheight_callback) 0x5599cd7a1e68
 **BROKEN** lightningd: backtrace: lightningd/plugin.c:661 (plugin_response_handle) 0x5599cd7ed7ca
 **BROKEN** lightningd: backtrace: lightningd/plugin.c:773 (plugin_read_json_one) 0x5599cd7f0f31
 **BROKEN** lightningd: backtrace: lightningd/plugin.c:824 (plugin_read_json) 0x5599cd7f11cd
 **BROKEN** lightningd: backtrace: ccan/ccan/io/io.c:59 (next_plan) 0x5599cd988d37
 **BROKEN** lightningd: backtrace: ccan/ccan/io/io.c:407 (do_plan) 0x5599cd9891be
 **BROKEN** lightningd: backtrace: ccan/ccan/io/io.c:417 (io_ready) 0x5599cd989257
 **BROKEN** lightningd: backtrace: ccan/ccan/io/poll.c:453 (io_loop) 0x5599cd98aab4
 **BROKEN** lightningd: backtrace: lightningd/io_loop_with_timers.c:22 (io_loop_with_timers) 0x5599cd7c5501
 **BROKEN** lightningd: backtrace: lightningd/lightningd.c:1425 (main) 0x5599cd7caa51
 **BROKEN** lightningd: backtrace: ../sysdeps/nptl/libc_start_call_main.h:58 (__libc_start_call_main) 0x7f73540e0249
 **BROKEN** lightningd: backtrace: ../csu/libc-start.c:360 (__libc_start_main_impl) 0x7f73540e0304
 **BROKEN** lightningd: backtrace: (null):0 ((null)) 0x5599cd79ff10
 **BROKEN** lightningd: backtrace: (null):0 ((null)) 0xffffffffffffffff
Lagrang3 commented 8 months ago

I have the same problem.

rustyrussell commented 8 months ago

This means libwally couldn't parse a transaction :(

jgriffiths commented 8 months ago

As discussed offline, this is now fixed in wally master.