frida / frida-core

Frida core library intended for static linking into bindings
https://frida.re
Other
614 stars 195 forks source link

Linux hang on attach #4

Closed tel0seh closed 10 years ago

tel0seh commented 10 years ago

uname -a : Linux Relentless 3.12-1-amd64 #1 SMP Debian 3.12.9-1 (2014-02-01) x86_64 GNU/Linux

the attach blocks on a futex() syscall, the end of an strace output is available here:

http://pastebin.com/dnmWyucc

behaviour occurs using both frida-trace and python bindings.

guillaume-uH57J9 commented 10 years ago

Using Debian and a newer kernel, the attachment fails, but for me it makes the target application crash.

The sysctl option was set according to Frida documentation.

Linux _____ 3.13-1-amd64 #1 SMP Debian 3.13.10-1 (2014-04-15) x86_64 GNU/Linux

Frida output: $ frida-trace xeyes Failed to attach: remote_call PTRACE_CONT wait failed: 0

Target application crashes with: $ xeyes Illegal instruction

Guillaume

oleavr commented 10 years ago

Thanks guys. @guillaume-uH57J9 which Debian release and version of Frida are you running?

guillaume-uH57J9 commented 10 years ago

Hi,

I am using:

Guillaume

oleavr commented 10 years ago

@guillaume-uH57J9 Excellent. I will try to reproduce in a VM and let you know how it goes.

Thanks!

oleavr commented 10 years ago

@guillaume-uH57J9 To clarify, this is a 64-bit system, right?

guillaume-uH57J9 commented 10 years ago

Yes, amd64 Le 11 mai 2014 21:46, "Ole André Vadla Ravnås" notifications@github.com a écrit :

@guillaume-uH57J9 https://github.com/guillaume-uH57J9 To clarify, this is a 64-bit system, right?

— Reply to this email directly or view it on GitHubhttps://github.com/frida/frida-core/issues/4#issuecomment-42780866 .

oleavr commented 10 years ago

This issue should now finally be resolved. The fix will be included in 1.4.1.

Thanks for your patience guys!