Skip to content

ref_store_throw_path_flat leaks on Linux: reference box not released when an exception unwinds the frame #381

Closed

Description

@blacktrs

Problem

tests/aot/cases/ref_store_throw_path_flat.php fails on both Linux runners (arm64 and amd64) in CI and passes on macOS arm64. The case checks that a frame owning a reference box for a by-ref argument that the callee keeps releases it when an exception unwinds the frame: after 200000 iterations of the throw path the memory delta must stay under 500000 bytes, and the output must be flat.

Evidence

Expected

flat, as in Zend.

Notes

Platform-specific (Linux only), so the repro stays in tests/aot/cases/ and is not an xfail. Likely a Linux allocator accounting difference or a real leak on the unwind path that macOS hides; needs a Linux run with memory tracing.

Activity

  1. added
    bug
    leak
    on Oct 21, 2026
  2. added a commit that references this issue on Oct 21, 2026
    adfbbd1
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

    bugleak

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions