[Boost-bugs] [Boost C++ Libraries] #4768: MinGW: SIGSEGV in refcount_ptr (exception.hpp:38)

Subject: [Boost-bugs] [Boost C++ Libraries] #4768: MinGW: SIGSEGV in refcount_ptr (exception.hpp:38)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-10-22 02:59:10


#4768: MinGW: SIGSEGV in refcount_ptr (exception.hpp:38)
----------------------------------------+-----------------------------------
 Reporter: Jim Bell <jim@…> | Owner: emildotchevski
     Type: Bugs | Status: new
Milestone: Boost-1.45.0 | Component: exception
  Version: Boost 1.44.0 | Severity: Showstopper
 Keywords: mingw SIGSEGV clone |
----------------------------------------+-----------------------------------
 copy_exception_test fails
 ([http://www.boost.org/development/tests/trunk/developer/output/MinGW-32
 %20jc-bell-com-boost-bin-v2-libs-exception-test-copy_exception_test-test-
 gcc-mingw-4-4-0-debug-link-static-threading-multi.html see here], current
 as of 2010/10/21):

 {{{
 Run [2010-10-21 22:46:51 UTC]: fail

 pure virtual method called

 This application has requested the Runtime to terminate it in an unusual
 way.
 Please contact the application's support team for more information.
 terminate called after throwing an instance of
 'boost::exception_detail::clone_impl<err>'
   what(): std::exception

 EXIT STATUS: 3
 }}}

 gdb shows me this:
 {{{
 Program received signal SIGSEGV, Segmentation fault.
 [Switching to thread 4076.0x1278]
 0x00415975 in refcount_ptr (this=0x38184, x=@0x4ca534)
     at ../boost/exception/exception.hpp:38
 38 px_(x.px_)

 (gdb)bt [backtrace]
 #0 0x00415975 in refcount_ptr (this=0x38184, x=@0x4ca534)
     at ../boost/exception/exception.hpp:38
 #1 0x00421cdb in exception (this=0x38180)
     at ../boost/exception/exception.hpp:199
 #2 0x00413183 in clone_impl (this=0x38178)
     at ../boost/exception/exception.hpp:405
 #3 0x004252c0 in boost::exception_detail::clone_impl<err>::clone (
     this=0x3c200) at ../boost/exception/exception.hpp:424
 #4 0x00417226 in boost::exception_detail::current_exception_impl ()
     at ../boost/exception/detail/exception_ptr.hpp:302
 #5 0x0041c521 in boost::current_exception ()
     at ../boost/exception/detail/exception_ptr.hpp:403
 #6 0x00411f54 in boost::copy_exception<err> (e=@0x2acfeb0)
     at ../boost/exception/detail/exception_ptr.hpp:48
 #7 0x00401411 in producer (f=@0x16cfed8)
     at ..\libs\exception\test\copy_exception_test.cpp:81
 #8 0x0041d523 in boost::_bi::list1<boost::reference_wrapper<future>
>::operator
 ()<void (*)(future&), boost::_bi::list0> (this=0x253244, f=@0x253240,
     a=@0x2acff27) at ../boost/bind/bind.hpp:253
 #9 0x0041d57e in boost::_bi::bind_t<void, void (*)(future&),
 boost::_bi::list1<
 boost::reference_wrapper<future> > >::operator() (this=0x253240)
     at ../boost/bind/bind_template.hpp:20
 #10 0x0041d920 in boost::detail::thread_data<boost::_bi::bind_t<void, void
 (*)(f
 uture&), boost::_bi::list1<boost::reference_wrapper<future> > > >::run (
     this=0x253220) at ../boost/thread/detail/thread.hpp:61
 #11 0x00401c25 in thread_start_function (param=0x253220)
     at ..\libs\thread\src\win32\thread.cpp:168
 #12 0x77c3a3b0 in msvcrt!_endthreadex () from
 C:\WINDOWS\system32\msvcrt.dll
 #13 0x7c80b729 in KERNEL32!GetModuleFileNameA ()
    from C:\WINDOWS\system32\kernel32.dll
 #14 0x00000000 in ?? ()
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4768>
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:04 UTC