zenoh
zenoh copied to clipboard
[Bug] Memory leak when feature shared-memory enabled
Describe the bug
The opening and closing of a transport session with a localhost process (peer or router) leads to a memory leak when feature shared-memory
is enabled and even if it is not used.
For each opened and close transport session, the observed virtual memory increases of 8k bytes.
To reproduce
- Start
z_sub
example:
$ z_sub
- On the same host repeatedly start
z_put
example:
$ while true; do ./target/debug/examples/z_put; done
- Monitor
z_sub
virtual memory:
$ pidstat -C z_sub -r
System info
Zenoh commit: 0ee66760a85564c0a54ec4475e3d369d2b6aefa1
@yellowhatter could you verify if this issue is still relevant with the rework SHM being done in https://github.com/eclipse-zenoh/zenoh/tree/dev/1.0.0?
@yellowhatter could you verify if this issue is still relevant with the rework SHM being done in https://github.com/eclipse-zenoh/zenoh/tree/dev/1.0.0?
Ok, I'll do.