Workaround for likely memory managment bug - #1
Open
eric-j-ason wants to merge 1 commit into
Open
Conversation
Fede654
added a commit
to AlterMundi/shared-state-async
that referenced
this pull request
Aug 5, 2026
Ties upstream reports (lime-packages #1198/#1105/#1129/#1150/#1220, shared-state-async PR libremesh#1) to root causes found by review: - task.hh lacks symmetric transfer: synchronous completion destroys coroutine frames while their resume() is still on the stack (UB, matches the #1198 heisenbug and the PR libremesh#1 printout 'workaround') - Serial accept loop + no network timeouts: one wedged peer connection permanently blocks the daemon; connection-refused storms under load - merge(): minUpdateTtl guard from db58e3d computed but never used (the #1105 fix was never actually wired in) - Hostname read from /proc per entry per merge; map/DOM churn on no-op merges; div-by-zero in MbitPerSec; accept(-1) exits daemon; FDs leak into hook children (no CLOEXEC); exceptions silently swallowed Also links the audit from rust-port-plan.md open risks with port decisions (fix, don't translate). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
libremesh/lime-packages#1198