|
Boost : |
Subject: [boost] [simple_segregated_storage] segfault
From: Phil Bouchard (philippe_at_[hidden])
Date: 2008-09-29 05:55:33
I haven't tried this yet on Linux but so far on Gcc for Wndows my test
application segfaults on an allocation routine. Here is the backtrace:
#0 0x00415ace in boost::simple_segregated_storage<unsigned
int>::try_malloc_n (start=@0x22fc00, n=16, partition_size=4)
at simple_segregated_storage.hpp:234
#1 0x00415bc7 in boost::simple_segregated_storage<unsigned int>::malloc_n
(this=0x463010, n=17, partition_size=4)
at simple_segregated_storage.hpp:256
#2 0x0041c7f2 in
boost::pool<boost::default_user_allocator_new_delete>::ordered_malloc
(this=0x463010, n=68)
at pool.hpp:511
#3 0x0041fb25 in boost::detail::sh::pool::allocate (this=0x463010, s=68)
at sh_owned_base_nt.hpp:103
#4 0x00426669 in
boost::detail::sh::shifted<std::_List_node<boost::detail::sh::shifted_ptr<vector>,
boost::detail::sh::shifted_allocator<boost::detail::sh::shifted_ptr<vector>
> > >::operator new (s=68)
at sh_owned_base_nt.hpp:213
#5 0x0041f420 in
boost::detail::sh::shifted_allocator<std::_List_node<boost::detail::sh::shifted_ptr<vector>,
boost::detail::sh::shifted_allocator<boost::detail::sh::shifted_ptr<vector>
> > >::allocate (this=0x3e5094, s=1)
at shifted_allocator.hpp:83
#6 0x0044aa5d in std::_List_base<boost::detail::sh::shifted_ptr<vector>,
boost::detail::sh::shifted_allocator<boost::detail::sh::shifted_ptr<vector>
> >::_M_get_node (this=0x3e5094)
at stl_list.h:333
#7 0x00453ff2 in std::list<boost::detail::sh::shifted_ptr<vector>,
boost::detail::sh::shifted_allocator<boost::detail::sh::shifted_ptr<vector>
> >::_M_create_node (this=0x3e5094, __x=@0x22ff50)
at stl_list.h:457
#8 0x0045414c in std::list<boost::detail::sh::shifted_ptr<vector>,
boost::detail::sh::shifted_allocator<boost::detail::sh::shifted_ptr<vector>
> >::_M_insert (this=0x3e5094, __position={_M_node = 0x3e50c8},
__x=@0x22ff50)
at stl_list.h:1185
#9 0x0045418d in std::list<boost::detail::sh::shifted_ptr<vector>,
boost::detail::sh::shifted_allocator<boost::detail::sh::shifted_ptr<vector>
> >::push_back (this=0x3e5094, __x=@0x22ff50)
at stl_list.h:807
#10 0x00401708 in main ()
at shifted_ptr_test2.cpp:102
-Phil
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk