Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gossip store double delete fix #7073

Merged

Conversation

rustyrussell
Copy link
Contributor

As reported on Discord, we need to reload the gossip store after we move a node_announcement, lest we try to move it twice!

Copy link
Collaborator

@vincenzopalazzo vincenzopalazzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 9e8abf4

@grubles
Copy link
Contributor

grubles commented Feb 14, 2024

This fixed my issue in #7071.

@cdecker
Copy link
Member

cdecker commented Feb 16, 2024

ACK 9e8abf4

… node.

Theoretical problem, but still...

Signed-off-by: Rusty Russell <[email protected]>
…ode_announcement moves more than once.

If we delete it the first time a channel before it is closed, we will
crash when we try to move it again:

```
$ lightning_gossipd: gossip_store: get delete entry offset 47411992/51608943 (version v23.11-378-gac2a386-modded)
0x1002544b send_backtrace
        common/daemon.c:33
0x1003415f status_failed
        common/status.c:221
0x10016ef3 gossip_store_get_with_hdr
        gossipd/gossip_store.c:466
0x10016faf check_msg_type
        gossipd/gossip_store.c:491
0x1001722b gossip_store_set_flag
        gossipd/gossip_store.c:509
0x1001752b gossip_store_del
        gossipd/gossip_store.c:561
0x10017f5b remove_channel
        gossipd/gossmap_manage.c:299
0x100181cf kill_spent_channel
        gossipd/gossmap_manage.c:1144
0x1001a7df gossmap_manage_new_block
        gossipd/gossmap_manage.c:1183
0x10014673 new_blockheight
        gossipd/gossipd.c:483
0x10014d73 recv_req
        gossipd/gossipd.c:594
```

Reported-by: @microsatosi on Discord
Signed-off-by: Rusty Russell <[email protected]>
@cdecker cdecker force-pushed the gossip-store-double-delete branch from 9e8abf4 to e215530 Compare February 16, 2024 14:04
@cdecker cdecker linked an issue Feb 16, 2024 that may be closed by this pull request
@cdecker cdecker enabled auto-merge (rebase) February 16, 2024 14:04
@cdecker cdecker merged commit 1018b54 into ElementsProject:master Feb 16, 2024
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

STATUS_FAIL_GOSSIP_IO: gossipd exited in v24.02rc1
4 participants