Rusty Russell
afbddcf7f3
lightningd: fix crash on rapid reconnect.
Happens occasionally when running
`tests/test_connection.py::test_mutual_reconnect_race` (which is too
flaky to add, without more fixes):
```
lightningd: lightningd/peer_control.c:1252: peer_active: Assertion `!channel->owner' failed.
lightningd: FATAL SIGNAL 6 (version v0.11.0.1-38-g4f167da)
0x5594a41f8f45 send_backtrace
common/daemon.c:33
0x5594a41f8fef crashdump
common/daemon.c:46
0x7f7cb585c08f ???
/build/glibc-SzIz7B/glibc-2.31/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
0x7f7cb585c00b __GI_raise
../sysdeps/unix/sysv/linux/raise.c:51
0x7f7cb583b858 __GI_abort
/build/glibc-SzIz7B/glibc-2.31/stdlib/abort.c:79
0x7f7cb583b728 __assert_fail_base
/build/glibc-SzIz7B/glibc-2.31/assert/assert.c:92
0x7f7cb584cfd5 __GI___assert_fail
/build/glibc-SzIz7B/glibc-2.31/assert/assert.c:101
0x5594a41b45ca peer_active
lightningd/peer_control.c:1252
0x5594a418794c connectd_msg
lightningd/connect_control.c:457
0x5594a41cd457 sd_msg_read
lightningd/subd.c:556
0x5594a41ccbe5 read_fds
lightningd/subd.c:357
0x5594a4269fc2 next_plan
ccan/ccan/io/io.c:59
0x5594a426abca do_plan
ccan/ccan/io/io.c:407
0x5594a426ac0c io_ready
ccan/ccan/io/io.c:417
0x5594a426ceff io_loop
ccan/ccan/io/poll.c:453
0x5594a41930d9 io_loop_with_timers
lightningd/io_loop_with_timers.c:22
0x5594a4199293 main
lightningd/lightningd.c:1181
0x7f7cb583d082 __libc_start_main
../csu/libc-start.c:308
0x5594a416e15d ???
???:0
0xffffffffffffffff ???
???:0
```
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2022-06-28 13:47:27 +09:30
..
2022-06-21 06:52:35 +09:30
2021-10-28 15:51:38 +02:00
2022-06-27 17:21:35 +09:30
2021-10-15 12:09:36 +02:00
2022-06-27 17:21:35 +09:30
2021-09-17 09:43:22 +09:30
2022-04-02 09:40:18 +10:30
2022-03-23 13:20:12 +10:30
2021-01-10 13:44:04 +01:00
2022-03-23 13:20:12 +10:30
2022-03-23 13:20:12 +10:30
2022-04-02 09:40:18 +10:30
2022-01-20 15:24:06 +10:30
2022-03-05 15:12:12 +10:30
2022-02-07 13:02:09 +10:30
2022-06-28 06:09:01 +09:30
2022-03-23 13:20:12 +10:30
2021-12-06 10:05:39 +10:30
2022-06-21 06:52:35 +09:30
2022-03-23 13:20:12 +10:30
2022-06-27 17:21:35 +09:30
2022-02-08 11:15:52 +10:30
2022-03-24 09:53:38 +10:30
2021-09-17 09:43:22 +09:30
2022-04-20 16:30:05 +09:30
2021-12-28 04:42:42 +10:30
2021-12-06 10:05:39 +10:30
2020-09-08 09:42:00 +09:30
2022-06-21 06:52:35 +09:30
2020-09-08 09:42:00 +09:30
2022-03-05 15:03:34 +10:30
2019-05-31 17:57:10 +02:00
2021-12-06 10:05:39 +10:30
2020-08-11 08:39:24 +09:30
2022-06-27 17:21:35 +09:30
2021-11-30 13:34:44 +10:30
2022-06-28 06:09:01 +09:30
2022-06-27 17:21:35 +09:30
2021-12-06 10:05:39 +10:30
2021-09-17 09:43:22 +09:30
2022-06-27 17:21:35 +09:30
2022-03-05 15:03:34 +10:30
2022-06-17 14:14:02 +09:30
2022-03-23 13:20:12 +10:30
2022-03-10 09:40:09 +10:30
2022-06-21 06:52:35 +09:30
2022-03-31 19:38:05 +10:30
2022-04-12 15:17:52 +09:30
2022-03-31 13:40:27 +10:30
2021-12-28 04:42:42 +10:30
2022-03-29 10:55:12 +10:30
2021-12-01 05:44:28 +10:30
2022-04-05 05:45:04 +09:30
2022-03-23 13:20:12 +10:30
2022-06-27 17:21:35 +09:30
2022-03-23 13:20:12 +10:30
2022-06-27 17:21:35 +09:30
2021-09-17 09:43:22 +09:30
2022-06-21 06:52:35 +09:30
2022-02-08 11:15:52 +10:30
2022-06-28 13:47:27 +09:30
2022-06-17 20:30:16 +09:30
2022-02-08 11:15:52 +10:30
2022-02-08 11:15:52 +10:30
2022-06-27 17:21:35 +09:30
2022-03-31 13:40:27 +10:30
2022-02-08 11:15:52 +10:30
2022-06-17 14:18:48 +09:30
2021-06-25 09:49:33 +09:30
2022-06-27 17:21:35 +09:30
2021-09-17 09:43:22 +09:30
2022-06-27 17:21:35 +09:30
2021-12-14 09:33:10 +10:30
2022-03-23 13:20:12 +10:30
2021-06-16 10:29:17 +09:30
2022-06-24 14:02:04 +09:30
2022-06-27 17:21:35 +09:30
2022-03-30 06:27:52 +10:30
2021-12-06 10:05:39 +10:30
2021-10-15 12:09:36 +02:00