Integration
sentry-android
Build System
Gradle
AGP Version
newest
Proguard
Enabled
Version
8.32.0
Steps to Reproduce
- Create a (react native) app with native code
#include <jni.h>
extern "C" JNIEXPORT void JNICALL
Java_com_example_nativeCrash(JNIEnv* env, jobject thiz) {
// this causes a segmentation fault
int* ptr = nullptr;
*ptr = 42;
}
- Launch the app in release mode, trigger the crashing function on an Android 10 device. (Ensure the required Unwind / Debug Sections (.eh_frame_hdr + .eh_frame) are present
As discussed the culprit most likely is our stack unwinding code not working properly and being unable to extract frames.
Expected Result
A complete stacktrace.
Actual Result
An incomplete stacktrace:
OS Version: Android 10 (QP1A.190711.020.xx)
Report Version: 104
Exception Type: Unknown (SIGSEGV)
Application Specific Information:
Segfault
Thread 0 Crashed:
0 <unknown> 0x0 <unknown>
1 base.odex 0xCOFFEECOFF <unknown> + 42
EOF
Integration
sentry-android
Build System
Gradle
AGP Version
newest
Proguard
Enabled
Version
8.32.0
Steps to Reproduce
As discussed the culprit most likely is our stack unwinding code not working properly and being unable to extract frames.
Expected Result
A complete stacktrace.
Actual Result
An incomplete stacktrace: