-
Notifications
You must be signed in to change notification settings - Fork 766
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GazeboRos constructor causes segfault #478
Comments
Thanks for the report. Could you please attach an example code that triggers the segfault? |
Thanks for your reply. It could easily regenerate segfault just to call "GazeboROS( sensors::SensorPtr, ... )". Following code might be help.
To avoid the segfault, I've inserted the code before at line 171 in gazebo_ros_util.h.
Please see my previous comment, the reason why the segfault has occurred. My environment is
|
This definitely looks like a bug. Looks like one of the constructors for the |
Fixed in melodic by #718, but we should backport to lunar and kinetic too, and indigo |
@scpeters |
Fix committed and propagated to all branches. Thanks everyone for the efforts. |
Dear developers,
I found that GazeboRos constructor for Sensor in "gazebo_ros_utils.h" causes segfault.
It's because that the member variable "rosnode_" was not initialized before using it.
I hope, it could be helpful.
The text was updated successfully, but these errors were encountered: