-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
[BUG] Need more details on frida uprobe attach failures #191
Comments
Seems like this is a known issue with short functions in Frida. Alas. See frida/frida-gum#273 (comment). If I make the function
Here is the original int __attribute__((noinline)) foo(int a) {
return a + 1;
} With 0000000000401126 <foo>:
foo():
401126: 55 push rbp
401127: 48 89 e5 mov rbp,rsp
40112a: 89 7d fc mov DWORD PTR [rbp-0x4],edi
40112d: 8b 45 fc mov eax,DWORD PTR [rbp-0x4]
401130: 83 c0 01 add eax,0x1
401133: 5d pop rbp
401134: c3 ret But with
And for this short |
I am observing similar behaviour in |
@Officeyutong fyr |
Trying inserting some nop instructions to make the function body larger and have a test |
so, @agentzh had issues when function was short and he mentioned a link which highlighted it is a frida issue, for my issue where |
I'm getting the following error with uprobe + llvm jit:
How can I get more details and reasons for the failure? The 0x401126 address is correct for the
foo()
function in the target programa.out
:It always fails on my side (but just succeeded for only once). How to troubleshoot this further?
The text was updated successfully, but these errors were encountered: