Skip to content

test for memory leak if timestamp callback holds reference to a session - #802

Closed
milyin wants to merge 3 commits into
test/backport-network-isolationfrom
session_self_reference_leak_test
Closed

milyin wants to merge 3 commits into
test/backport-network-isolationfrom
session_self_reference_leak_test

Conversation

@milyin

@milyin milyin commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Closing a session could leave its timestamp callback retained by the Zenoh runtime. If the callback held a reference to the session, the cycle survived close().

Validation

  • 43 Python tests passed on macOS arm64 with Python 3.14 and shared memory disabled for the sandbox.
  • test_timestamp_callback fails at the release assertion with the pre-fix binding and passes with the updated revision.

@milyin milyin added the internal Changes not included in the changelog label Nov 23, 2026
@milyin
milyin force-pushed the session_self_reference_leak_test branch from af8d1ea to 5c09221 Compare November 24, 2026 11:37
@milyin
milyin changed the base branch from main to test/backport-network-isolation November 24, 2026 11:38
@milyin

milyin commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

existing leak is tested on rust side, other ones are just hytpothetical

@milyin milyin closed this Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Changes not included in the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant