Rusty Russell
bd1798323a
bookkeeper: fix assert() which happens with parallel queries.
```
bookkeeper: plugins/bkpr/bookkeeper.c:1226: parse_and_log_chain_move: Assertion `e->db_id > bkpr->chainmoves_index' failed.
bookkeeper: FATAL SIGNAL 6 (version v25.09-245-g901714b-modded)
0x5d7d8718b40f send_backtrace
common/daemon.c:36
0x5d7d8718b4ab crashdump
common/daemon.c:81
0x7a6086c4532f ???
./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0x7a6086c9eb2c __pthread_kill_implementation
./nptl/pthread_kill.c:44
0x7a6086c9eb2c __pthread_kill_internal
./nptl/pthread_kill.c:78
0x7a6086c9eb2c __GI___pthread_kill
./nptl/pthread_kill.c:89
0x7a6086c4527d __GI_raise
../sysdeps/posix/raise.c:26
0x7a6086c288fe __GI_abort
./stdlib/abort.c:79
0x7a6086c2881a __assert_fail_base
./assert/assert.c:96
0x7a6086c3b516 __assert_fail
./assert/assert.c:105
0x5d7d8717505d parse_and_log_chain_move
plugins/bkpr/bookkeeper.c:1226
0x5d7d871754f4 listchainmoves_done
plugins/bkpr/bookkeeper.c:169
0x5d7d87182a4b handle_rpc_reply
plugins/libplugin.c:1072
0x5d7d87182b5c rpc_conn_read_response
plugins/libplugin.c:1361
0x5d7d871ba660 next_plan
ccan/ccan/io/io.c:60
0x5d7d871bab31 do_plan
ccan/ccan/io/io.c:422
0x5d7d871babee io_ready
ccan/ccan/io/io.c:439
```
Reported-by: @michael1011
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Fixed: plugins: assertion crash in bookkeeper when fresh records arrive while multiple queries in progress.
2025-11-03 14:03:25 +10:30
..
2025-10-01 13:29:33 +09:30
2025-10-26 12:37:58 +10:30
2025-10-23 06:44:04 +10:30
2025-08-11 11:06:22 +09:30
2025-10-24 11:30:17 +10:30
2025-09-15 11:19:17 +09:30
2025-08-11 11:06:22 +09:30
2025-08-11 11:06:22 +09:30
2025-11-03 12:54:37 +10:30
2025-11-03 14:03:25 +10:30
2025-10-02 10:19:27 +09:30
2025-10-02 10:19:27 +09:30
2025-10-02 10:19:27 +09:30
2025-08-14 19:49:09 +09:30
2025-10-22 19:43:24 +10:30
2025-10-02 10:19:27 +09:30
2025-05-17 13:05:04 -05:00
2025-05-16 22:40:45 +09:30
2025-07-07 11:18:37 +09:30
2025-10-26 12:37:58 +10:30
2025-10-01 12:12:56 +09:30
2025-10-01 15:31:30 +09:30
2025-10-26 12:37:58 +10:30
2025-09-30 11:37:31 +09:30
2025-04-16 08:02:14 +09:30
2024-11-21 14:15:36 +10:30
2025-07-07 11:18:37 +09:30
2024-11-17 14:25:29 +10:30
2025-01-27 11:07:04 +10:30
2024-11-12 06:42:52 +10:30
2025-10-24 11:30:17 +10:30
2025-10-26 12:37:58 +10:30
2025-09-30 11:37:31 +09:30
2025-08-19 13:37:50 +09:30