Skip to content

Memory leak in TCPChannelResource #4877

@ulongcha

Description

@ulongcha

Is there an already existing issue for this?

  • I have searched the existing issues

Expected behavior

When TCPClient left domain, its tcpchannel in TCPServer should be removed.

Current behavior

When TCPClient match TCPServer, TCPServer's memory increase and will not decrease.
image
Use valgrind --tool=massif to generate a memory report also find increase memory in TCPChannelResource.

Steps to reproduce

Run DDSHelloWorldTCP demo with Server and Client, frequent start and stop Client.

Fast DDS version/commit

2.14.0

Platform/Architecture

Ubuntu Focal 20.04 amd64, Ubuntu Focal 20.04 arm64

Transport layer

TCPv4

Additional context

No response

XML configuration file

No response

Relevant log output

No response

Network traffic capture

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    in progressIssue or PR which is being reviewed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions