Closed darosior closed 3 years ago
For more context it happened when testing the drain plugin, I was harassing a slow machine and the plugin logs quite a lot. I reported it but I think it's a really rare corner case.
Sounds to me like there is an issue in the order things are free
d.
I just hit this crash. Here's what I did:
listpays
with no arguments, but it was taking an unreasonably long time.listpays
with a bolt11
argument. It also hanged.ps
that the pay
plugin's process had crashed and was listed as <defunct>
.[Fri Nov 1 14:07:52 2019] pay[3111]: segfault at 0 ip 0000000000000000 sp 00007fff4657ce48 error 14 in pay[555eca34d000+4c000]
[Fri Nov 1 14:07:52 2019] Code: Bad RIP value.
2019-11-01T18:09:16.536Z **BROKEN** lightningd(3109): FATAL SIGNAL 11 (version 0.7.3)
2019-11-01T18:09:16.536Z **BROKEN** lightningd(3109): backtrace: common/daemon.c:54 (crashdump) 0x563a2cf184f6
2019-11-01T18:09:16.536Z **BROKEN** lightningd(3109): backtrace: /var/tmp/portage/sys-libs/glibc-2.29-r6/work/glibc-2.29/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0 ((null)) 0x7f647ffddabf
2019-11-01T18:09:16.536Z **BROKEN** lightningd(3109): backtrace: ../sysdeps/x86_64/multiarch/../strlen.S:120 ((null)) 0x7f6480044b86
2019-11-01T18:09:16.536Z **BROKEN** lightningd(3109): backtrace: /var/tmp/portage/sys-libs/glibc-2.29-r6/work/glibc-2.29/stdio-common/vfprintf-internal.c:1645 (__vfprintf_internal) 0x7f648000f37d
2019-11-01T18:09:16.536Z **BROKEN** lightningd(3109): backtrace: /var/tmp/portage/sys-libs/glibc-2.29-r6/work/glibc-2.29/libio/vsnprintf.c:114 (__vsnprintf_internal) 0x7f648002273b
2019-11-01T18:09:16.536Z **BROKEN** lightningd(3109): backtrace: /usr/include/bits/stdio2.h:80 (vsnprintf) 0x563a2cf67509
2019-11-01T18:09:16.536Z **BROKEN** lightningd(3109): backtrace: ccan/ccan/tal/str/str.c:66 (do_vfmt) 0x563a2cf67509
2019-11-01T18:09:16.537Z **BROKEN** lightningd(3109): backtrace: ccan/ccan/tal/str/str.c:92 (tal_vfmt_) 0x563a2cf6777f
2019-11-01T18:09:16.537Z **BROKEN** lightningd(3109): backtrace: lightningd/log.c:255 (logv) 0x563a2cef883a
2019-11-01T18:09:16.537Z **BROKEN** lightningd(3109): backtrace: lightningd/log.c:329 (log_) 0x563a2cef85cf
2019-11-01T18:09:16.537Z **BROKEN** lightningd(3109): backtrace: lightningd/jsonrpc.c:147 (destroy_jcon) 0x563a2cef5323
2019-11-01T18:09:16.537Z **BROKEN** lightningd(3109): backtrace: ccan/ccan/tal/tal.c:235 (notify) 0x563a2cf6827c
2019-11-01T18:09:16.537Z **BROKEN** lightningd(3109): backtrace: ccan/ccan/tal/tal.c:397 (del_tree) 0x563a2cf682c8
2019-11-01T18:09:16.537Z **BROKEN** lightningd(3109): backtrace: ccan/ccan/tal/tal.c:407 (del_tree) 0x563a2cf68370
2019-11-01T18:09:16.537Z **BROKEN** lightningd(3109): backtrace: ccan/ccan/tal/tal.c:481 (tal_free) 0x563a2cf68dc7
2019-11-01T18:09:16.537Z **BROKEN** lightningd(3109): backtrace: ccan/ccan/tal/tal.c:469 (tal_free) 0x563a2cf68dc7
2019-11-01T18:09:16.537Z **BROKEN** lightningd(3109): backtrace: ccan/ccan/io/poll.c:445 (io_loop) 0x563a2cf59f2b
2019-11-01T18:09:16.537Z **BROKEN** lightningd(3109): backtrace: lightningd/io_loop_with_timers.c:24 (io_loop_with_timers) 0x563a2cef351e
2019-11-01T18:09:16.537Z **BROKEN** lightningd(3109): backtrace: lightningd/lightningd.c:859 (main) 0x563a2cee39f8
2019-11-01T18:09:16.537Z **BROKEN** lightningd(3109): backtrace: ../csu/libc-start.c:308 (__libc_start_main) 0x7f647ffc8eaa
2019-11-01T18:09:16.537Z **BROKEN** lightningd(3109): backtrace: (null):0 ((null)) 0x563a2cee43b9
2019-11-01T18:09:16.537Z **BROKEN** lightningd(3109): backtrace: (null):0 ((null)) 0xffffffffffffffff
Hmmm we should not accept multiple calls for the same plugin method. Maybe it was the same for me with drain
Have not erncounetered this for a year. Closing.
@darosior it's still open
Lol thanks
Running master on 0985c6e219f6d3300853b640b5b29c15fb21358f