Ask Your Question

Problem debugging ROS nodes on Mac OS X

asked 2017-04-07 04:46:23 -0600

Peter Listov gravatar image

updated 2017-04-07 04:48:33 -0600

Hello Community,

I am on Mac OS X 10.11.4, ROS Jade and have some strange problems debugging ROS nodes with gdb or lldb. Namely, debugger is not able to locate ROS related shared libraries.

Here is gdb output for example:

    Starting program: /Users/plistov/EPFL/ROS/ros_catkin_ws/devel_isolated/test_package/lib/test_package/ekf_node 
dyld: Library not loaded: libtf2_ros.dylib
  Referenced from: /Users/plistov/EPFL/ROS/ros_catkin_ws/devel_isolated/test_package/lib/test_package/ekf_node
  Reason: image not found

Program received signal SIGTRAP, Trace/breakpoint trap.
0x00007fff5fc01075 in ?? ()

While DYLD_LIBRARY_PATH points to the folder containing this lib. Furthermore, I did not manage to launch standard ROS nodes. Rosbag for instance:

(gdb) exec-file rosbag
"/Users/plistov/EPFL/ROS/ros_catkin_ws/install/bin/rosbag": not in executable format: File format not recognised

I have not experienced any problems debugging non-ROS related applications on my computer before. I, therefore, will very appreciate any hint or advice.

Thanks, Peter

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-04-13 12:16:28 -0600

Peter Listov gravatar image

The issue seems to be OS specific. Well explained here. Had to switch to lldb though.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2017-04-07 04:46:23 -0600

Seen: 117 times

Last updated: Apr 13 '17