We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d872fbc commit 18c0bc2Copy full SHA for 18c0bc2
sentry-samples/sentry-samples-android/src/main/cpp/native-sample.cpp
@@ -1,15 +1,15 @@
1
#include <jni.h>
2
#include <android/log.h>
3
#include <sentry.h>
4
+#include <signal.h>
5
6
#define TAG "sentry-sample"
7
8
extern "C" {
9
10
JNIEXPORT void JNICALL Java_io_sentry_samples_android_NativeSample_crash(JNIEnv *env, jclass cls) {
11
__android_log_print(ANDROID_LOG_WARN, TAG, "About to crash.");
- char *ptr = 0;
12
- *ptr += 1;
+ raise(SIGSEGV);
13
}
14
15
JNIEXPORT void JNICALL Java_io_sentry_samples_android_NativeSample_message(JNIEnv *env, jclass cls) {
0 commit comments