Skip to content

Component resource tables keep entries the guest no longer holds #2099

Backlog

Description

@ludfjig
  • The Rust host bindings' VecDeque table keeps an empty entry after every take, like the C# table fixed in Remove C# resource table entries once they're released #2098. The object itself is freed, so each transfer leaks only a small entry. A long-lived sandbox that passes resources grows without bound, slowly. A guest can drive this by calling a host function that returns a resource in a loop.
  • Restoring a snapshot doesn't reset the host tables, so entries for handles created after the snapshot stay. These entries still hold the host objects, so the objects are never freed, including any native resources they hold. A host that restores after every call keeps every resource created during those calls.

Both affect only WIT worlds that pass resources. Guest drops are tracked in #810.

Activity

  1. added
    C-bug
    on Nov 24, 2026
  2. added theissue type on Nov 24, 2026
  3. added
    S-needs-triage
    on Nov 24, 2026
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

    C-bugS-needs-triage

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions