-
Notifications
You must be signed in to change notification settings - Fork 279
Is there any plans to bring the backtrace function to Android? #925
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
Comments
@cferris1000 plans to make this available in the NDK at some point. |
@enh @cferris1000 Please, that would be pretty lovely :) Thank you very much. |
What's the difficulty in exposing |
AIUI the expected issues (I don't think @cferris1000 has had time to look yet) are that the new library has only ever been built against the latest API level ( We'll also want to make sure we've tested it very thoroughly, and make sure that new libraries using the new unwinder can still interop with the old one so we don't repeat the same pain caused by libgcc -> libunwind incurred by ARM32 libc++. None of those things are particularly challenging, but they do take time and no one has had the time yet. |
Thanks for the details @DanAlbert, appreciated 👍 |
fwiw, the <execinfo.h> header and its three functions were added to Android T (aka Android 13) in https://android-review.googlesource.com/c/platform/bionic/+/1863333 |
Closing since Android now has this API, and the libunwindstack source is usable by anyone that needs to backport that. There aren't any real plans (we'd love to, but realistically it's not getting prioritized) to provide a trivially imported version of the library for apps (an AAR). If we're underestimating the importance of providing an AAR for this, please let us know :) |
Hello,
Is there any plans to bring the backtrace (http://man7.org/linux/man-pages/man3/backtrace.3.html) function to Android? This is a very common function to retrieve the stack trace.
Thankfully.
The text was updated successfully, but these errors were encountered: