You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(foundation): an abandoned extraction keeps its file open on GraalPy, which never calls __del__ #1997
On GraalPy, an extraction abandoned before EOF (auto=False, stopped early) never releases the file it opened. Extractor.__del__, the #606 backstop that closes it, is never called there.
Measured on GraalPy 25.4.4: an object's __del__ does not run after del and repeated gc.collect(), either alone or in a cycle. A weakref.finalize on the same object does fire.
Possible fix: register the backstop with weakref.finalize on the owned stream instead of, or as well as, __del__. This changes pcapkit/foundation/extraction.py, so it needs a test on both interpreters.
Activity
fix(foundation): back the abandoned-extraction close with weakref.fin…
test: give the finaliser backstop tests GraalPy's gc.collect grace (#…
test: give the finaliser backstop tests GraalPy's gc.collect grace (#…