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

更新编译libffi最新版本静态库之后,必现iOS15系统在方法替换的时候crash #21

Open
Sunny-guangge opened this issue Mar 11, 2022 · 2 comments
Assignees

Comments

@Sunny-guangge
Copy link

image

@Sunny-guangge Sunny-guangge changed the title 更新编译libffi最新版本静态库之后,必现在方法替换的时候crash 更新编译libffi最新版本静态库之后,必现iOS15系统在方法替换的时候crash Mar 11, 2022
@SilverFruity
Copy link
Owner

SilverFruity commented Mar 23, 2022

CEF2EFD979397B71E66A27FBB778B9A2
需要调整最新的 libffi 代码,如上面两个红框内部的。需要对 vm memory 的权限进行修改,但是,如果修改权限失败,仍然会面临同样的问题,后续考虑在 OCRunner 中进行判断处理,如果 allocate trampline 失败,热修复将直接失效。

@SilverFruity
Copy link
Owner

但是这个方法有个问题,线上环境并不支持 exe 的执行权限

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

2 participants