Skip to content

fix(deps): fail cleanly on allocation failure instead of listing a dependency twice or crashing - #1180

Merged
indaco merged 3 commits into
mainfrom
fix/deps-oom-keeps-graph-consistent
Oct 8, 2026
Merged

indaco merged 3 commits into
mainfrom
fix/deps-oom-keeps-graph-consistent

Conversation

@indaco

@indaco indaco commented Oct 8, 2026

Copy link
Copy Markdown
Owner

Description

When memory ran out mid-walk, mt deps -r could list the same formula twice or crash. It now stops with an out-of-memory error and leaves nothing half-built behind.

Related Issue

  • None

Notes for Reviewers

  • None

indaco added 3 commits October 8, 2026 08:27
…pendency twice or crashing

mt deps -r recorded each formula across three allocations with no
rollback: a swallowed visited-set insert let a diamond or cycle list the
same formula twice, and a later failure freed its name twice. Reserve
all three containers before committing so an exhausted allocator
surfaces as OutOfMemory with nothing leaked or double-freed.
@indaco
indaco merged commit 18110e2 into main Oct 8, 2026
4 checks passed
@indaco
indaco deleted the fix/deps-oom-keeps-graph-consistent branch October 8, 2026 10:00
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