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

为什么有时会报这个问题 #66

Open
shuajinanhai opened this issue May 14, 2024 · 1 comment
Open

为什么有时会报这个问题 #66

shuajinanhai opened this issue May 14, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@shuajinanhai
Copy link

ShadowHook Version

1.0.9

Android OS Version

14

Android ABIs

arm64-v8a

Device Manufacturers and Models

小米6 14系统

Describe the Bug

shadowhook: hook_func_addr(0x770af72820, 0x73da265a04) ...
task: get dlinfo by target addr: target_addr 0x770af72820, sym_name (NULL), sym_sz 0, load_bias 0, pathname (NULL)
shadowhook: hook_func_addr(0x770af72820, 0x73da265a04) FAILED. 22 - Find dlinfo failed
也没进hook函数,游戏也没崩溃
为啥会报这个问题呢

@shuajinanhai shuajinanhai added the bug Something isn't working label May 14, 2024
@caikelun
Copy link
Member

hook_func_addr 函数中的 func_addr 参数必须指向内存中某个 ELF 中的某个函数的头部地址。

这个信息说明:通过 0x770af72820 这个地址无法获取到它对应的 ELF 信息(指“通过dladdr获取的 dli_fbase),也可以理解为 0x770af72820 无法对应到内存中的某个 ELF。你可以打印 maps 信息对应一下。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants