This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/50862] New: deadlock in std::condition_variable_any
- From: "bartosz.szurgot at pwr dot wroc.pl" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 25 Oct 2011 10:26:51 +0000
- Subject: [Bug libstdc++/50862] New: deadlock in std::condition_variable_any
- Auto-submitted: auto-generated
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: unassigned@gcc.gnu.org
ReportedBy: bartosz.szurgot@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.