This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/50862] New: deadlock in std::condition_variable_any


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]