Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

集成whale的native hook,hook了art的defineClass方法,x86会报地址错误异常,arm64正常hook #52

Open
Soon-gz opened this issue Jan 14, 2020 · 0 comments

Comments

@Soon-gz
Copy link

Soon-gz commented Jan 14, 2020

真机arm64是vivo 5.1.1,x86是逍遥模拟器5.1.1 ,把whale编译静态库,链接到动态库,按照demo的hook libc.so的getenv,方法在x86和arm64都正常拦截到了,hook art.so的defineClass方法时,arm64正常拦截,但x86会报A/libc: Fatal signal 11 (SIGSEGV), code 2, fault addr 0xa3b2ab33 in tid 10899。望大佬有空修复一下,膜拜,对了,调试时断点进了自定义方法,说明地址跳转没问题,但是抛出了一个信号,SIGSEGV (signal SIGSEGV: address access protected (fault address: 0xa3b2ab33)),不知道是不是内存权限问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant