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

bh_elf_parse_dynamic接口内部有try cach,但还是发生crash #105

Open
huichengtan opened this issue Nov 1, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@huichengtan
Copy link

bytehook Version

1.0.9

Android OS Version

14.0,13.0,12.0,11.0

Android ABIs

arm64-v8a

Device Manufacturers and Models

V2204, SM-A245F,V2111

Describe the Bug

企业微信截图_9dc719ac-f02f-4813-9da5-0afbe3157302 这段代码有try catch,但是还是发生crash image 调用入口: image
@huichengtan huichengtan added the bug Something isn't working label Nov 1, 2024
@caikelun
Copy link
Member

caikelun commented Nov 4, 2024

如果是自己修改过bytehook的源码,建议确认一下初始化阶段bytesig的初始化是否有走到。
另外,可以在崩溃时收集一下各个signal number对应的signal handler地址,在预期的情况下,sigsegv和sigbus的signal handler应该指向bytehook(或者是shadowhook之类也使用了bytesig的so库),如果signal handler指向了崩溃捕获的so库(比如bugly)的话,这一般意味着bytehook初始化比崩溃捕获so更早,这种情况下bytesig的signal handler会被抢走,bytesig机制也会失效。

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