Commit 69dc380c by Jörg Kreuzberger Committed by Wenzel Jakob

#1208 Handle forced unwind exception (e.g. during pthread termination)

* #1208 Bugfix thread kill wihile running pybind11 module

* #1208 Bugfix missing space after catch
parent 09330b94
......@@ -41,6 +41,11 @@
# endif
#endif
#if defined(__GNUG__) && !defined(__clang__)
#include <cxxabi.h>
#endif
#include "attr.h"
#include "options.h"
#include "detail/class.h"
......@@ -663,6 +668,10 @@ protected:
} catch (error_already_set &e) {
e.restore();
return nullptr;
#if defined(__GNUG__) && !defined(__clang__)
} catch ( abi::__forced_unwind& ) {
throw;
#endif
} catch (...) {
/* When an exception is caught, give each registered exception
translator a chance to translate it to a Python exception
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment