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-05 19:10:57


#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 snaury@…):

 In my opinion boost.context is too low level for this, for example
 boost.context doesn't know anything about exceptions (and boost.coroutine
 does), besides calling C++ ABIs from assembler would be too tedious, and
 there's just nothing platform-dependant about it (more compiler or libc++
 dependant). At the same time boost.coroutine has its own abstraction,
 `coroutine_context`, where `coroutine_context::jump` would be easy to
 modify: declare and call `__cxx_get_globals()` (similar to the way
 boost.log already does) and save/restore the exception information.

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