[Bug libstdc++/78015] pthread_cancel while some exception is pending results in std::terminate ()

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Oct 18 09:21:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78015

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #0)
> #ifdef WORKAROUND
>   try
>   {
>     throw 1;
>   }
>   catch (int &)
> #endif

Oops, of course I meant #ifndef WORKAROUND.  The problem is when there is an
outstanding normal exception and then we try to rethrow forced unwind exception
that we catch in the catch handler.


More information about the Gcc-bugs mailing list