Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Gazebo crash "void boost::recursive_mutex::lock(): Assertion `!pthread_mutex_lock(&m)' failed."

Hello,

gzserver is crashing apparently at a random time with the following error :

gzserver: /usr/include/boost/thread/pthread/recursive_mutex.hpp:113: void boost::recursive_mutex::lock(): Assertion `!pthread_mutex_lock(&m)' failed.
Aborted (core dumped)
[gazebo-3] process has died [pid 3901, exit code 134

there is no other error message.

This crash occur after running the same simulation several hours straight. Sometimes it crash after 2 hours, sometimes after more than 10 hours.

My gazebo is installed via apt, and I use it with ROS. I added a model plugin and a sensor plugin, but I use only the gazebo API in it, and I'm not using directly any mutex or thread.

How can I set the backtrace to report the crashed gazebo file, and not only the boost library file, which is not very helpful ? Does anyone have an idea on what could cause this crash ?