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

Opening fail fixes #3604

Merged
merged 2 commits into from
Mar 26, 2020
Merged

Conversation

rustyrussell
Copy link
Contributor

This is why I run a node. Of course, I should have checked it two weeks ago!

@rustyrussell rustyrussell added this to the 0.8.2 milestone Mar 25, 2020
My node crashed as follows:

	lightningd: lightningd/peer_control.c:957: peer_connected: Assertion `!peer->uncommitted_channel' failed.

In the logs I found:

	Running lightning_openingd: Cannot allocate memory

Which reveals that we're not freeing uc in that path!

Changelog-Fixed: Fix assertion on reconnect if we fail to run openingd.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Copy link
Contributor

@darosior darosior left a comment

Choose a reason for hiding this comment

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

ACK 0332063

I tried to connect to your node yesterday and had a "peer connection failed" error, apparently this fixed it.

Copy link
Member

@cdecker cdecker left a comment

Choose a reason for hiding this comment

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

ACK 0332063

@@ -401,8 +401,8 @@ void peer_start_channeld(struct channel *channel,
take(&hsmfd), NULL));

if (!channel->owner) {
log_unusual(channel->log, "Could not subdaemon channel: %s",
strerror(errno));
log_broken(channel->log, "Could not subdaemon channel: %s",
Copy link
Member

Choose a reason for hiding this comment

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

subdaemon as in a verb? Had to re-read it a couple of times :-)

@cdecker cdecker merged commit e1ba42f into ElementsProject:master Mar 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants