Subject: [Boost-bugs] [Boost C++ Libraries] #5526: fast_pool_allocator crash
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-05-06 22:34:14
#5526: fast_pool_allocator crash
----------------------------------+-----------------------------------------
Reporter: philippeb8@⦠| Owner: cnewbold
Type: Bugs | Status: new
Milestone: To Be Determined | Component: pool
Version: Boost 1.46.1 | Severity: Problem
Keywords: |
----------------------------------+-----------------------------------------
Hi,
I made some changes to the Block Pointer and now I am using a static pool
and a static list of intervals that in turn is using the
fast_pool_allocator. The destruction of the list with therefore be done
and the end of the application, the problem is I experience a crash when
the list is getting cleared at that moment. The application is located
here:
https://svn.boost.org/svn/boost/sandbox/block_ptr/libs/smart_ptr/example/block_ptr_test3.cpp
If I don't use the fast_pool_allocator then the bug goes away. The
backtrace I get is:
#0 0x000000000042c51e in std::_List_base<boost::numeric::interval<long,
boost::numeric::interval_lib::policies<boost::numeric::interval_lib::rounded_math<long>,
boost::numeric::interval_lib::checking_strict<long> > >,
boost::fast_pool_allocator<boost::numeric::interval<long,
boost::numeric::interval_lib::policies<boost::numeric::interval_lib::rounded_math<long>,
boost::numeric::interval_lib::checking_strict<long> > >,
boost::default_user_allocator_new_delete,
boost::details::pool::pthread_mutex, 32u, 0u> >::_M_clear
(this=0x1d6a3ca0)
at /usr/lib/gcc/x86_64-redhat-
linux/4.1.2/../../../../include/c++/4.1.2/bits/list.tcc:76
#1 0x000000000042c579 in ~_List_base (this=0x1d6a3ca0)
at /usr/lib/gcc/x86_64-redhat-
linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_list.h:339
#2 0x000000000042c591 in ~list (this=0x1d6a3ca0)
at /usr/lib/gcc/x86_64-redhat-
linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_list.h:399
#3 0x000000000042c5bc in
boost::thread_specific_ptr<std::list<boost::numeric::interval<long,
boost::numeric::interval_lib::policies<boost::numeric::interval_lib::rounded_math<long>,
boost::numeric::interval_lib::checking_strict<long> >
>,boost::fast_pool_allocator<boost::numeric::interval<long,
boost::numeric::interval_lib::policies<boost::numeric::interval_lib::rounded_math<long>,
boost::numeric::interval_lib::checking_strict<long> > >,
boost::default_user_allocator_new_delete,
boost::details::pool::pthread_mutex, 32u, 0u> > >::delete_data::operator()
(this=0x1d69f300, data=0x1d6a3ca0)
at /home/vnmr1/phil/boost_1_46_1/boost/thread/tss.hpp:42
#4 0x00002abe08ee2d77 in boost::detail::set_tss_data ()
from /home/vnmr1/phil/lib/libboost_thread.so.1.46.1
#5 0x000000000042dd05 in ~thread_specific_ptr (this=0x681a80)
at /home/vnmr1/phil/boost_1_46_1/boost/thread/tss.hpp:79
#6 0x000000000040a744 in __tcf_9 ()
at ../../../boost/detail/block_base.hpp:183
#7 0x0000003905e33355 in exit () from /lib64/libc.so.6
#8 0x0000003905e1d97b in __libc_start_main () from /lib64/libc.so.6
#9 0x000000000040a2c9 in _start ()
Thanks,
-Phil
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5526> 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