-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
runtime: android backtraces do not include go backtrace #25035
Comments
Possibly a dup of #22716? |
Not quite the same thing here. |
/cc @eliasnaur |
Related: #28997 |
@zx2c4 On Android, I was able to collect the stack traces as well as logcat logs immediately after the golang crash using https://github.com/ivanarh/jndcrash This hopefully should be sufficient for you as well. |
I am also seeing this issue with a library built with gomobile. I was able to get a fully symbolicated stack trace in logcat by forcing a panic in the library. The stack trace is shown regardless of the linker flags used to build the binary (i.e. Is this an issue affecting all libraries built with NDK, or is it specific to gomobile? In other words, is it necessary to integrate a solution like the one described by @ashishb for the stack traces of (non-go) NDK libraries to show up in Google Play Console? |
@alalamav, IMHO, this is specific to gomobile. |
I wonder if it'd be possible for the Go crash handler to synthesize a fake call stack using the native ABI before aborting so that the default Play Store reporter gets useful information. (I'm not super keen on adding additional telemetry to my app to phone that home elsewhere.) |
Does
I am not sure what this alludes to, but would setting |
The android native backtrace always goes back to the abort() call, and does not include the more useful go backtrace. Therefore, in the Google Play Console, we're left with very unhelpful backtraces like:
It would be useful to have the backtrace here include information from Go's backtrace.
The text was updated successfully, but these errors were encountered: