Replies: 1 comment
-
|
已解决 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
我的本意是希望hook exit和_exit监控用户主动退出的行为,但是会出现偶发的crash情况,查看堆栈会发现crash点是从libc.so的__strcmp_aarch64出发,然后到析构函数~BytehookStackScope()和代理方法,我的代理方法是这样写的:
void exit_proxy_auto(int _status){ BYTEHOOK_STACK_SCOPE(); set_normal_exit(); BYTEHOOK_CALL_PREV(exit_proxy_auto, _status); }set_normal_exit内部是文件操作和字符串操作。
我的疑问点是,我可以确定并没有调用init方法(我在init方法调用做了打印和产生文件操作来确保方法并没有走)。为什么还会崩溃到代理方法呢?
我使用的是项目编译的方式,不是直接使用编译好的so文件,另外由于cmake并没有和项目使用的版本那么高级,所以编译时去掉了部分cmake语法,这个会是影响的原因吗?
如果项目内我引入的其他插件也使用到bhook,会对其造成影响吗?
Beta Was this translation helpful? Give feedback.
All reactions