Opened 12 years ago

Closed 12 years ago

#5138 closed Support Requests (invalid)

Unexpected lock_exception in interprocess::segment_manager_base::allocate()

Reported by: Jim Schatzman <James.Schatzman@…> Owned by: Ion Gaztañaga
Milestone: To Be Determined Component: interprocess
Version: Boost 1.43.0 Severity: Problem
Keywords: lock_exception Cc:

Description

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

Change History (2)

comment:1 by anonymous, 12 years ago

I too have experienced this crash using boost 1.43.0. Is there a resolution for this coming soon? Thanks.

comment:2 by Ion Gaztañaga, 12 years ago

Resolution: invalid
Status: newclosed

I couldnt' reproduce the bug.

Note: See TracTickets for help on using tickets.