jmpews / Dobby

a lightweight, multi-platform, multi-architecture hook framework.
Apache License 2.0
3.93k stars 809 forks source link

Android 8.1 armeabi-v7a hook libc function "getaddrinfo" crash #83

Closed guozhongrui000 closed 4 years ago

guozhongrui000 commented 4 years ago

2020-02-27 10:16:24.148 4297-4358/com.test E/crash_native: signal 11 (Address not mapped to object) at address pc=0x0 pc=0xfda4 module=/data/app/com.test-gPf_WL1BuPaNjGe3ZCdL5g==/lib/arm/libw.so (_ZN22LiteCollectionIterator14withCollectionEPK14LiteCollection+0x23) pc=0x1162b module=/data/app/com.test-gPf_WL1BuPaNjGe3ZCdL5g==/lib/arm/libw.so function=_Z23gen_thumb_relocate_codePvPijj:0x14e pc=0xff27 module=/data/app/com.test-gPf_WL1BuPaNjGe3ZCdL5g==/lib/arm/libw.so function=_ZN16InterceptRouting7PrepareEv:0x2e pc=0x103e1 module=/data/app/com.test-gPf_WL1BuPaNjGe3ZCdL5g==/lib/arm/libw.so function=_ZN28FunctionInlineReplaceRouting8DispatchEv:0xc pc=0xfbe5 module=/data/app/com.test-gPf_WL1BuPaNjGe3ZCdL5g==/lib/arm/libw.so function=DobbyHook:0x80 pc=0xdad5 module=/data/app/com.test-gPf_WL1BuPaNjGe3ZCdL5g==/lib/arm/libw.so function=Java_com_test_dns_DnsNativeHook_nativeInit:0x3c

guozhongrui000 commented 4 years ago

sorry, it's my fault. I test armeabi-v7a app on arm64 device.