[Boost-bugs] [Boost C++ Libraries] #5138: Unexpected lock_exception in interprocess::segment_manager_base::allocate()

Subject: [Boost-bugs] [Boost C++ Libraries] #5138: Unexpected lock_exception in interprocess::segment_manager_base::allocate()
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-01-28 23:50:12


#5138: Unexpected lock_exception in interprocess::segment_manager_base::allocate()
-----------------------------------------------------+----------------------
 Reporter: Jim Schatzman <James.Schatzman@…> | Owner: igaztanaga
     Type: Support Requests | Status: new
Milestone: To Be Determined | Component: interprocess
  Version: Boost 1.43.0 | Severity: Problem
 Keywords: lock_exception |
-----------------------------------------------------+----------------------
 After allocating and free a number of objects in a shared memory segment,
 an additional call to allocate results in

 terminate called after throwing an instance of
 'boost::interprocess::lock_exception'
   what(): boost::interprocess::lock_exception

 Here I am trying to allocate an item of 24 bytes in a shared memory
 segment with lots of free memory.

 Can you advise as to what might be causing this problem and how to fix it?

 Thank you.

 #0 0x0000003405e30265 in raise () from /lib64/libc.so.6
 #1 0x0000003405e31d10 in abort () from /lib64/libc.so.6
 #2 0x000000340aabecb4 in __gnu_cxx::__verbose_terminate_handler() () from
 /usr/lib64/libstdc++.so.6
 #3 0x000000340aabcdb6 in ?? () from /usr/lib64/libstdc++.so.6
 #4 0x000000340aabcde3 in std::terminate() () from
 /usr/lib64/libstdc++.so.6
 #5 0x000000340aabceca in __cxa_throw () from /usr/lib64/libstdc++.so.6
 #6 0x000000000040d15d in boost::interprocess::interprocess_mutex::lock
 (this=0x2aaaaaadf180)
     at
 /usr/local/boost_1_43_0/boost/interprocess/sync/posix/interprocess_mutex.hpp:53
 #7 0x000000000040d1b1 in
 boost::interprocess::scoped_lock<boost::interprocess::interprocess_mutex>::scoped_lock
 (
     this=0x7fffffffdb80, m=...) at
 /usr/local/boost_1_43_0/boost/interprocess/sync/scoped_lock.hpp:76
 #8 0x00000000004130cc in
 boost::interprocess::rbtree_best_fit<boost::interprocess::mutex_family,
 boost::interprocess::offset_ptr<void>, 0ul>::allocate
 (this=0x2aaaaaadf180, nbytes=24)
     at
 /usr/local/boost_1_43_0/boost/interprocess/mem_algo/rbtree_best_fit.hpp:621
 #9 0x000000000041314c in
 boost::interprocess::segment_manager_base<boost::interprocess::rbtree_best_fit<boost::interprocess::mutex_family,
 boost::interprocess::offset_ptr<void>, 0ul> >::allocate
 (this=0x2aaaaaadf180, nbytes=24)
     at /usr/local/boost_1_43_0/boost/interprocess/segment_manager.hpp:166
 #10 0x000000000041388c in PseudoPdw::create (this=0x2aaaaaadf0f0,
 pdw=0x2aaaaaadf010, mmgrP=0x2aaaaaadf180)
     at /home/jschatz/ssitl/VER2.0/x86_64/../src/ut/PseudoPdw.cc:32

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