Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost.Context: SIGSEGV when switch a thread within a catch block
From: Alexander G. Pronchenkov (alexander_at_[hidden])
Date: 2017-01-02 15:21:04


Hi Oliver,

I think it would make sense to slightly clarify the documentation:

- Do not jump from inside a catch block and then re-throw the
exception in another execution context.
+ Do not jump from inside a catch block.

Otherwise it's a bit confusing because I don't re-throw exceptions in
my case but the problem is here.

Also, do you known whether it's safe to jump from inside of a try
block? I'm asking because there is a not at
https://docs.oracle.com/cd/E24457_01/html/E21991/bkahg.html that

> ... you must not longjmp into or out of a try-block or catch-block (directly or indirectly) ...

--
Thanks,
Alexander Pronchenkov
On 2 January 2017 at 10:09, Oliver Kowalke <oliver.kowalke_at_[hidden]> wrote:
> you must no call jump-op inside a catch block - that means you can't use
> async-op handlers inside exception handler
> exceptions might be implemented using sj/lj - in general, exception handlers
> are handled/implemented in a special way.
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net