frida / frida-java-bridge

Java runtime interop from Frida
324 stars 120 forks source link

enable_spawn_gating occasionally crashes #310

Open pandasauce opened 7 months ago

pandasauce commented 7 months ago

This has been the case for at least a few years. Every 100 times or so, enabling spawn gating causes a soft-reboot:

Traceback (most recent call last):
[...]
    self.fridaDevice.enable_spawn_gating()
  File "/usr/local/lib/python3.9/site-packages/frida/core.py", line 86, in wrapper
    return f(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/frida/core.py", line 916, in enable_spawn_gating
    self._impl.enable_spawn_gating()
frida.TransportError: timeout was reached

Steps to reproduce

  1. Start frida-server
  2. Get a handle to Frida USB device
  3. Set child and spawn gating handlers
  4. Enable spawn gating
  5. If it didn't trigger the issue, kill the app, wait a few seconds and repeat