Re: [Boost-bugs] [Boost C++ Libraries] #10093: Exceptions "teleport" between coroutines when switching inside catch

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10093: Exceptions "teleport" between coroutines when switching inside catch
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-06-09 08:51:48


#10093: Exceptions "teleport" between coroutines when switching inside catch
-------------------------------+---------------------
  Reporter: snaury@… | Owner: olli
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: context
   Version: Boost 1.54.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+---------------------

Comment (by olli):

 - 32bit MSVC works
 - 64bit MSVC crashes the app - no info regarding to this issue found in
 the INet
 - compiler using C++ Itanium ABI are problematic because
 __cxa__get_globals() does call malloc()
   store/restore of {{{__cxa_eh_globals::caughtExceptions}}} and
   {{{__cxa_eh_globals::uncaughtExceptions}}} per context we might end up
 with memory leaks (== closing a
   context without cleaning up its list of the active exceptions).

 => maybe the best solution would be a hint in the docu. not to call
 context inside a catch-block

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