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

Application crash while hooking String.intern() #21

Open
razaina opened this issue Jul 13, 2016 · 1 comment
Open

Application crash while hooking String.intern() #21

razaina opened this issue Jul 13, 2016 · 1 comment

Comments

@razaina
Copy link

razaina commented Jul 13, 2016

Hi Colin

i was trying to hook String.intern() but it made the application crash with a SEGV_MAPERR while doing (*env)->CallObjectMethod(...).

#define SEGV_MAPERR (__SI_FAULT|1) /* address not mapped to object */

The strmon example works properly so I do not understand what's going on.

Below is a screenshot of the crash log from logcat. I highlighted in green my lib that has been injected.

pbm

The offset 0x000017bc refers to the line 92.

pbm2

Do you have an idea of what could cause this?

@razaina
Copy link
Author

razaina commented Jul 13, 2016

This solution #8 solved the issue for now.

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

1 participant