8000 test_a_held_scope_is_never_collected fails on aarch64-linux: a dropped REPL scope is not collected · Issue #1396 · nixidae/nixidae · GitHub
[go: up one dir, main page]

Skip to content

test_a_held_scope_is_never_collected fails on aarch64-linux: a dropped REPL scope is not collected #1396

Open

Description

@Lillecarl

tests/test_repl.py::test_a_held_scope_is_never_collected fails on aarch64-linux, every run:

>       assert _collected_after_churn(state) > before, "the control never fired"
E       assert 19 > 19

The control half fails: after made.clear() the scope made on the exited thread is still not finalized. The held half passes.

Guess, not proven: the collector scans stacks and registers conservatively, and on aarch64 a stale copy of the environment pointer survives gc_release_thread() or the churn. The test then reports a real leak where there is only a conservative root.


Assisted-By: Claude Opus 5.5

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0