You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Comptime evaluator: 63 GB heap on the linux-sysroot action (StringBuilder per-byte values, no reclamation) #1944
WITH=$PWD/out/release/bin/with WITH_BUILD_ACTION_WORKER=linux-sysroot WITH_BUILD_ACTION_FORCE=1 \
out/release/bin/with build :linux-sysroot --no-deps
# rc=137; kernel: Out of memory: Killed process (with) total-vm:63677292kB, anon-rss:63470244kB
The same action compiled by the native runner (out/.build-state/build-runner) finishes and writes a 10 MB pack. The action reads Zig's glibc abilists, writes about 165 files (about 10 MB), and assembles them into one StringBuilder.with_capacity(24000000). So the evaluator's heap runs at several thousand times the program's working set: a Vec[u8]-backed StringBuilder is interpreted one ComptimeValue per byte, and the evaluator heap is never freed until the function returns.
The driver said nothing at all. The serial evaluator-worker path (run_build_action_worker_process) did not report a worker's exit, so the survey printed failed: linux-sysroot with no reason. That half is fixed on linux-own-sdk: the driver now names a killed worker and its signal.
Expected: evaluating a build action costs memory proportional to what the action holds, or the evaluator fails loudly at a budget. Workaround: the native runner, which the driver uses once the bootstrap link root is this generation's.
Activity
A build action worker the kernel kills is named with its signal, not …
A build action worker the kernel kills is named with its signal, not …
comptime: share immutable text between persistent snapshots (#1944)
WIP: restore branch-local cleanup and detect omitted ownership drops (#…
D82: a Drop struct whose owning fields can all be vacated carries the…
A build action worker the kernel kills is named with its signal, not …
comptime: share immutable text between persistent snapshots (#1944)
WIP: restore branch-local cleanup and detect omitted ownership drops (#…
D82: a destructor runs after an explicit field vacate; the vacated fi…
D82: a Drop struct whose owning fields can all be vacated carries the…
MirLower: a call-released owned local (task handle, scope handle) mov…
D82: a destructor runs after an explicit field vacate; the vacated fi…
D82: a Drop struct whose owning fields can all be vacated carries the…
Linux builds and links with no host toolchain: the SDK's sysroot and …
D82: a destructor runs after an explicit field vacate; droppable fiel…
Comptime StringBuilder is one growable buffer; arena reads share text (…
Comptime StringBuilder is one growable buffer; arena reads share text (…
Comptime StringBuilder is one growable buffer; arena reads share text (…
join_cleanup on an owned Task binding moves it into the cleanup await (…
join_cleanup on an owned Task binding moves it into the cleanup await (…
join_cleanup on an owned Task binding moves it into the cleanup await (…
join_cleanup on an owned Task binding moves it into the cleanup await (…
Cancellation: indirect callees that may suspend get the cancelled-ret…
MIR validator: a local whose storage ends while it holds a value with…