[Boost-bugs] [Boost C++ Libraries] #9192: condition_variable::notify_one hits debug assertion in MSVC2010

Subject: [Boost-bugs] [Boost C++ Libraries] #9192: condition_variable::notify_one hits debug assertion in MSVC2010
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-10-02 14:28:48


#9192: condition_variable::notify_one hits debug assertion in MSVC2010
-------------------------------------------------+-------------------------
 Reporter: Richard | Owner: igaztanaga
     Type: Bugs | Status: new
Milestone: To Be Determined | Component:
  Version: Boost 1.54.0 | interprocess
 Keywords: condition_variable notify_one | Severity: Problem
  vs2010 debug assertion |
-------------------------------------------------+-------------------------
 In Visual Studio 2010, the attached program runs on an assertion in DEBUG
 mode when calling notify_one (or notify_all). The message is "vector erase
 iterator outside range". This does not happen each time the program is
 run, but at least in 50% of the time.
 I have found this link where the author seems to be describing something
 similar:
 http://stackoverflow.com/questions/16577613/boostcondition-variable-
 notify-one-causes-segmentation-fault-11-exception

 This behaviour can be seen with boost 1.45.0 and 1.54.0. The stack trace
 shows that the problem occurs condition_variable.hpp, method notify_one,
 line 277 (generations.erase(...).

 As the problem does not always occur, I suspect a timing issue, but I
 don't understand the matter completely.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9192>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:14 UTC