mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 15:44:21 +01:00
If we had two things to clean, we fired off two requests (eg. listforwards and listinvoices) and both marked the timer as finished, triggering an assert. We already have a refcount for outstanding requests to avoid this for e.g. outstanding del commands, so use it here too! ``` Jan 19 19:20:00 lightningd[748044]: autoclean: plugins/libplugin.c:445: timer_complete: Assertion `p->in_timer > 0' failed. Jan 19 19:20:00 lightningd[748044]: autoclean: FATAL SIGNAL 6 (version v22.11.1) Jan 19 19:20:00 lightningd[748044]: 0x562c388136e4 send_backtrace Jan 19 19:20:00 lightningd[748044]: common/daemon.c:33 Jan 19 19:20:00 lightningd[748044]: 0x562c3881376c crashdump Jan 19 19:20:00 lightningd[748044]: common/daemon.c:46 Jan 19 19:20:00 lightningd[748044]: 0x7f26d0898d5f ??? Jan 19 19:20:00 lightningd[748044]: ./signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0 Jan 19 19:20:00 lightningd[748044]: 0x7f26d0898ce1 __GI_raise Jan 19 19:20:00 lightningd[748044]: ../sysdeps/unix/sysv/linux/raise.c:51 Jan 19 19:20:00 lightningd[748044]: 0x7f26d0882536 __GI_abort Jan 19 19:20:00 lightningd[748044]: ./stdlib/abort.c:79 Jan 19 19:20:00 lightningd[748044]: 0x7f26d088240e __assert_fail_base Jan 19 19:20:00 lightningd[748044]: ./assert/assert.c:92 Jan 19 19:20:00 lightningd[748044]: 0x7f26d0891661 __GI___assert_fail Jan 19 19:20:00 lightningd[748044]: ./assert/assert.c:101 Jan 19 19:20:00 lightningd[748044]: 0x562c3880355d timer_complete Jan 19 19:20:00 lightningd[748044]: plugins/libplugin.c:445 Jan 19 19:20:00 lightningd[748044]: 0x562c38800b54 clean_finished Jan 19 19:20:00 lightningd[748044]: plugins/autoclean.c:122 Jan 19 19:20:00 lightningd[748044]: 0x562c388010ed clean_finished_one Jan 19 19:20:00 lightningd[748044]: plugins/autoclean.c:132 Jan 19 19:20:00 lightningd[748044]: 0x562c388011b6 del_done Jan 19 19:20:00 lightningd[748044]: plugins/autoclean.c:149 Jan 19 19:20:00 lightningd[748044]: 0x562c388058b5 handle_rpc_reply Jan 19 19:20:00 lightningd[748044]: plugins/libplugin.c:768 Jan 19 19:20:00 lightningd[748044]: 0x562c38805a39 rpc_read_response_one Jan 19 19:20:00 lightningd[748044]: plugins/libplugin.c:944 Jan 19 19:20:00 lightningd[748044]: 0x562c38805ad7 rpc_conn_read_response Jan 19 19:20:00 lightningd[748044]: plugins/libplugin.c:968 Jan 19 19:20:00 lightningd[748044]: 0x562c38876b60 next_plan Jan 19 19:20:00 lightningd[748044]: ccan/ccan/io/io.c:59 Jan 19 19:20:00 lightningd[748044]: 0x562c38876fe7 do_plan Jan 19 19:20:00 lightningd[748044]: ccan/ccan/io/io.c:407 Jan 19 19:20:00 lightningd[748044]: 0x562c38877080 io_ready Jan 19 19:20:00 lightningd[748044]: ccan/ccan/io/io.c:417 Jan 19 19:20:00 lightningd[748044]: 0x562c3887823c io_loop Jan 19 19:20:00 lightningd[748044]: ccan/ccan/io/poll.c:453 Jan 19 19:20:00 lightningd[748044]: 0x562c38805d11 plugin_main Jan 19 19:20:00 lightningd[748044]: plugins/libplugin.c:1801 Jan 19 19:20:00 lightningd[748044]: 0x562c38801c7a main Jan 19 19:20:00 lightningd[748044]: plugins/autoclean.c:613 ``` Fixes: #5912 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Plugin Directory
Any file in this directory which is executable and whose name only consists of alphanumeric characters, space, '.', '-' or '_' will be automatically loaded when lightningd starts (unless suppressed with commandline options).