gazebo_ros2_control icon indicating copy to clipboard operation
gazebo_ros2_control copied to clipboard

Segmentation fault if mimicked joint is not found

Open christophfroehlich opened this issue 2 years ago • 0 comments

Just tried (by accident) what happens if a referenced joint is not found: the plugin generates a segmentation fault

[gzserver-1] Segmentation fault (core dumped)

without any further hints in the console nor with the gazebo log files

(1646065923 267684426) [Err] [Model.cc:1157] Exception occured in the Load function of plugin with name[gazebo_ros2_control] and filename[libgazebo_ros2_control.so]. This plugin will not run. (1646065923 267702460) Exception occured in the Load function of plugin with name[gazebo_ros2_control] and filename[libgazebo_ros2_control.so]. This plugin will not run.

@destogl Where should this error message appear?

https://github.com/ros-simulation/gazebo_ros2_control/blob/698d01381423cea3232a78ab0ada7eb12cd6d40b/gazebo_ros2_control/src/gazebo_system.cpp#L180-L183

christophfroehlich avatar Mar 01 '22 14:03 christophfroehlich