sentry-java icon indicating copy to clipboard operation
sentry-java copied to clipboard

Parse native threads from AppExitInfo for native crashes

Open romtsn opened this issue 10 months ago • 3 comments

Description

We can enrich native crashes even further by parsing traceInputStream when the reason was REASON_CRASH_NATIVE

Bugsnag prior art https://github.com/bugsnag/bugsnag-android/tree/next/bugsnag-plugin-android-exitinfo/src/main/java/com/bugsnag/android

romtsn avatar Apr 02 '24 10:04 romtsn

FYI: This is related with the investigation here: https://github.com/getsentry/sentry-native/issues/743#issuecomment-1279098537

supervacuus avatar Apr 02 '24 16:04 supervacuus

However, tombstones won't necessarily decode what caused the SIGABRT. There is a good chance that the SIGABRT was an unhandled C++ exception, which would require a terminate handler to decode what happened.

supervacuus avatar Apr 02 '24 16:04 supervacuus

Let's still enrich the native envelopes with matching AppExitInfo, as we already have all the necessary parts ready.

markushi avatar Apr 03 '24 13:04 markushi