Skip to content
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

Does Sentry Native support frame pointers stack unwinding? #115

Closed
gawen opened this issue Dec 18, 2019 · 2 comments
Closed

Does Sentry Native support frame pointers stack unwinding? #115

gawen opened this issue Dec 18, 2019 · 2 comments

Comments

@gawen
Copy link

gawen commented Dec 18, 2019

Hello,

I wish to unwind stack traces locally when a crash happen on a Android ARM{32,64} device. My binary is compiled with frame pointers.

For my project, when a crash happens, sentry-native is able to only get the first frame with libunwindstack, but fail to get all of them.

Reading libunwindstack, I see it relies on DWARF symbols to unwind a stack trace. I unfortunately cannot ship my binary with DWARF symbols as the binary would be too big.

I would expect Sentry native (with libunwindstack) to follow frame pointers to unwind a stack trace, but it doesn't work for me, and I cannot find any mention of this in libunwindstack.

Does it support frame pointer stack unwinding? If yes, is there something to enable? Or did I miss something?

Thank you for your help!

@gawen gawen changed the title Does Sentry Native supports frame pointers stack unwinding Does Sentry Native support frame pointers stack unwinding? Dec 18, 2019
@mitsuhiko
Copy link
Member

I'm assuming this is for Android? The unwinder story is not great on Android in general and we're currently using libunwindstack because that's the only thing that is really somewhat supported on Android these days. It should be able to unwind with eh_frame info which is in the binary and does not require DWARF debug data.

@Swatinem
Copy link
Member

@gawen In theory, we have support for multiple unwinders, however only libunwindstack is used on android.
We will release version 0.2 later today. Can you please check again with that version and reopen the issue if necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants