
8 Apr
2010
8 Apr
'10
5:12 p.m.
Hi, posted the wrong line number. Should be 107: inline void interprocess_recursive_mutex::unlock() { int res = 0; res = pthread_mutex_unlock(&m_mut); assert(res == 0); // <- HERE! } Moritz wrote:
Hi,
I have a managed_shared_memory segment which contains a unique_instance of an object. When I try to call
managed_shm->find<ObjectType>( ipc::unique_instance );
I get the following assertion:
/usr/include/boost/interprocess/sync/posix/interprocess_recursive_mutex.hpp:110: void boost::interprocess::interprocess_recursive_mutex::unlock(): Assertion `res == 0' failed. Aborted
This only happens in Release-Mode (with gcc -s -O2). I am not able to build a minimum example but I also can not track the problem. Any suggests?
Kind regards