Open vinaxixi opened 1 year ago
If I use udp, handle does not leak, but if i use shm, it will leak.
Thanks for the report @vinaxixi,
Shared Memory Transport depends on Boost which is initialized as a singleton, so even if you deinitialized, some resources are going to be kept until the process is closed.
Thanks for you reply @JLBuenoLopez-eProsima . But handle will increases each time when i repeated step one. If we think boost is Singleton, handle count shoule not change after the first operation, and the count should be same when repeat the operation for the second time and third time.
And i want to know, whether there is an upper limit on the handle count in dds or boost? If not, this will lead to program crash after many many repeated operations, right? Thank you very much.
@JLBuenoLopez-eProsima I think it's should not be labeled "invalid". That's not the problem, maybe here: RTPSParticipantImpl.cpp -> RTPSParticipantImpl constructor -> createReceiverResources, some boost.ipcXXXXXXXXXX mutant handle appear when i run here. Can you have a try?
@JLBuenoLopez-eProsima I think it should not be labeled "invalid". That's not the problem, maybe here: RTPSParticipantImpl.cpp -> RTPSParticipantImpl constructor -> createReceiverResources, some boost.ipcXXXXXXXXXX mutant handle appear when i run here. Can you have a try?
Hi @vinaxixi,
Fast DDS v2.6.6 release fixed some issues with shared memory segment management. Could you please test with Fast DDS v2.6.9
?
Is there an already existing issue for this?
Expected behavior
The handle count of the program keep same before initialized and after deinitialized.
Current behavior
The handle count increases before initialized and after deinitialized. I can see many handles named like BaseNamedObjects\boost.ipcXXXXXXXXXX by processHacker.exe.
Steps to reproduce
Environment: Windows
Steps:
Fast DDS version/commit
FastDDS version 2.6.0
Platform/Architecture
Windows 10 Visual Studio 2019
Transport layer
Shared Memory Transport (SHM)
Additional context
No response
XML configuration file
No response
Relevant log output
No response
Network traffic capture
No response