Native crash in libimageproc
ened opened this issue · 3 comments
ened commented
Fatal signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x6e317ef000 in tid 20821 (Thread-5), pid 20535 (.company.app)
#00 pc 000000000005442c /data/app/~~XsWP1OGZc2n8-MKcEzQIaQ==/com.company.app-gjks4GWNvIB1qk2_wAGt1w==/base.apk!libImageProc.so (offset 0x80000) (processimage+648) (BuildId: 7e4ede6ccbc86183c879de1cddbbcd98ccd77908)
#01 pc 0000000000054914 /data/app/~~XsWP1OGZc2n8-MKcEzQIaQ==/com.company.app-gjks4GWNvIB1qk2_wAGt1w==/base.apk!libImageProc.so (offset 0x80000) (Java_com_github_niqdev_mjpeg_MjpegInputStreamNative_pixeltobmp+84) (B
uildId: 7e4ede6ccbc86183c879de1cddbbcd98ccd77908)
#02 pc 000000000013ced4 /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+148) (BuildId: aeb876e57f112c8539df5053f2da77d4)
#03 pc 000000000207c27c /memfd:jit-cache (deleted) (offset 0x2000000) (com.github.niqdev.mjpeg.MjpegInputStreamNative.readMjpegFrame+908)
#04 pc 00000000020820f8 /memfd:jit-cache (deleted) (offset 0x2000000) (com.github.niqdev.mjpeg.MjpegViewNative$MjpegViewThread.run+536)
#05 pc 000000000013387c /apex/com.android.art/lib64/libart.so (art_quick_osr_stub+60) (BuildId: aeb876e57f112c8539df5053f2da77d4)
#06 pc 000000000033b1b8 /apex/com.android.art/lib64/libart.so (art::jit::Jit::MaybeDoOnStackReplacement(art::Thread*, art::ArtMethod*, unsigned int, int, art::JValue*)+344) (BuildId: aeb876e57f112c8539df5053f2da77d4)
#07 pc 000000000067c570 /apex/com.android.art/lib64/libart.so (MterpMaybeDoOnStackReplacement+208) (BuildId: aeb876e57f112c8539df5053f2da77d4)
#08 pc 0000000000132350 /apex/com.android.art/lib64/libart.so (MterpHelpers+240) (BuildId: aeb876e57f112c8539df5053f2da77d4)
#09 pc 000000000000420a [anon:dalvik-classes7.dex extracted in memory from /data/app/~~XsWP1OGZc2n8-MKcEzQIaQ==/com.company.app-gjks4GWNvIB1qk2_wAGt1w==/base.apk!classes7.dex] (com.github.niqdev.mjpeg.MjpegViewNati
ve$MjpegViewThread.run+674)
#10 pc 0000000000303e24 /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.7582775073154344913)+268) (Bu
ildId: aeb876e57f112c8539df5053f2da77d4)
#11 pc 000000000065cac4 /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+760) (BuildId: aeb876e57f112c8539df5053f2da77d4)
#12 pc 000000000013cff8 /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: aeb876e57f112c8539df5053f2da77d4)
#13 pc 0000000000133564 /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: aeb876e57f112c8539df5053f2da77d4)
#14 pc 00000000001a8a6c /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200) (BuildId: aeb876e57f112c8539df5053f2da77d4)
#15 pc 0000000000548990 /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithJValues<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, jvalue co
nst*)+460) (BuildId: aeb876e57f112c8539df5053f2da77d4)
#16 pc 00000000005970ec /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallback(void*)+1288) (BuildId: aeb876e57f112c8539df5053f2da77d4)
#17 pc 00000000000af880 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+64) (BuildId: 47a9ba0d54d9614053e13adab1207062)
#18 pc 00000000000500d0 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 47a9ba0d54d9614053e13adab1207062)
Happens once in a while - still trying to build a repro case.
niqdev commented
Hi, I'm not actively developing this lib, feel free to open a pr to fix the issue and I'll be more than happy to review it and merge it.
Thanks