iqiyi / xHook

🔥 A PLT hook library for Android native ELF.
Other
4.05k stars 752 forks source link

xh_core_refresh_impl内发生SIGSEGV(SEGV_MAPERR)和SIGSEGV(SEGV_ACCERR) #60

Open PhantomQi opened 4 years ago

PhantomQi commented 4 years ago

机型分布在Android-7~9之间,品牌没有特定趋势 调用栈形如:

SIGSEGV(SEGV_MAPERR或SEGV_ACCERR):
#00 pc 000026a2 /data/app/.../lib/arm/libxhook.so [armeabi-v7a::88135f635f9a3c8cbb1c80f2be8fed38]
#01 pc 000024f9 /data/app/.../lib/arm/libxhook.so [armeabi-v7a::88135f635f9a3c8cbb1c80f2be8fed38]
#02 pc 000024bb /data/app/.../lib/arm/libxhook.so [armeabi-v7a::88135f635f9a3c8cbb1c80f2be8fed38]
#03 pc 0000218f /data/app/.../lib/arm/libxhook.so [armeabi-v7a::88135f635f9a3c8cbb1c80f2be8fed38]
#04 pc 00001fb9 /data/app/.../lib/arm/libxhook.so [armeabi-v7a::88135f635f9a3c8cbb1c80f2be8fed38]
#05 pc 00048673 /system/lib/libc.so (__pthread_start(void*)+22) [armeabi-v7a::da900cbc8a0b6c6f5716c78479e8b05e]
#06 pc 0001accb /system/lib/libc.so (__start_thread+34) [armeabi-v7a::da900cbc8a0b6c6f5716c78479e8b05e]

根据调用栈推测栈#00是xh_core_refresh_impl 这里利用xhook勾住了malloc等一系列nativeheap函数 希望能找到问题解决办法,或可以尝试的解决手段 补充说明: