Skip to content

SemaCheck.w ~25436 reads a membership (in) node's data1 as a call's argument list (unguarded wrong-node read) #2009

Closed

Description

@ehartford

Found by the #1964 follow-up sweep (wave-tuple, 749212f): a seed-built stage1 panics in AstPool.get_extra on test/spec/spec_ss11_7_btree_contains.w, reached from SemaCheck.w:25436, which on a membership (in) node reads get_data1(node) as if it were a call's argument extra-list. Release and stage2 pass, likely because stage1 reaches that branch only through a seed miscompile (#1991 class, type_is_ephemeral_value). But the read is wrong for an in node on any compiler that gets there with an ephemeral argument. Fix: find the branch, make it dispatch on the node kind (an in node's operands are d0/d1, not an extra-list), and add a fixture with an ephemeral (view) operand on either side of in that reaches that branch on the release compiler. Prove reachability or comment the proof of unreachability with a BUG guard.

Activity

  1. added
    bug
    on Oct 3, 2026
  2. ehartford commented on Oct 3, 2026

    @ehartford
    ContributorAuthor

    Fixed on main by da08b14 (#1999, battery green on 857b5a4).

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