Re: [Boost-bugs] [Boost C++ Libraries] #5523: Crash with singleton_pool in multithreaded mode

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5523: Crash with singleton_pool in multithreaded mode
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-06-09 03:53:31


#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 anonymous):

 I also encountered the same problem.

 segment falut.

 #0 0x0000000000479141 in boost::simple_segregated_storage<unsigned
 long>::malloc (this=0x6f5048) at
 /usr/include/boost/pool/simple_segregated_storage.hpp:104
 104 first = nextof(first);
 (gdb) bt
 #0 0x0000000000479141 in boost::simple_segregated_storage<unsigned
 long>::malloc (this=0x6f5048) at
 /usr/include/boost/pool/simple_segregated_storage.hpp:104
 #1 0x0000000000479edf in
 boost::pool<boost::default_user_allocator_new_delete>::malloc
 (this=0x6f5048) at /usr/include/boost/pool/pool.hpp:221
 #2 0x0000000000479f24 in boost::singleton_pool<obt::ipmsg, 1056u,
 boost::default_user_allocator_new_delete,
 boost::details::pool::pthread_mutex, 32u>::malloc ()
     at /usr/include/boost/pool/singleton_pool.hpp:59
 #3 0x00000000004acbec in obt::send_handler_impl::send_task_msg
 (this=0x1edfad40, tsk=0x22942ad8, buf=0x2aaafbcca24e "o\002\003?@hKi!",
 len=964)
     at /home/OpenIPTV/trunk/p2pcore/server/dataserver/main/sender.cpp:103
 #4 0x00000000004acfb5 in obt::send_handler_impl::svc (this=0x1edfad40) at
 /home/OpenIPTV/trunk/p2pcore/server/dataserver/main/sender.cpp:183
 #5 0x00000000004adfc4 in boost::_mfi::mf0<int,
 obt::send_handler_impl>::operator() (this=0x1edfa8a0, p=0x1edfad40) at
 /usr/include/boost/bind/mem_fn_template.hpp:45
 #6 0x00000000004ae032 in
 boost::_bi::list1<boost::_bi::value<obt::send_handler_impl*>
>::operator()<int, boost::_mfi::mf0<int, obt::send_handler_impl>,
 boost::_bi::list0> (
     this=0x1edfa8b0, f=@0x1edfa8a0, a=@0x429eb04f) at
 /usr/include/boost/bind.hpp:220
 #7 0x00000000004ae070 in boost::_bi::bind_t<int, boost::_mfi::mf0<int,
 obt::send_handler_impl>,
 boost::_bi::list1<boost::_bi::value<obt::send_handler_impl*> >
>::operator() (
     this=0x1edfa8a0) at /usr/include/boost/bind/bind_template.hpp:20
 #8 0x00000000004ae08f in
 boost::detail::function::function_obj_invoker0<boost::_bi::bind_t<int,
 boost::_mfi::mf0<int, obt::send_handler_impl>,
 boost::_bi::list1<boost::_bi::value<obt::send_handler_impl*> > >,
 int>::invoke (function_obj_ptr={obj_ptr = 0x1edfa8a0, const_obj_ptr =
 0x1edfa8a0, func_ptr = 0x1edfa8a0, data = "?"})
     at /usr/include/boost/function/function_template.hpp:119
 #9 0x000000000047ff6c in boost::function0<int, std::allocator<void>
>::operator() (this=0x1edfade8) at
 /usr/include/boost/function/function_template.hpp:576
 #10 0x000000000047ff95 in obt::thread::svc (arg=0x1edfadd8) at
 /home/OpenIPTV/trunk/p2pcore/server/dataserver/../../include/obt/thread.h:23
 #11 0x000000363ec064a7 in start_thread () from /lib64/libpthread.so.0
 #12 0x000000363e0d3c2d in clone () from /lib64/libc.so.6
 (gdb) quit

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5523#comment:4>
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