ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Core dumps are not specific to ROS (1 or 2), managed by it or created by any of the client libraries, but a feature of your OS. See #q260977 for a previous Q&A about them.

They're actually a very useful thing to have after a crash, as they allow a developer to debug a process post-mortem (ie: after it has already crashed and been terminated by the OS).

As to disabling their generation, you could take a look at the Arch documentation on Core dumps.

The Docker image you mention (ros:galactic-ros-core) is based on Ubuntu Focal. Canonical doesn't appear to have any documentation specifically about the configuration of core dumps (that I can find). The ulimit section in the Arch documentation should work however, as it's for Bash in general. This SO post also has some information.

Core dumps are not specific to ROS (1 or 2), managed by it or created by any of the client libraries, but a feature of your OS. See #q260977 for a previous Q&A about them.

They're actually a very useful thing to have after a crash, as they allow a developer to debug a process post-mortem (ie: after it has already crashed and been terminated by the OS).

As to disabling their generation, you could take a look at the Arch documentation on Core dumps.

The Docker image you mention (ros:galactic-ros-core) is based on Ubuntu Focal. Canonical doesn't appear to have any documentation specifically about the configuration of core dumps (that I can find). The ulimit section in the Arch documentation should work however, as it's for Bash in general. This SO post also has some information.


Edit: I'm hesitant to duplicate information that's so easily found already, but to make this answer more self-contained:

To disable core dumps in the current Bash session: ulimit -c 0.

Or edit /etc/security/limits.conf and set soft core for * (ie: all users) to 0 (see again the Arch documentation linked earlier).

And just to reiterate: this is OS-level configuration. Not ROS.