Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Added an option to use libc backtrace function from execinfo.h #70
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.