Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5523: Crash with singleton_pool in multithreaded mode
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-05-06 07:00:30
#5523: Crash with singleton_pool in multithreaded mode
-----------------------------------+----------------------------------------
Reporter: philippeb8@⦠| Owner: cnewbold
Type: Bugs | Status: new
Milestone: To Be Determined | Component: pool
Version: Boost 1.46.1 | Severity: Showstopper
Resolution: | Keywords:
-----------------------------------+----------------------------------------
Comment (by philippeb8@â¦):
I added mutexes before the pool subroutines are called and I still get the
crash. The new backtrace is:
#0 0x00000000004071a4 in boost::simple_segregated_storage<unsigned
long>::try_malloc_n (start=@0x42555dc0, n=10, partition_size=8)
at
/home/vnmr1/phil/boost_1_46_1/boost/pool/simple_segregated_storage.hpp:236
#1 0x0000000000407259 in boost::simple_segregated_storage<unsigned
long>::malloc_n (this=0x6136c8, n=11, partition_size=8)
at
/home/vnmr1/phil/boost_1_46_1/boost/pool/simple_segregated_storage.hpp:260
#2 0x000000000040b3c3 in
boost::pool<boost::default_user_allocator_new_delete>::ordered_malloc
(this=0x6136c8, n=88)
at /home/vnmr1/phil/boost_1_46_1/boost/pool/pool.hpp:527
#3 0x000000000040b87c in boost::singleton_pool<boost::detail::sh::pool,
1u, boost::default_user_allocator_new_delete,
boost::details::pool::pthread_mutex, 32u, 0u>::ordered_malloc (n=88)
at /home/vnmr1/phil/boost_1_46_1/boost/pool/singleton_pool.hpp:72
#4 0x000000000040cc7a in boost::detail::sh::pool::allocate (s=88)
at ../../../boost/detail/block_base.hpp:131
#5 0x000000000040cd09 in boost::detail::sh::block<std::pair<int, int>
>::operator new (s=88) at ../../../boost/detail/block_base.hpp:274
#6 0x000000000040cd2d in boost::detail::sh::make_block<std::pair<int,
int>, std::pair<int, int> > (t0=@0x42556030) at
../../../boost/block_ptr.hpp:492
#7 0x00000000004059ff in worker (id=1) at thread_test.cpp:17
#8 0x00000000004083ba in boost::_bi::list1<boost::_bi::value<int>
>::operator()<void (*)(int), boost::_bi::list0> (this=0xf2e3610,
f=@0xf2e3608,
a=@0x425560cf) at
/home/vnmr1/phil/boost_1_46_1/boost/bind/bind.hpp:253
#9 0x00000000004083f8 in boost::_bi::bind_t<void, void (*)(int),
boost::_bi::list1<boost::_bi::value<int> > >::operator() (this=0xf2e3608)
at /home/vnmr1/phil/boost_1_46_1/boost/bind/bind_template.hpp:20
#10 0x0000000000408416 in
boost::detail::thread_data<boost::_bi::bind_t<void, void (*)(int),
boost::_bi::list1<boost::_bi::value<int> > > >::run (
this=0xf2e3480)
at /home/vnmr1/phil/boost_1_46_1/boost/thread/detail/thread.hpp:61
#11 0x00002b1169e3d914 in thread_proxy ()
from /home/vnmr1/phil/lib/libboost_thread.so.1.46.1
#12 0x0000003906a06367 in start_thread () from /lib64/libpthread.so.0
#13 0x0000003905ed30ad in clone () from /lib64/libc.so.6
Thanks,
-Phil
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5523#comment:1> 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:06 UTC