SIGBUS crash on io.sentry.ndk.SentryNdk.loadNativeLibraries
Integration
sentry-android
Build System
Gradle
AGP Version
N/A
Proguard
Enabled
Version
8.3.0
Steps to Reproduce
This started being reported after upgrading to 8.3.0 and based on current reports, it seems to be happening on app startup whenever the SDK is initialized and the device that is affected the most is the Samsung DM3Q
` pid: 0, tid: 18755 >>> package.name <<<
backtrace:
00 pc 0x000000000005045c /apex/com.android.runtime/bin/linker64 (__dl__ZL19plain_relocate_implIL9RelocMode1EEbR9RelocatorP10elf64_relam+76)
01 pc 0x000000000004ecf8 /apex/com.android.runtime/bin/linker64 (__dl__ZN6soinfo8relocateERK16SymbolLookupList+504)
02 pc 0x000000000003e954 /apex/com.android.runtime/bin/linker64 (__dl__ZN6soinfo10link_imageERK16SymbolLookupListPS_PK17android_dlextinfoPm+164)
03 pc 0x0000000000039654 /apex/com.android.runtime/bin/linker64 (__dl__Z14find_librariesP19android_namespace_tP6soinfoPKPKcmPS2_PNSt3__16vectorIS2_NS8_9allocatorIS2_EEEEmiPK17android_dlextinfobPNS9_IS0_NSA_IS0_EEEE+3748)
04 pc 0x000000000003c140 /apex/com.android.runtime/bin/linker64 (__dl__Z9do_dlopenPKciPK17android_dlextinfoPKv+1856)
05 pc 0x0000000000037100 /apex/com.android.runtime/bin/linker64 (__loader_android_dlopen_ext+80)
06 pc 0x0000000000001110 /apex/com.android.runtime/lib64/bionic/libdl.so (android_dlopen_ext+16)
07 pc 0x0000000000019fb8 /apex/com.android.art/lib64/libnativeloader.so (android::NativeLoaderNamespace::Load(char const*) const+140)
08 pc 0x00000000000087bc /apex/com.android.art/lib64/libnativeloader.so (OpenNativeLibrary+536)
09 pc 0x00000000005830cc /apex/com.android.art/lib64/libart.so (art::JavaVMExt::LoadNativeLibrary(_JNIEnv*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, _jobject*, _jclass*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*)+604)
10 pc 0x0000000000005914 /apex/com.android.art/lib64/libopenjdkjvm.so (JVM_NativeLoad+356)
11 pc 0x00000000003887f8 /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (art_jni_trampoline+152)
12 pc 0x000000000044e2a8 /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (java.lang.Runtime.loadLibrary0+328)
13 pc 0x000000000044f1e0 /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (java.lang.Runtime.loadLibrary0+416)
14 pc 0x0000000000452afc /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (java.lang.System.loadLibrary+92)
15 pc 0x0000000000368a40 /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+640)
16 pc 0x0000000000361e5c /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, bool, art::JValue*)+2048)
17 pc 0x000000000076f734 /apex/com.android.art/lib64/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false>(art::interpreter::SwitchImplContext*)+12208)
18 pc 0x00000000003815d8 /apex/com.android.art/lib64/libart.so (ExecuteSwitchImplAsm+8)
19 pc 0x000000000019fae0 /data/app/~~9JhHWeFoTxqKx1JR4QBrag==/com.bumble.app-d9Ktop1ODESMhW9cZp1sZQ==/base.apk ( )
20 pc 0x00000000003535dc /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+1932)
21 pc 0x000000000037f098 /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88)
22 pc 0x0000000000780088 /apex/com.android.art/lib64/libart.so (nterp_helper+152)
23 pc 0x00000000001932f4 /data/app/~~9JhHWeFoTxqKx1JR4QBrag==/com.bumble.app-d9Ktop1ODESMhW9cZp1sZQ==/base.apk (io.sentry.android.ndk.SentryNdk.lambda$static$0)
24 pc 0x0000000000780088 /apex/com.android.art/lib64/libart.so (nterp_helper+152)
25 pc 0x00000000001930d4 /data/app/~~9JhHWeFoTxqKx1JR4QBrag==/com.bumble.app-d9Ktop1ODESMhW9cZp1sZQ==/base.apk (io.sentry.android.ndk.SentryNdk.a)
26 pc 0x0000000000780088 /apex/com.android.art/lib64/libart.so (nterp_helper+152)
27 pc 0x00000000001930bc /data/app/~~9JhHWeFoTxqKx1JR4QBrag==/com.bumble.app-d9Ktop1ODESMhW9cZp1sZQ==/base.apk (io.sentry.android.ndk.c.run)
28 pc 0x0000000000501338 /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (java.lang.Thread.run+72)
29 pc 0x0000000000368774 /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+612)
30 pc 0x0000000000353f24 /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+132)
31 pc 0x0000000000947968 /apex/com.android.art/lib64/libart.so (art::detail::ShortyTraits<(char)86>::Type art::ArtMethod::InvokeInstance<(char)86>(art::Thread*, art::ObjPtr<art::mirror::Object>, art::detail::ShortyTraits<>::Type...)+60)
32 pc 0x0000000000636878 /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallback(void*)+1344)
33 pc 0x00000000000fba4c /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204)
34 pc 0x000000000008e5f0 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)`
Expected Result
App startup without a crash
Actual Result
App startup with a crash
@serglom21 thanks for opening the issue, we'll look into it soon
This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!
"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀