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
dev-tier stage1 under WITH_RT_IN_UNIT=1: a c_import program compiles and segfaults at run (release passes) #2485
Seen while landing D30 R3 (the runtime bundle). The dev tier's stage1 (with build :dev, seed-built, empty rt and .wo slots) run by hand under the lane builds test/behavior/behav_d30_rt_in_unit_c_import_links.w and behav_d30_rt_in_unit_toolchain_libc_facade.w, and the test binaries exit 139 at run. The release compiler (out/release/bin/with) passes both, and behav_d30_rt_in_unit_compiler_module_links.w under stage1 stops earlier at missing or empty compiler embedding object: out/bootstrap/bin/../lib/embedded_objects.o.
Verified on main's own stage1 as well (~/.local/with-staging/reseed-main/out/bootstrap/bin/with-stage1 test test/behavior/behav_d30_rt_in_unit_c_import_links.w → 1 of 1 failed), so it is the dev tier, not the bundle branch.
Repro:
with build :dev
out/bootstrap/bin/with-stage1 test test/behavior/behav_d30_rt_in_unit_c_import_links.w
Expected: the fixture passes as it does on the release. Actual: exit code 139 at the run stage; the kept binary is printed as rerun:.
Route: the debug allocator on the kept binary first (WITH_DEBUG_ALLOC=1), then lldb on it. The likely seam: stage1's embedded runtime is the seed's generation while the lane compiles this tree's runtime in-unit (its rt slot is empty), the mixed-world class of #761 — the lane on stage1 should either carry stage1's own bundle (out/bootstrap/lib/rt.*, a <runtime root>/rt.* link-bundle fallback, D30 plan §10 follow-up) or refuse.
Fixed in #2498 (D30 step 3): a :dev stage1 whose rt slot is empty links the runtime root's bundle (out/bootstrap/lib/rt.o) and reads its rt.wi; the lane sweeps (plain behavior, compile_errors, spec+internals) ran green with the release binary.
Activity
D30 step 3 + D138: std imports the runtime interface; a .wo bundle is…
ehartford commentedon Oct 20, 2026
Fixed in #2498 (D30 step 3): a :dev stage1 whose rt slot is empty links the runtime root's bundle (out/bootstrap/lib/rt.o) and reads its rt.wi; the lane sweeps (plain behavior, compile_errors, spec+internals) ran green with the release binary.