Skip to content

macOS engine: swift build -c release crashes the compiler on Xcode 27.2 (CopyPropagation ownership error in popUpAwaitOpen); cua engine build fails on the owner's MacBook #502

Closed

Description

@SSFSKIM

What

On Xcode 27.2 (Swift 6.4.2, build 27B52, macOS 27.2: the owner's MacBook), swift build -c release of the macOS engine crashes the compiler. The SIL pass CopyPropagation reports "Found ownership error?!" and then a fatal error on Engine.popUpAwaitOpen (native/engine/Sources/Engine/PopUpPoint.swift:789). That function arrived in 1a1956b (#458/#467, 2026-11-21). The #117 M4 re-cut's executor reproduced it on main b1b1548 from a git archive, so it predates M4.

Impact

Done when

  • The engine builds with swift build -c release on Xcode 27.2, and swift test stays green.
  • The fix is either a restructure of the ownership pattern CopyPropagation trips on (preferred) or @_optimize(none) on popUpAwaitOpen, with a comment naming the compiler crash.
  • CI builds the engine in release on the newest Xcode the hosted image offers, if it has 27.x (otherwise a recorded note), so this can't recur unseen.

Activity

  1. added
    bug
    status:ready-for-implementer
    priority:P1
    status:in-progress
    and removed
    status:ready-for-implementer
    on Nov 23, 2026
  2. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-progress: Own lane from main; fix agent dispatched.

  3. added a commit that references this issue on Nov 23, 2026
  4. added
    status:in-review
    and removed
    status:in-progress
    on Nov 23, 2026
  5. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-review: PR #504; local Xcode 27.2 release build passes.

  6. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    [review-trail] No independent review dispatched: a 3-line substitution of an immutable struct's field read (target.kind -> let kind) plus a comment. Witness: local swift build -c release on Xcode 27.2 passes; swift test 1659/0/1.

  7. removed
    status:in-review
    on Nov 23, 2026
  8. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    [board] done: Landed via PR #504 (cua 0.29.4)

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

    bugpriority:P1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions