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

Interceptor.replace for dlopen bug #13

Open
SeeFlowerX opened this issue Dec 5, 2021 · 5 comments
Open

Interceptor.replace for dlopen bug #13

SeeFlowerX opened this issue Dec 5, 2021 · 5 comments

Comments

@SeeFlowerX
Copy link

replace for dlopen will cause some bug like "Waiting for a blocking GC ProfileSaver"

modifiy to attach implementation can solve this problem, but I am not sure will it cause other bug...

patch code

video proof

@SeeFlowerX
Copy link
Author

SeeFlowerX commented Dec 5, 2021

"Waiting for a blocking GC ProfileSaver" cause 100% CPU usage, then APP crash

image

@chame1eon
Copy link
Owner

Hi,

Thanks very much for showing me this issue. I wasn't aware using the Interceptor.replace was causing issues with "GC ProfileSaver". The reason I used Interceptor.replace instead of Interceptorattach is due to issues on Android > 7 hooking dlopen (from this issue on Frida) but that may be fixed now.

Have you tested your change on a device newer than Android 7? If the change works on those newer devices I am very happy to incorporate the changes.

Thanks

@SeeFlowerX
Copy link
Author

I test on Pixel 4 Android 11.

not sure whether this problem has been solved, I suggest add a option to set by user for better compatibility.

@chame1eon chame1eon reopened this Jan 4, 2022
@chame1eon
Copy link
Owner

Hi,

Sorry for taking so long to get back to you on this. Can I check why you closed the issue? I was going to say your suggestion sounded like a good one so I was going to look to implement it. Before I do that I want to make sure you are still having the same problems.

Thanks

@haikejishu
Copy link

haikejishu commented Mar 26, 2023

I have faced the same problem.
Buf when I modifiy to attach implementation . That solve this problem.

frida 16.0.11
Redmi K30 Android10
jnitrace 3.3.0

chame1eon/jnitrace#34

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

3 participants