-
Notifications
You must be signed in to change notification settings - Fork 548
Print stacktraces with error messages #2632
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly looks good, I did check whats the compiler error but there are few in all the builds.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hum, so are you using :
- boost backtrace (libboost_stacktrace_addr2line, ...)
or - libbacktrace : https://github.com/ianlancetaylor/libbacktrace
?
* Prints the stacktrace with error messages. * Relies on boost::stacktrace * Adds the af_set_enable_stacktrace call to enable and disable stacktraces at runtime * Adds the AF_WITH_STACKTRACE CMake variable to enable and disable stacktraces at compile time
CMP0074) | ||
CMP0074 | ||
CMP0077 | ||
CMP0079) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this would throw error with CMake versions < 3.13.0
stacktraces at runtime
stacktraces at compile time
Currently the error messages look like this:
With this PR and linking without libbacktrace.so the error messages will look like this:
With this PR and with libbacktrace.so the error messages look like this: