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

core dump file location

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

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: http://wiki.ros.org/roslaunch/Tutoria...

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

Comments

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

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

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

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

You are correct; roscore-11311.pid is not the file you're looking for.

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

1 Answer

Sort by ยป oldest newest most voted
2

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

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

Stats

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

Seen: 4,966 times

Last updated: Mar 02 '16