Android Native crash at /system/lib/libc.so - android

I got this crash reported on the play developer console from a Galaxy S4. Any clue what it's about?
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'samsung/jfltespr/jfltespr:5.0.1/LRX22C/L720VPUGOK3:user/release-keys'
Revision: '11'
ABI: 'arm'
pid: 19535, tid: 19535, name: >>> com.company.package <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
Abort message: 'sart/runtime/class_linker.cc:3054] Check failed: dex_cache.Get() != nullptr Failed to allocate dex cache for /data/app/com.google.android.gms-1/base.apk'
r0 00000000 r1 00004c4f r2 00000006 r3 00000000
r4 b6f4e114 r5 00000006 r6 00000002 r7 0000010c
r8 00000001 r9 b4f4f520 sl b4f07800 fp b3b6db00
ip 00004c4f sp beceff10 lr b6ed7fd1 pc b6efaeb4 cpsr 60070010
backtrace:
#00 pc 00036eb4 /system/lib/libc.so (tgkill+12)
#01 pc 00013fcd /system/lib/libc.so (pthread_kill+52)
#02 pc 00014beb /system/lib/libc.so (raise+10)
#03 pc 00011531 /system/lib/libc.so (__libc_android_abort+36)
#04 pc 0000fcbc /system/lib/libc.so (abort+4)
#05 pc 0021d9d9 /system/lib/libart.so (art::Runtime::Abort()+160)
#06 pc 000a8363 /system/lib/libart.so (art::LogMessage::~LogMessage()+1322)
#07 pc 000ce557 /system/lib/libart.so (art::ClassLinker::RegisterDexFile(art::DexFile const&)+330)
#08 pc 000d37e5 /system/lib/libart.so (art::ClassLinker::FindClassInPathClassLoader(art::ScopedObjectAccessAlreadyRunnable&, art::Thread*, char const*, art::Handle<art::mirror::ClassLoader>)+424)
#09 pc 000d3af9 /system/lib/libart.so (_ZN3art11ClassLinker9FindClassEPNS_6ThreadEPKcNS_6HandleINS_6mirror11ClassLoaderEEE.part.403+356)
#10 pc 000d65e3 /system/lib/libart.so (art::ClassLinker::ResolveType(art::DexFile const&, unsigned short, art::Handle<art::mirror::DexCache>, art::Handle<art::mirror::ClassLoader>)+122)
#11 pc 000d685d /system/lib/libart.so (art::ClassLinker::ResolveMethodExceptionHandlerTypes(art::DexFile const&, art::mirror::ArtMethod*)+316)
#12 pc 000d6953 /system/lib/libart.so (art::ClassLinker::ResolveClassExceptionHandlerTypes(art::DexFile const&, art::Handle<art::mirror::Class>)+46)
#13 pc 000d6b8f /system/lib/libart.so (art::ClassLinker::VerifyClass(art::Handle<art::mirror::Class>)+470)
#14 pc 000d81bf /system/lib/libart.so (art::ClassLinker::InitializeClass(art::Handle<art::mirror::Class>, bool, bool)+270)
#15 pc 000d8c13 /system/lib/libart.so (art::ClassLinker::EnsureInitialized(art::Handle<art::mirror::Class>, bool, bool)+54)
#16 pc 00288037 /system/lib/libart.so (artQuickResolutionTrampoline+598)
#17 pc 000a424b /system/lib/libart.so (art_quick_resolution_trampoline+10)
#18 pc 0010fa7c /dev/ashmem/dalvik-main space (deleted)
Here's the primary error message pulled out from that mess:
Abort message: 'sart/runtime/class_linker.cc:3054] Check failed: dex_cache.Get() != nullptr Failed to allocate dex cache for /data/app/com.google.android.gms-1/base.apk'
There were no user comments so I have no idea how to reproduce it. Is there anything I can do to track this down?

Related

Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), we are facing a crash when we are reusing the SurfaceView for playing video

we are facing this issue wherin trying to reuse the surfaceView for playing the video
Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x10 in
tid 5971 (hwuiTask1), pid 4526 (com.example.tv)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint:
'Project/hsw4026atl/hsw4026atl:9/PTT1.210208.001/2.3.0-
21042717:user/release-keys'
Revision: '0'
ABI: 'arm'
pid: 4526, tid: 5971, name: hwuiTask1 >>> com.example.tv <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x10
Cause: null pointer dereference
r0 00000000 r1 7b6fa440 r2 7b17f32c r3 00000000
r4 8877d100 r5 7b17f360 r6 7b17f338 r7 00000000
r8 8877d104 r9 7b17f420 r10 13a56118 r11 13f1a020
ip a4935e24 sp 7b17f328 lr a491ac6b pc a491ac6e"-*
backtrace:
#00 pc 0005dc6e /system/lib/libgui.so -(android::SurfaceComposerClient::Transaction::getLayerState(android::sp<android::SurfaceControl> const&)+286)
#01 pc 0005dfeb /system/lib/libgui.so (android::SurfaceComposerClient::Transaction::deferTransactionUntil(android::sp<android::SurfaceControl> const&, android::sp<android::Surface> const&, unsigned long long)+22)
#02 pc 000a537f /system/lib/libandroid_runtime.so (android::nativeDeferTransactionUntilSurface(_JNIEnv*, _jclass*, long long, long long, long long, long long)+62)
#03 pc 003acc89 /system/framework/arm/boot-framework.oat (offset 0x38a000) (android.view.SurfaceControl.nativeDeferTransactionUntilSurface+152)
#04 pc 009b8a23 /system/framework/arm/boot-framework.oat (offset 0x38a000) (android.view.SurfaceControl$Transaction.deferTransactionUntilSurface+114)
#05 pc 00b143a7 /system/framework/arm/boot-framework.oat (offset 0x38a000) (android.view.SurfaceView.applySurfaceTransforms+110)
#06 pc 00b166d9 /system/framework/arm/boot-framework.oat (offset 0x38a000) (android.view.SurfaceView.updateSurfacePosition_renderWorker+240)
#07 pc 0041cb75 /system/lib/libart.so (art_quick_invoke_stub_internal+68)
#08 pc 003f5b09 /system/lib/libart.so (art_quick_invoke_stub+224)
#09 pc 000a100d /system/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+136)
#10 pc 00354ea1 /system/lib/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+52)
#11 pc 00355e51 /system/lib/libart.so (art::InvokeVirtualOrInterfaceWithVarArgs(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+316)
#12 pc 00279c5b /system/lib/libart.so (art::JNI::CallVoidMethodV(_JNIEnv*, _jobject*, _jmethodID*, std::__va_list)+482)
#13 pc 000794cb /system/lib/libandroid_runtime.so (_JNIEnv::CallVoidMethod(_jobject*, _jmethodID*, ...)+38)
#14 pc 000a11df /system/lib/libandroid_runtime.so (_ZZN7androidL46android_view_RenderNode_requestPositionUpdatesEP7_JNIEnvP8_jobjectxS3_EN26SurfaceViewPositionUpdater21doUpdatePositionAsyncExiiii+122)
#15 pc 000a135d /system/lib/libandroid_runtime.so (_ZNSt3__110__function6__funcINS_6__bindINS_8__mem_fnIMZN7androidL46android_view_RenderNode_requestPositionUpdatesEP7_JNIEnvP8_jobjectxS8_E26SurfaceViewPositionUpdaterFvxiiiiEEEJPS9_xiiiiEEENS_9allocatorISE_EEFvvEEclEv+52)
#16 pc 0037c61d /system/lib/libhwui.so (android::uirenderer::renderthread::CacheManager::SkiaTaskProcessor::onProcess(android::sp<android::uirenderer::Task<bool>> const&)+14)
#17 pc 0037ae17 /system/lib/libhwui.so (android::uirenderer::TaskProcessor<bool>::process(android::sp<android::uirenderer::TaskBase> const&)+38)
#18 pc 0034814b /system/lib/libhwui.so (android::uirenderer::TaskManager::WorkerThread::threadLoop()+110)
#19 pc 0000c189 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+292)
#20 pc 0006f1c3 /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+82)
#21 pc 00064303 /system/lib/libc.so (__pthread_start(void*)+22)
#22 pc 0001df8d /system/lib/libc.so (__start_thread+32)
BootReceiver: Copying /data/tombstones/tombstone_00 to DropBox (SYSTEM_TOMBSTONE)
ActivityManager: Force finishing activity com.example.tv/.MainActivity

How to convert an unity3d game app crash log backtrace to code location

***** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'google/volantis/flounder:7.1.1/N9F27M/4333998:user/release-keys'
Revision: '0'
ABI: 'arm'
pid: 23136, tid: 23160, name: UnityMain >>> com.kumora.emblem <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
r0 c0d0d570 r1 00000000 r2 00000024 r3 00000038
r4 c0d0d578 r5 00000038 r6 de77d141 r7 c837fc78
r8 00000000 r9 ce4e7694 sl 00000024 fp df1c5c70
ip dea4fab0 sp d0f75a18 lr de80ec47 pc de77d148 cpsr 600b0030
backtrace:
#00 pc 00914148 /vendor/lib/libglcore.so
#01 pc 009a5c45 /vendor/lib/libglcore.so
#02 pc 009a5fd9 /vendor/lib/libglcore.so
#03 pc 0079ef39 /vendor/lib/libglcore.so
#04 pc 005130b0 /data/app/com.kumora.emblem-1/lib/arm/libunity.so
#05 pc 00264054 /data/app/com.kumora.emblem-1/lib/arm/libunity.so
#06 pc 002631c0 /data/app/com.kumora.emblem-1/lib/arm/libunity.so
#07 pc 005b7eec /data/app/com.kumora.emblem-1/lib/arm/libunity.so
#08 pc 005b7fa8 /data/app/com.kumora.emblem-1/lib/arm/libunity.so
#09 pc 0019ac44 /data/app/com.kumora.emblem-1/lib/arm/libunity.so
#10 pc 0045ef4c /data/app/com.kumora.emblem-1/lib/arm/libunity.so
#11 pc 00199ef0 /data/app/com.kumora.emblem-1/lib/arm/libunity.so
#12 pc 0019b6e4 /data/app/com.kumora.emblem-1/lib/arm/libunity.so
#13 pc 0019c690 /data/app/com.kumora.emblem-1/lib/arm/libunity.so
#14 pc 001a34c8 /data/app/com.kumora.emblem-1/lib/arm/libunity.so
#15 pc 00125d90 /data/app/com.kumora.emblem-1/lib/arm/libunity.so
#16 pc 00128364 /data/app/com.kumora.emblem-1/lib/arm/libunity.so
#17 pc 00149794 /data/app/com.kumora.emblem-1/lib/arm/libunity.so
#18 pc 002e7b34 /data/app/com.kumora.emblem-1/lib/arm/libunity.so
#19 pc 002e941c /data/app/com.kumora.emblem-1/lib/arm/libunity.so
#20 pc 00540a68 /data/app/com.kumora.emblem-1/lib/arm/libunity.so
#21 pc 00543248 /data/app/com.kumora.emblem-1/lib/arm/libunity.so
#22 pc 0020e629 /data/app/com.kumora.emblem-1/oat/arm/base.odex (offset 0x1ec000)
I am using this method to convert the address to code location but the result seems no right. Is there any better way to find the crash code location in my file or unity native code?

Crash Errors: Native crash at /system/lib/libc.so in /system/lib/libc.so (tgkill+12), /system/lib/libc.so (pthread_kill+32)

Getting following error and app crashes after providing update. Home activity contain listview with 50 images. Please suggest for the resolution.
Build fingerprint: 'Verizon/kltevzw/kltevzw:6.0.1/MMB29M/G900VVRS2DQB2:user/release-keys'
Revision: '14'
ABI: 'arm'
pid: 12922, tid: 12922, name: m.ex.exp >>> com.ex.exp <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
Abort message: 'art/runtime/class_linker.cc:2502] Check failed: dex_cache.Get() != nullptr Failed to allocate dex cache for /data/app/com.google.android.gms-2/base.apk:classes3.dex'
r0 00000000 r1 0000327a r2 00000006 r3 b6f13b84
r4 b6f13b8c r5 b6f13b3c r6 00000001 r7 0000010c
r8 b3fbf800 r9 b3fbde44 sl 9927d3db fp b3fa3480
ip 00000006 sp becac340 lr b6c74c09 pc b6c76ff8 cpsr 40070010
backtrace:
#00 pc 00041ff8 /system/lib/libc.so (tgkill+12)
#01 pc 0003fc05 /system/lib/libc.so (pthread_kill+32)
#02 pc 0001c38b /system/lib/libc.so (raise+10)
#03 pc 00019609 /system/lib/libc.so (__libc_android_abort+34)
#04 pc 0001755c /system/lib/libc.so (abort+4)
#05 pc 003341ad /system/lib/libart.so (_ZN3art7Runtime5AbortEv+228)
#06 pc 000f477b /system/lib/libart.so (_ZN3art10LogMessageD2Ev+2226)
#07 pc 000f0a51 /system/lib/libart.so (_ZN3art7BarrierD2Ev+216)
#08 pc 0035c201 /system/lib/libart.so (_ZN3art10ThreadList4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+188)
#09 pc 00334275 /system/lib/libart.so (_ZN3art7Runtime5AbortEv+428)
#10 pc 000f477b /system/lib/libart.so (_ZN3art10LogMessageD2Ev+2226)
#11 pc 0012fb57 /system/lib/libart.so (_ZN3art11ClassLinker15RegisterDexFileERKNS_7DexFileE+546)
#12 pc 001360b1 /system/lib/libart.so (_ZN3art11ClassLinker26FindClassInPathClassLoaderERNS_33ScopedObjectAccessAlreadyRunnableEPNS_6ThreadEPKcjNS_6HandleINS_6mirror11ClassLoaderEEEPPNS8_5ClassE+704)
#13 pc 001363b7 /system/lib/libart.so (_ZN3art11ClassLinker9FindClassEPNS_6ThreadEPKcNS_6HandleINS_6mirror11ClassLoaderEEE.part.589+522)
#14 pc 00136c7b /system/lib/libart.so (_ZN3art11ClassLinker9FindClassEPNS_6ThreadEPKcNS_6HandleINS_6mirror11ClassLoaderEEE+50)
#15 pc 00139b31 /system/lib/libart.so (_ZN3art11ClassLinker11ResolveTypeERKNS_7DexFileEtNS_6HandleINS_6mirror8DexCacheEEENS4_INS5_11ClassLoaderEEE+160)
#16 pc 0013b8f5 /system/lib/libart.so (_ZN3art11ClassLinker13ResolveMethodERKNS_7DexFileEjNS_6HandleINS_6mirror8DexCacheEEENS4_INS5_11ClassLoaderEEEPNS_9ArtMethodENS_10InvokeTypeE+140)
#17 pc 003fc9e5 /system/lib/libart.so (_ZN3art11ClassLinker13ResolveMethodEPNS_6ThreadEjPNS_9ArtMethodENS_10InvokeTypeE.part.125+68)
#18 pc 00400805 /system/lib/libart.so (artQuickResolutionTrampoline+2636)
#19 pc 000eab23 /system/lib/libart.so (art_quick_resolution_trampoline+34)
#20 pc 049eb5f3 /data/app/com.google.android.gms-2/oat/arm/base.odex (offset 0x3209000)

How to determine what is causing Android / LibStageFright to fail on freeBuffer?

I am running into an issue in my Android app where Galaxy Note 4, Galaxy Edge, and some other devices crash when trying to play H.264 video streamed from a server. I'm fairly certain that the H.264 video is correct, as the same video works using the same decoder on other devices. In addition, the devices that are crashing support the decoder that I'm using.
It doesn't crash in my source code, but it does crash the app. Has anyone ever run into this issue? If so, could you give me some help on what I could do to figure out what is happening? Here's the message I'm getting from the Developer Console in Google Play:
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'Verizon/trltevzw/trltevzw:5.0.1/LRX22C/N910VVRU1BOAF:user/release-keys'
Revision: '12'
ABI: 'arm'
pid: 32467, tid: 32524, name: CodecLooper >>> com.xxxx.xxxx<<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
Abort message: 'frameworks/av/media/libstagefright/ACodec.cpp:1304 CHECK_EQ( mOMX->freeBuffer( mNode, portIndex, info->mBufferID),(status_t)OK) failed: -2147483648 vs. 0'
r0 00000000 r1 00007f0c r2 00000006 r3 00000000
r4 a160fdb8 r5 00000006 r6 00000000 r7 0000010c
r8 00000015 r9 00000000 sl a160fcf4 fp a160fdb0
ip 00007f0c sp a160f6d0 lr b6e9dff5 pc b6ec1998 cpsr 600f0010
backtrace:
#00 pc 00037998 /system/lib/libc.so (tgkill+12)
#01 pc 00013ff1 /system/lib/libc.so (pthread_kill+52)
#02 pc 00014c0f /system/lib/libc.so (raise+10)
#03 pc 00011531 /system/lib/libc.so (__libc_android_abort+36)
#04 pc 0000fcbc /system/lib/libc.so (abort+4)
#05 pc 00007709 /system/lib/libcutils.so (__android_log_assert+88)
#06 pc 000672f9 /system/lib/libstagefright.so (android::ACodec::freeBuffer(unsigned int, unsigned int)+152)
#07 pc 00067589 /system/lib/libstagefright.so (android::ACodec::freeOutputBuffersNotOwnedByComponent()+56)
#08 pc 0006b86f /system/lib/libstagefright.so (android::ACodec::ExecutingState::onOMXEvent(OMX_EVENTTYPE, unsigned int, unsigned int)+210)
#09 pc 0006ba23 /system/lib/libstagefright.so (android::ACodec::BaseState::onOMXMessage(android::sp<android::AMessage> const&)+342)
#10 pc 0006bc71 /system/lib/libstagefright.so (android::ACodec::BaseState::onMessageReceived(android::sp<android::AMessage> const&)+84)
#11 pc 0006c0e1 /system/lib/libstagefright.so (android::ACodec::ExecutingState::onMessageReceived(android::sp<android::AMessage> const&)+652)
#12 pc 00009819 /system/lib/libstagefright_foundation.so (android::AHierarchicalStateMachine::handleMessage(android::sp<android::AMessage> const&)+44)
#13 pc 00061a6f /system/lib/libstagefright.so
#14 pc 0000a5a3 /system/lib/libstagefright_foundation.so (android::ALooperRoster::deliverMessage(android::sp<android::AMessage> const&)+166)
#15 pc 00009f25 /system/lib/libstagefright_foundation.so (android::ALooper::loop()+220)
#16 pc 0000ef11 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+112)
#17 pc 0000ea81 /system/lib/libutils.so
#18 pc 000137bb /system/lib/libc.so (__pthread_start(void*)+30)
#19 pc 0001189b /system/lib/libc.so (__start_thread+6)

SIGILL fault when running program

New one to me for errors signal 4 SIGILL. When I take a look at the tombstone file and type int he address I get ?? i.e.
Here is someof the tombstone:
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'generic/sdk/generic/:2.2/FRF91/43546:eng/test-keys'
pid: 2083, tid: 2089 >>> com.activities <<<
signal 4 (SIGILL), fault addr 00016b10
r0 00000006 r1 8086caa4 r2 8086fbcf r3 0006b60b
r4 80887fc4 r5 0006b60b r6 00000000 r7 00000000
r8 80813b00 r9 4e23a038 10 00000019 fp 0011d230
ip 808880f8 sp 47bcbca8 lr 8083a8d1 pc 00016b10 cpsr 20000010
#00 pc 00016b10 [heap]
#01 pc 0003a8ce /system/lib/libdvm.so
#02 pc 0003d02c /system/lib/libdvm.so
#03 pc 0001890c /system/lib/libdvm.so
#04 pc 0001e8c4 /system/lib/libdvm.so
#05 pc 0001d790 /system/lib/libdvm.so
#06 pc 0005408e /system/lib/libdvm.so
#07 pc 0005bde2 /system/lib/libdvm.so
#08 pc 00018714 /system/lib/libdvm.so
#09 pc 0001e8c4 /system/lib/libdvm.so
#10 pc 0001d790 /system/lib/libdvm.so
#11 pc 00053eec /system/lib/libdvm.so
#12 pc 00054102 /system/lib/libdvm.so
#13 pc 0004825a /system/lib/libdvm.so
#14 pc 0001103c /system/lib/libc.so
#15 pc 00010b20 /system/lib/libc.so
I go my android-ndk-r7\toolchains\arm-linux-androideabi-4.4.3\prebuilt\windows\bin directory using command window, type in this command and get no function at all.
arm-linux-androideabi--addr2line.exe -C -f -e libdvm.so 0003a8ce
and it returns
??
??:0
I seem to remember this working before...and yes I have the libdvm.so in the same working directory.
Well apparently this occurs only when I test it on the 2.2 emulator. On a myTouch 3G phone the code never crashes. Must be a pointer memory issue or not enough RAM allocated for simulator.

Categories

Resources