pinocchio: import pinocchio seg fault with ros-humble-pinocchio 2.6.11-1jammy
Hi, I have installed ros-humble-pinocchio on the humble base docker image. However, as i tried to import pinocchio in a python script, it results in segmentation fault.
The following are the gdb backtrace logs with import pinocchio.
Thread 1 "python3" received signal SIGSEGV, Segmentation fault.
0x0000555555676958 in _Py_Dealloc ()
(gdb) bt
#0 0x0000555555676958 in _Py_Dealloc ()
#1 0x00007fff73df46bf in ?? () from /opt/ros/humble/lib/python3.10/site-packages/pinocchio/pinocchio_pywrap.cpython-310-x86_64-linux-gnu.so
#2 0x00007fff73dea756 in pinocchio::python::exposeSE3() () from /opt/ros/humble/lib/python3.10/site-packages/pinocchio/pinocchio_pywrap.cpython-310-x86_64-linux-gnu.so
#3 0x00007fff73b4871d in init_module_pinocchio_pywrap() () from /opt/ros/humble/lib/python3.10/site-packages/pinocchio/pinocchio_pywrap.cpython-310-x86_64-linux-gnu.so
#4 0x00007fff72de56e3 in boost::python::handle_exception_impl(boost::function0<void>) () from /usr/lib/x86_64-linux-gnu/libboost_python310.so.1.74.0
#5 0x00007fff72de6c69 in boost::python::detail::init_module(PyModuleDef&, void (*)()) () from /usr/lib/x86_64-linux-gnu/libboost_python310.so.1.74.0
I have installed ros-humble-eigenpy, ros-humble-hpp-fcl. import eigenpy and import hpp-fcl has no issue. Anyone has any idea how to resolve this?
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 29 (23 by maintainers)
I can confirm that this is now fixed with the binaries available on the testing repository for
rolling. The same modifications forhumblewill land with https://github.com/ros/rosdistro/pull/36013. I believe this should be resolved now. Many thanks for the debugging and pointers @Benjamin-TanHi @Benjamin-Tan, Thank you for the update - and sorry to hear the issue is still present. I can reproduce it with the Docker image but don’t know the source of it. @jcarpent do you have any insights on where it might be coming from?
To reproduce:
Inside the Docker image:
Thank you very much for reporting the issue and the Dockerfile to reproduce @Benjamin-Tan. I can reproduce the issue but do not know the source of it - and I dont have the bandwidth to debug right now. @jcarpent, the change introduced to make it build on humble was to add the
-g1flag to reduce the amount of debug symbols. Otherwise it’s a standard build with clang.