Skip to content

Workaround for likely memory managment bug - #1

Open
eric-j-ason wants to merge 1 commit into
libremesh:masterfrom
eric-j-ason:fix-lime-packages-issue-1198
Open

Workaround for likely memory managment bug#1
eric-j-ason wants to merge 1 commit into
libremesh:masterfrom
eric-j-ason:fix-lime-packages-issue-1198

Conversation

@eric-j-ason

Copy link
Copy Markdown

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant