http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51008
--- Comment #1 from Andrey Galkin <andvgal at gmail dot com> 2011-11-07 13:52:36 UTC --- * The problem is in incompatible types when __gthread_mutex_destroy is called instead of __gthread_recursive_mutex_destroy (missing in the default interface) in __recursive_mutex::_S_destroy.