Skip to content

Incorrect tag comparison in throw_ref semantics #2076

Closed

Description

@tlively

The semantics for throw_ref include the comparison of the thrown exception's tag address with a tag address from the configuration: z.exns[a].tag = z.tags[x]

Image

However, if you click on tags in z.tags[x], it just links to https://webassembly.github.io/spec/core/exec/runtime.html#syntax-state, which is here: state ::= store; frame

Image

From there you still want to find tags. frame does not have a field called tags, so you look in the definition of store: store :: = { tags taginst* ... }

Image

But z.exns[a].tag is a tagaddr, so it looks like we're comparing a taginst to a tagaddr here, which makes no sense.

We should have instead compared z.exns[a].tag = z.module.tags[x], where z.module comes from the frame.

Activity

  1. rossberg commented on Feb 10, 2026

    @rossberg
    Member

    Indeed, bogus print hint, please see #2077 for a fix.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions