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

gossmap: fix OpenBSD crash. #7112

Merged
merged 2 commits into from
Feb 27, 2024
Merged

Conversation

rustyrussell
Copy link
Contributor

Thanks to amazing debugging assistance from grubles, we figured out that indeed, my memory was correct: write and mmap are not consistent on all platforms. The easiest fix is to disable mmap on OpenBSD for now: the better fix is to do in-place updates using the mmap, and only rely on write() for append (which always causes a remap anyway before it's accessed).

Fixes: #7109

@rustyrussell rustyrussell added this to the v24.02 milestone Feb 27, 2024
Copy link
Contributor

@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 e20eb09

cdecker and others added 2 commits February 27, 2024 13:17
This workflow has never had a particularly good signal-to-noise ratio,
and disabling it saves us a couple of GH Actions cycles, with only
minor reduction in test reach. We should rather rethink this and use
the installation instructions to write Dockerfiles for each described
architecture, and then have the CI test-build those Dockerfiles. That
would also cover the docs during testing, rather than having yet another
place where the instructions can bitrot away.

Changelog-None No user-visible change.
Thanks to amazing debugging assistance from grubles, we figured out
that indeed, my memory was correct: write and mmap are not consistent
on all platforms.  The easiest fix is to disable mmap on OpenBSD for now:
the better fix is to do in-place updates using the mmap, and only rely
on write() for append (which always causes a remap anyway before it's accessed).

Fixes: ElementsProject#7109
Signed-off-by: Rusty Russell <[email protected]>
@cdecker cdecker enabled auto-merge (rebase) February 27, 2024 14:18
@cdecker cdecker merged commit 87f6ceb into ElementsProject:master Feb 27, 2024
35 checks passed
@grubles
Copy link
Contributor

grubles commented Feb 27, 2024

Tested ACK e38fb0c

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.

assertion failed: "common/gossmap.c"
4 participants