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

ros_control makes Gazebo abort [closed]

asked 2016-06-06 08:41:12 -0600

longforgotten gravatar image

updated 2016-10-24 09:10:58 -0600

ngrennan gravatar image

Until last week, I was working on a robot simulation in Gazebo, with the ros_control plugin, without problems. But after a few days ago, Gazebo just started to abort with the folllowing error:

*** Error in `gzserver': malloc(): smallbin double linked list corrupted: 0x00007fc0ccbe61a0 ***

It is also a double free or corruption (out) error related to malloc, that I can't reproduce for now.

When I remove the piece of URDF description that calls gazebo_ros_control plugin, it initializes normally. When the plugin is loaded, gzserver simply aborts with Segmentation fault (core dumped), leaving the GUI working, but frozen. It is so weird, given that I haven't changed nothing in the code since few weeks ago...

How can I solve it?

The robot description is here.

I'm using ROS Indigo with Gazebo 6.

Edit: it is giving a new error:

*** Error in `gzserver': free(): invalid pointer: 0x00007fed70026e50 ***
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by longforgotten
close date 2016-12-21 09:44:48.535241

Comments

i am also facing same problem.Till tomorrow, my robot simulation was working properly. But today while running roslaunch of my robot file i got error in gzserver double free or corruption and gui got frozen. i am using ros indigo and gazebo7 for my robot emersonfs did you get any solution for that?

mayur gravatar image mayur  ( 2016-06-10 16:50:33 -0600 )edit

@mayur unfortunately I have no solution to this problem till now. I believe this is a bug in gazebo_ros_control; I'll check the gazebo_ros_pkgs issue tracker on Github.

longforgotten gravatar image longforgotten  ( 2016-06-11 07:18:55 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
3

answered 2016-06-21 12:33:43 -0600

Adnan Munawar gravatar image

updated 2016-06-21 12:35:00 -0600

The current solution is to remove the following packages installed via .deb and manually build them. Run

sudo apt-get remove ros-<distro>-gazebo-ros-control sudo apt-get remove ros-<distro>-gazebo-plugings

and also any other gazebo pkgs you want to remove, but these two do the trick. Notice that you'd have to add version number next to gazebo above is you are not using the default gazebo for your distro. I am using gazebo7 with Indigo so I replaced gazebo with gazebo7.

afterwards, clone the following in your own catkin_ws, and checkout the branch which corresponds to your gazebo version. Default should work with Indigo. https://github.com/ros-simulation/gaz...

just build them by catkin_make and source your workspace. Hopefully Gazebo won't crash now.

This worked for me.

edit flag offensive delete link more

Comments

You are a saviour. This solves all my problems with Gazebo7 and ROS Indigo. I used the indigo-devel-gazebo7-warnings branch

ycheng517 gravatar image ycheng517  ( 2016-07-25 00:16:31 -0600 )edit

Question Tools

4 followers

Stats

Asked: 2016-06-06 08:41:12 -0600

Seen: 1,892 times

Last updated: Jun 21 '16