Boost C++ Libraries: Ticket #5138: Unexpected lock_exception in interprocess::segment_manager_base::allocate() https://svn.boost.org/trac10/ticket/5138 <p> After allocating and free a number of objects in a shared memory segment, an additional call to allocate results in </p> <p> terminate called after throwing an instance of 'boost::interprocess::lock_exception' </p> <blockquote> <p> what(): boost::interprocess::lock_exception </p> </blockquote> <p> Here I am trying to allocate an item of 24 bytes in a shared memory segment with lots of free memory. </p> <p> Can you advise as to what might be causing this problem and how to fix it? </p> <p> Thank you. </p> <p> <a class="missing ticket">#0</a> 0x0000003405e30265 in raise () from /lib64/libc.so.6 <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1" title="#1: Bugs: boost.build causes ftjam to segfault (closed: Wont Fix)">#1</a> 0x0000003405e31d10 in abort () from /lib64/libc.so.6 <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2" title="#2: Bugs: list::size should be const (closed: fixed)">#2</a> 0x000000340aabecb4 in <span class="underline">gnu_cxx::</span>verbose_terminate_handler() () from /usr/lib64/libstdc++.so.6 <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3" title="#3: Bugs: automatic conversion and overload proble (closed: fixed)">#3</a> 0x000000340aabcdb6 in ?? () from /usr/lib64/libstdc++.so.6 <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4" title="#4: Bugs: any_ptr in any library documentation? (closed: Fixed)">#4</a> 0x000000340aabcde3 in std::terminate() () from /usr/lib64/libstdc++.so.6 <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5" title="#5: Bugs: shared_ptr and self-owning objects (closed: Fixed)">#5</a> 0x000000340aabceca in <span class="underline">cxa_throw () from /usr/lib64/libstdc++.so.6 <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6" title="#6: Bugs: tie in utility.hpp and tuple.hpp clash. (closed: Duplicate)">#6</a> 0x000000000040d15d in boost::interprocess::interprocess_mutex::lock (this=0x2aaaaaadf180) </span></p> <blockquote> <p> at /usr/local/boost_1_43_0/boost/interprocess/sync/posix/interprocess_mutex.hpp:53 </p> </blockquote> <p> <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7" title="#7: Bugs: g++ 2.96 requires NO_STRINGSTREAM (closed: Fixed)">#7</a> 0x000000000040d1b1 in boost::interprocess::scoped_lock&lt;boost::interprocess::interprocess_mutex&gt;::scoped_lock ( </p> <blockquote> <p> this=0x7fffffffdb80, m=...) at /usr/local/boost_1_43_0/boost/interprocess/sync/scoped_lock.hpp:76 </p> </blockquote> <p> <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8" title="#8: Bugs: prop in undirected graph + out_edges (closed: Works For Me)">#8</a> 0x00000000004130cc in boost::interprocess::rbtree_best_fit&lt;boost::interprocess::mutex_family, boost::interprocess::offset_ptr&lt;void&gt;, 0ul&gt;::allocate (this=0x2aaaaaadf180, nbytes=24) </p> <blockquote> <p> at /usr/local/boost_1_43_0/boost/interprocess/mem_algo/rbtree_best_fit.hpp:621 </p> </blockquote> <p> <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/9" title="#9: Bugs: config_info ambiguity error (closed: Invalid)">#9</a> 0x000000000041314c in boost::interprocess::segment_manager_base&lt;boost::interprocess::rbtree_best_fit&lt;boost::interprocess::mutex_family, boost::interprocess::offset_ptr&lt;void&gt;, 0ul&gt; &gt;::allocate (this=0x2aaaaaadf180, nbytes=24) </p> <blockquote> <p> at /usr/local/boost_1_43_0/boost/interprocess/segment_manager.hpp:166 </p> </blockquote> <p> <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/10" title="#10: Bugs: allyourbase.jam file is bad. (closed: Out of Date)">#10</a> 0x000000000041388c in PseudoPdw::create (this=0x2aaaaaadf0f0, pdw=0x2aaaaaadf010, mmgrP=0x2aaaaaadf180) </p> <blockquote> <p> at /home/jschatz/ssitl/VER2.0/x86_64/../src/ut/PseudoPdw.cc:32 </p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5138 Trac 1.4.3 anonymous Fri, 18 Feb 2011 15:48:20 GMT <link>https://svn.boost.org/trac10/ticket/5138#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5138#comment:1</guid> <description> <p> I too have experienced this crash using boost 1.43.0. Is there a resolution for this coming soon? Thanks. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Ion Gaztañaga</dc:creator> <pubDate>Fri, 01 Apr 2011 21:28:46 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/5138#comment:2 https://svn.boost.org/trac10/ticket/5138#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> <p> I couldnt' reproduce the bug. </p> Ticket