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

Segmentation Fault - OS X - LLVM Clang++

asked 2018-03-19 02:25:31 -0500

fastestindian gravatar image

I've compiled ROS Kinetic Desktop Full on my OS X Sierra machine using LLVM/Clang 5.0.1 installed from HomeBrew. Why? Mainly because some 3rd party rospackages (like MoveIt) use OpenMP which is not available in AppleClang. A number of the core ros tools are throwing a segmentation fault - e.g. rostopic, rosbag, rosconsole

sandbox>rostopic list Segmentation fault: 11

sandbox>rosbag Segmentation fault: 11

I couldnt figure out why and was wondering if anyone has any thoughts on this?



edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-03-24 03:51:19 -0500

fastestindian gravatar image

updated 2018-03-24 03:52:05 -0500

I've found an answer, although I dont know the source of the problem yet.

I was building all of ros under a python virtualenv pointing to homebrew python3.6. I deactivated the virtualenv and rebuilt - seems to work now. Whats really strange though is python inside and outside the virtualenv are linked to the same python3.6 from HomeBrew:

Python 3.6.4 (default, Jan 6 2018, 11:51:15) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)] on darwin

For now I'll manage ROS outside virtualenvs. Although they are a nice way to isolate all the python packages ROS needs.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2018-03-19 02:25:31 -0500

Seen: 241 times

Last updated: Mar 24 '18