Skip to content
This repository was archived by the owner on May 31, 2025. It is now read-only.
This repository was archived by the owner on May 31, 2025. It is now read-only.

rosmaster doesn't close sockets properly, hangs #495

@lrasinen

Description

@lrasinen

Steps to reproduce:

  1. Start roscore
  2. Launch rosout repeatedly: while :; do rosrun rosout rosout; done
  3. Monitor CLOSE_WAIT sockets: lsof | grep rosmaster | grep -c CLOSE_WAIT

The number of sockets keeps steadily climbing until the open file limit is hit. rosmaster then becomes unresponsive (e.g. rostopic list or rosnode list both just hang) and starts consuming 100% CPU.

Versions:
Ubuntu 12.04.5 LTS
ros-hydro-desktop-full 1.0.2-0precise-20140807-2038-+0000

Background:
While starting rosout in a loop isn't the most sensible thing, it's just the minimal test case to reproduce this. Trying "rosnode list" or "rostopic list" doesn't leak sockets in the same way.

I've had a few instances of this happening and it probably hasn't been rosout (but due to other pressures I haven't had the time to figure out the flaky component)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions