Re: [Boost-bugs] [Boost C++ Libraries] #7666: Boost Thread SIGSEGV on join() when -D_GLIBCXX_DEBUG is used

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7666: Boost Thread SIGSEGV on join() when -D_GLIBCXX_DEBUG is used
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-09-17 19:45:32


#7666: Boost Thread SIGSEGV on join() when -D_GLIBCXX_DEBUG is used
-------------------------------------+-------------------------------------
  Reporter: Antonio Di Monaco | Owner: viboes
  <tony@…> | Status: assigned
      Type: Bugs | Component: thread
 Milestone: To Be Determined | Severity: Problem
   Version: Boost 1.52.0 | Keywords: thread SIGSEGV C++11
Resolution: | -D_GLIBCXX_DEBUG
-------------------------------------+-------------------------------------

Comment (by Antonio Di Monaco <tony@…>):

 Unfortunately, the patch doesn't work. Tried with gcc 4.8.1 and
 boost-1.54.0, got same backtrace:

 {{{
 (gdb) r
 Starting program: C:\Users\Tony\Downloads\boost_1_54_0\test.exe
 [New Thread 3600.0xe14]
 warning: SHIMVIEW: ShimInfo(Complete)

 [New Thread 3600.0xa9c]

 Program received signal SIGSEGV, Segmentation fault.
 0x67e81537 in boost::detail::thread_data_base::~thread_data_base (
     this=0x5b23d0, __in_chrg=<optimized out>)
     at libs\thread\src\win32\thread.cpp:45
 45 i->second->unlock();
 (gdb) bt
 #0 0x67e81537 in boost::detail::thread_data_base::~thread_data_base (
     this=0x5b23d0, __in_chrg=<optimized out>)
     at libs\thread\src\win32\thread.cpp:45
 #1 0x0040b4e8 in boost::detail::thread_data<void (*)()>::~thread_data (
     this=0x5b23d0, __in_chrg=<optimized out>)
     at C:/x32-481-win32-sjlj-r2/include/boost/thread/detail/thread.hpp:91
 #2 0x67e8f542 in
 boost::detail::heap_delete<boost::detail::thread_data_base>
     (data=0x5b23d0) at ./boost/thread/win32/thread_heap_alloc.hpp:391
 #3 0x67e90971 in boost::detail::intrusive_ptr_release (p=0x5b23d0)
     at ./boost/thread/win32/thread_data.hpp:137
 #4 0x67e8abef in
 boost::intrusive_ptr<boost::detail::thread_data_base>::~intrus
 ive_ptr (this=0x28fd5c, __in_chrg=<optimized out>)
     at ./boost/smart_ptr/intrusive_ptr.hpp:97
 #5 0x67e822b5 in boost::thread::join_noexcept (this=0x28fe8c)
     at libs\thread\src\win32\thread.cpp:354
 #6 0x0040c183 in boost::thread::join (this=0x28fe8c)
     at C:/x32-481-win32-sjlj-r2/include/boost/thread/detail/thread.hpp:756
 #7 0x00401734 in main () at test.cpp:12
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7666#comment:11>
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:14 UTC