You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to handle lowercase thread state indicator on Linux #3
The following example code makes Frida crash with assertation error:
importfridapid=frida.spawn("/bin/ls")
process=frida.attach(pid)
script=process.session.create_script(""" Process.enumerateThreads({ onMatch:function onMatch(thread){ send("onMatch"); }, onComplete:function onComplete(){ send("onComplete"); } });""")
script.load() # This is where we crash
Error message:
ERROR:../../../../frida-gum/gum/backend-linux/gumprocess-linux.c:658:gum_thread_state_from_proc_status_character: code should not be reached
System info:
$ uname -a
Linux buttercup 3.2.0-55-generic #85-Ubuntu SMP Wed Oct 2 12:29:27 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
The problem is that gum_thread_state_from_proc_status_character() is unable to handle tracing-stop state of a thread if it is indicated in lowercase ('t').
I don't know if using lowercase status indicator is normal, but looks like major distros work this way so a case conversion could probably help a lot of users.
Activity
Merge pull request frida#3 from meme/interceptor