-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[mobile][diagnostics] Format native crash output using llvm-symbolizer markup #103132
Comments
Tagging subscribers to this area: @tommcdon |
/cc @mdh1418 |
To get the build ids, I guess you need to do a |
Possible workaround - dotnet/android#8832 (comment) |
These issues are about managed stack traces and adding line number info to android logs based on MVID of the managed stack frames. The current issue is about unmanaged stack traces.
That workaround is just about displaying the unmanaged stack traces (likely with missing symbol names) - currently the runtime just swallows its own attempts at printing those. After the workaround there is still the question of how to ensure that it's possible to get the symbol names for the native addresses that appear in the log. (ie: the current issue is about enhancing the workaround) |
Use case:
I'm a C# android developer. I am capable of reproducing a native crash in my app and I can run
adb log
. In addition to the standard android crash dump summary, I would like the .NET runtime to print out its own view of a native backtrace usingllvm-symbolizer
markup so that I can use that output together withdotnet-symbol
to view native stack traces that include line number information.There's three tasks here:
dump_native_stacktrace
to use{{bt:...}}
markup to print stack frame addresses.{{module:}}
and{{mmap:...:load:...}}
markup to print out the ELF BuildId of each module and the memory map info for each loaded that appears in the stack traces (probablydladdr
and some kind ofdlinfo
will get this data)dump_native_stacktrace
to use"unwind.h"
and _Unwind_backtrace on Android to iterate over stack frames. (Android doesn't havebacktrace
that we use on other platforms)The text was updated successfully, but these errors were encountered: