Added an option to use libc backtrace function from execinfo.h#70
Added an option to use libc backtrace function from execinfo.h#70apolukhin merged 3 commits intoboostorg:developfrom ivanarh:use_execinfo_backtrace
Conversation
…nstead of _Unwind_Backtrace on Unix-like systems. Useful on iOS 32-bit ARM where _Unwind_Backtrace symbol is undefined.
…ed macros from Boost predef.
|
Many thanks for the PR! I'm worried about async signal safety of backtrace() on Ios. Are there any guarantees? |
It may depend on libc implementation and (or) on platform. For example, let's take a look to it's source in glibc: What about apple libc implementation, it's completely different: pthread_self is signal safe, pthread_get_stackaddr_np is not properly documented. So it may be unsafe. But this code isn't reached when we work with a current thread. Therefore, signal safety of backtrace function is an arguable question. |
|
Looks safe to me. Many thanks! |
Uh oh!
There was an error while loading. Please reload this page.