[Boost-bugs] [Boost C++ Libraries] #3951: assertion failed calling find<> in managed_shared_memory (might be a bug in g++)

Subject: [Boost-bugs] [Boost C++ Libraries] #3951: assertion failed calling find<> in managed_shared_memory (might be a bug in g++)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-02-22 01:03:27


#3951: assertion failed calling find<> in managed_shared_memory (might be a bug in
g++)
--------------------------------------------+-------------------------------
 Reporter: Xavi Gratal <gratal@…> | Owner: igaztanaga
     Type: Bugs | Status: new
Milestone: Boost 1.43.0 | Component: interprocess
  Version: Boost 1.42.0 | Severity: Problem
 Keywords: |
--------------------------------------------+-------------------------------
 I am getting the following assertion failed

 /usr/local/include/boost/interprocess/sync/posix/interprocess_recursive_mutex.hpp:107:
 void boost::interprocess::interprocess_recursive_mutex::unlock():
 Assertion `res == 0' failed.

 when compiling the extremely simple attached program in GCC 4.4.3 with
 optimization on (-O2 or -O3)

 it doesn't happen with -O0 or -O1, or if I use -fno-strict-aliasing on top
 of -O2.

 I have also got this assertion failed error with GCC 4.4.1, but I wasn't
 able to isolate it into a simple program.

 The bug depends a lot on the GCC version and the optimization options, so
 I guess it is a bug in the compiler, but it affects the usability of
 boost, so I think it is worth reporting it here

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3951>
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:02 UTC