http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50862
Bug #: 50862 Summary: deadlock in std::condition_variable_any Classification: Unclassified Product: gcc Version: 4.6.1 Status: UNCONFIRMED Severity: major Priority: P3 Component: libstdc++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: bartosz.szur...@pwr.wroc.pl Created attachment 25610 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25610 proof of concept for deadlock there is a dead lock when using wait() method of std::condition_variable_any (condition_variable:199) from more than one thread. it happens when method locks two mutexes (local and user-provided), when condition is met, in a different order than when entering.