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-05-12 17:34:51


#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 think the crash in Pool is the sympton not the cause - if I remove all
 the thread code, and just call worker() directly in your test program,
 then I still get a crash, and Pool isn't mentioned at all:

 {{{
 Program received signal SIGSEGV, Segmentation fault.
 [Switching to Thread 0xb74d1940 (LWP 6630)]
 0x0804fa86 in boost::numeric::in<long,
 boost::numeric::interval_lib::policies<boost::numeric::interval_lib::rounded_math<long>,
 boost::numeric::interval_lib::checking_strict<long> > > (x=@0xbfd81920,
 y=@0xb7452700)
     at /home/john/boost/Trunk/boost/numeric/interval/utility.hpp:121
 121 return y.lower() <= x && x <= y.upper();
 (gdb) bt
 #0 0x0804fa86 in boost::numeric::in<long,
 boost::numeric::interval_lib::policies<boost::numeric::interval_lib::rounded_math<long>,
 boost::numeric::interval_lib::checking_strict<long> > > (x=@0xbfd81920,
 y=@0xb7452700)
     at /home/john/boost/Trunk/boost/numeric/interval/utility.hpp:121
 #1 0x0804e29d in boost::detail::sh::pool::deallocate (p=0x806605c, s=52)
     at ../../../boost/detail/block_base.hpp:172
 #2 0x08051c57 in boost::detail::sh::block<std::pair<int, int> >::operator
 delete (p=0x806605c) at ../../../boost/detail/block_base.hpp:309
 #3 0x08054b4c in ~block (this=0x806605c)
     at ../../../boost/detail/block_base.hpp:258
 #4 0x0804d286 in boost::detail::sp_counted_base::destroy (this=0x806605c)
     at
 /home/john/boost/Trunk/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp:126
 #5 0x0804d348 in boost::detail::sp_counted_base::weak_release
 (this=0x806605c)
     at
 /home/john/boost/Trunk/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp:159
 #6 0x0804d2fd in boost::detail::sp_counted_base::release (this=0x806605c)
     at
 /home/john/boost/Trunk/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp:146
 #7 0x0805320a in boost::detail::sh::block_ptr_common<std::pair<int, int>
>::reset (this=0x8064bc4, p=0x0) at
 ../../../boost/detail/block_ptr_base.hpp:124
 #8 0x08051d9b in boost::detail::sh::block_ptr<std::pair<int, int>
>::release (
     this=0x8064bc4, d=true) at ../../../boost/block_ptr.hpp:445
 ---Type <return> to continue, or q <return> to quit---
 #9 0x080500cf in ~block_ptr (this=0x8064bc4)
     at ../../../boost/block_ptr.hpp:405
 #10 0xb7500084 in exit () from /lib/tls/i686/cmov/libc.so.6
 #11 0xb74e8458 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
 #12 0x0804c531 in _start ()
 }}}

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