Skip to content

Seed-built stage1 of main (4932b8bd, D62/D63) diverges from the stage2 compiler: false "use of moved value" in src/main.w:2992, contextual-join internal error in test/complexity/stdlib.w #1631

Closed

Description

@ehartford

On main 4932b8bd (closures stack, D62/D63) the stage1 built by the pinned seed (nightly-20260922-local-1-8c859a7d0559, with build :dev → out/bootstrap/bin/with-stage1) and the stage2/release compiler disagree on the SAME source:

Fixpoint (stage2 == stage3) holds, so the stage2 compiler is self-consistent; the divergence is stage1's: the old seed miscompiles the new Sema (or the new Sema's D63 code has behavior that differs under the seed's codegen — e.g. the fn-not-Copy flip changed how the compiler's own callable values are moved/copied, and the seed's semantics for those sites are the OLD ones). Consequences: the iterate tier (:dev, stage1 fixtures) is unreliable on this tree — an agent verifying with stage1 sees false errors — until a seed built from a post-D63 compiler is cut. Blocked on: main must first be able to drive the build runner (fix for the let run = c.run alias call, in progress), then cut the seed from that build.

Route to pin: build stage2 vs stage1 in one tree, diff --dump-mir/--trace-ownership main:_N for run_cli's actual_options.source_path between the two binaries; the differing Sema decision names the miscompiled site.

Activity

  1. added
    bug
    on Sep 24, 2026
  2. ehartford commented on Sep 24, 2026

    @ehartford
    ContributorAuthor

    Re-diagnosed under the NEW seed (nightly-20260925, main 1814a14): the same seed-built stage1 binary rejects src/main.w both via check src/main.w and via a direct build src/main.w -O1 ("use of moved value" at actual_options.source_path, ~2991), while with build :stage2 — which compiles the generated out/gen/main.w — succeeds, and that stage2 checks the source clean. So this is not stage1-vs-stage2 and not the old seed: it is two compile paths (direct source vs the generated main) giving two answers for one program — a D65 case for docs/mir-sema-hardening.md (§1 table row). Route: diff --trace-ownership main:_N for actual_options.source_path between check src/main.w and check out/gen/main.w with the same binary; the differing Sema decision names the site. Not blocking the battery (stage2/3 are the gate).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions