问题
I am getting this weird crash on android
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 0 >>> com.oimvo.discdj <<<
backtrace:
#00 pc 000000000001d050 /data/app/com.oimvo.discdj-2/lib/arm64/libavfilter.7.11.101.so (av_fastresampler_resample_s16+1944)
#01 pc 000000000001c930 /data/app/com.oimvo.discdj-2/lib/arm64/libavfilter.7.11.101.so (av_fastresampler_resample_s16+120)
and another similar crash
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 0 >>> com.oimvo.discdj <<<
backtrace:
#00 pc 0000000000083770 /system/lib/egl/libGLES_mali.so
#01 pc 0000000000096ac0 /system/lib/egl/libGLES_mali.so
#02 pc 0000000000095878 /system/lib/egl/libGLES_mali.so
#03 pc 0000000000095f14 /system/lib/egl/libGLES_mali.so
#04 pc 000000000003c870 /system/lib/egl/libGLES_mali.so
#05 pc 000000000003cbc8 /system/lib/egl/libGLES_mali.so
#06 pc 000000000005df6c /system/lib/egl/libGLES_mali.so (glDeleteFramebuffers+68)
#07 pc 0000000000021b2b /system/lib/libhwui.so
#08 pc 000000000005f873 /system/lib/libhwui.so
#09 pc 00000000000236ab /system/lib/libhwui.so
#10 pc 000000000002334b /system/lib/libhwui.so
#11 pc 0000000000024d0f /system/lib/libhwui.so
#12 pc 0000000000028105 /system/lib/libhwui.so (_ZN7android10uirenderer12renderthread12RenderThread10threadLoopEv+80)
#13 pc 000000000000e349 /system/lib/libutils.so (_ZN7android6Thread11_threadLoopEPv+140)
#14 pc 0000000000064229 /system/lib/libandroid_runtime.so (_ZN7android14AndroidRuntime15javaThreadShellEPv+80)
#15 pc 0000000000047063 /system/lib/libc.so (_ZL15__pthread_startPv+22)
#16 pc 0000000000019ded /system/lib/libc.so (__start_thread+6)
both are - signal 11 (SIGSEGV), code 1 (SEGV_MAPERR)
first crash is happening in my native code, second is happening somewhere else
I have corrected all possible array map errors, and currently i don't have any errors of mapping
BUT HERE I FIND THE PID AND TID "0" ZERO WHICH IS SOMETHING I CANT UNDERSTAND
Please someone explain me why is the pid
and tid
0 reported in the crash, i did checked the functions for any array mapping errors
, but i guess here the error is related to process/thread id
.
I checked all the signal 11 (SIGSEGV), code 1 (SEGV_MAPERR)
questions on stackoverflow, i also encountered SEGV_MAPERR
earlier but it was related to some fault address, but here this one is different, i get no fault address here i only suspect that the pid
/tid
maybe causing this error.
Any help/suggestion will be great. Thanks in advance
Edit: i just now noted that i have other crashes too with pid: 0, tid: 0 and maybe most android 7.0,7.1, Please let me know if someone needs more error logs, i am still confused why the pid and tid is zero
Edit: Please try to understand the question before answering, and let me know if someone needs more info
来源:https://stackoverflow.com/questions/48355999/weird-native-crash-pid-0-tid-0-signal-11-sigsegv-code-1-segv-maperr