[Boost-bugs] [Boost C++ Libraries] #8945: managed_shared_memory::find assertion

Subject: [Boost-bugs] [Boost C++ Libraries] #8945: managed_shared_memory::find assertion
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-07-31 08:57:00


#8945: managed_shared_memory::find assertion
------------------------------+--------------------------
 Reporter: bersac_1@… | Owner: igaztanaga
     Type: Support Requests | Status: new
Milestone: To Be Determined | Component: interprocess
  Version: Boost 1.54.0 | Severity: Problem
 Keywords: |
------------------------------+--------------------------
 Hi,

 I am using ubuntu 13.04 and the compilator is : g++ (Ubuntu/Linaro
 4.6.3-1ubuntu5) 4.6.3
 I have an application which successfully opened a shared memory (I checked
 with another client). The problem is, when a client of this shared memory
 tried to connect, the managed_shared_memory::find is blocking or throw the
 following error message (I don't know what cause my program to have one of
 this error rather than the other) :

 ''mosaique: /usr/local/include/boost/interprocess/segment_manager.hpp:871:
 void* boost::interprocess::segment_manager::priv_generic_find(const
 CharT*, IndexType >&, boost::interprocess::ipcdetail::in_place_interface&,
 boost::interprocess::segment_manager::size_type&,
 boost::interprocess::ipcdetail::true_, bool) [with CharT = char, CharType
 = char, MemoryAlgorithm = boost::interprocess::rbtree_best_fit, IndexType
 = boost::interprocess::iset_index,
 boost::interprocess::segment_manager::size_type = long unsigned int,
 boost::interprocess::ipcdetail::true_ =
 boost::interprocess::ipcdetail::bool_]: Assertion
 `(ctrl_data->m_value_bytes % table.size) == 0' failed. Aborted (core
 dumped)''

 The size of my shared memory is : 9 953 280
 Please help me fix this bug.

 The sources :
 The server is managed in the main_shm_server.cpp file
 The buggy client is main_mosaique.cpp It use the class SHMClient which is
 where the problem occur. The strange thing is when I use the same class
 with the same constructor parameter in another program, it is working.

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