[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 Sep 5 19:03:00 GMT 2017


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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #5)
> (In reply to Jakub Jelinek from comment #0)
> > fails with std::terminate (), while works with -DWORKAROUND.
> 
> It's the other way around, right? Was the testcase meant to use #ifndef?

Yes, see #c2.

> I can take a look at wrapping the non-C++ exception. Do we want to do that
> for all foreign exceptions, or just __forced_unwind?

Dunno.


More information about the Gcc-bugs mailing list