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

core dump file location

asked 2016-02-13 22:21:31 -0500

Fei gravatar image

Hi All,

When I use rosrun to run an executable, I got a segmentation fault. The error message is simply: "Segmentation fault"

I want to debug the core dump file, so I followed this tutorial:

However, I cannot find the core dump file. I am using ROS Indigo with Ubuntu 14.04 and my $ROS_HOME is empty. Can you help to identify this?

edit retag flag offensive close merge delete


Have you looked in the .ros directory in your home folder?

ahendrix gravatar image ahendrix  ( 2016-02-14 00:08:36 -0500 )edit

I looked at the .ros directory. It's not there. (There is a file called I believe it is not the core dump file. )

Fei gravatar image Fei  ( 2016-03-02 00:56:14 -0500 )edit

You are correct; is not the file you're looking for.

ahendrix gravatar image ahendrix  ( 2016-03-02 17:40:53 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2016-03-02 17:43:10 -0500

ahendrix gravatar image

The coredump may be created in ~/.ros, or it may be created in the directory where you run rosrun, or it may not be generated at all if your system is not configured to generate core dumps (as noted in the tutorial).

If you can reproduce your problem easily and are having trouble obtaining core dumps, you may want to try following the directions in the tutorial for running your node in valgrind or gdb.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2016-02-13 22:21:31 -0500

Seen: 4,799 times

Last updated: Mar 02 '16