-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rethrow unwind exception #533
Conversation
Intersting. Why GNUC? is it gcc specific? |
This is not GCC specific, it is specific for usage of the "Native POSIX Thread Library" (NPTL), see also https://udrepper.livejournal.com/21541.html. I guess we should rather use |
Will it compile under clang? also, could you please move this “#define” to spdlog/common.h? |
f8cee11
to
935e9cc
Compare
moved to common.h yes this will compile on clang as long as cxxabi.h is present |
the error handler will be called for all exceptions except for |
Yes please. |
On Linux with pthread library spdlog causes an SIGABORT and crashes the application in case it catches a thread specific cancellation exception in a critical execution phase while in a try/catch block in spdlog/detail/logger_impl.h The exception is caught by some general catch(...) clause where it is NOT rethrown. However rethrowing these kind of exception is mandatory, otherwise an abort will be caused by the glibc.
935e9cc
to
039b34e
Compare
done |
@gabime we encountered the same issue described in this PR (using spdlog v1.6.1, on centos7). |
I think there was some problem with it, but I do not recall exactly.. |
@alurie Fixed again |
Why is this issue associated with v1.9.0? Is the release note of v1.9.0 incorrect? |
On Linux with pthread library spdlog causes an SIGABORT and crashes
the application in case it catches a thread specific cancellation
exception in a critical execution phase while in a try/catch block
in spdlog/detail/logger_impl.h
The exception is caught by some general catch(...) clause where
it is NOT rethrown.
However rethrowing these kind of exception is mandatory, otherwise
an abort will be caused by the glibc.