Issue #2180: Step 3’s premise does not hold: in crates/unsafe/task-block/src/lib.rs,…

Open and answer this issue on GitHub.

decision, bugs · opened 2026-11-19 · updated 2026-11-19 · 0 comments

Filed by the driver from the Found: of the run of issue-1489 (#1489) (owner, 2026-11-06).

Found

Step 3’s premise does not hold: in crates/unsafe/task-block/src/lib.rs, segment() takes a segment from the thread’s SPAREs (another task’s memory, already written) or from System.alloc(MEMORY) (malloc of 64 KiB with page alignment, which may hand back reused heap memory), and Block::whole takes System.alloc(run_layout(..)). So no page of a block is known to be zero, and with System.alloc_zeroed at page alignment Rust’s std does an aligned alloc plus write_bytes, which is the same memset. Skipping the zeroing in a block needs segments from mmap (a libc dependency task-block lacks) or some other zero source. No decision yet: until then, a zeroed cut in a block can only be the default allocate plus write_bytes

Cause not marked

The Found does not say how sure its cause is (docs/issues.md I7): a cause it names is a hypothesis, unknown until checked. The second item checks it (nikaia run scripts/where.nika, a probe, callgrind) before anything is built on it; a cause shown false is answered wrong I7: ... in the report.

To build

Done when

The probe or check gives the expected output the first item names from its ADR or Part I-III section, and a tests/compiler/tests/ test (or the named check) that failed on the unfixed tree is green; or the probe already passes on develop and a test pins it, naming the commit that fixed it; or the issue is closed as by design, naming the function or ADR.


Generated by Claude Code

Back to Open Issues