frida / frida-tools

Frida CLI tools
Other
354 stars 98 forks source link

ValueError raised by frida-trace on latest versions #164

Closed FoamyGuy closed 1 month ago

FoamyGuy commented 1 month ago

On both version 13.2.0 and 13.1.0 of frida-tools when I attempt to run frida-trace with:

frida-trace -U -j 'io.hextree.*!*' FridaTarget

It results in this exception traceback:

Instrumenting...                                                        
Exception in thread Thread-1 (_run):
Traceback (most recent call last):
  File "/usr/lib/python3.12/threading.py", line 1073, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.12/threading.py", line 1010, in run
    self._target(*self._args, **self._kwargs)
  File "/path/to/venv_hextree_learning/lib/python3.12/site-packages/frida_tools/reactor.py", line 70, in _run
    work()
  File "/path/to/hextree_learning/venv_hextree_learning/lib/python3.12/site-packages/frida_tools/tracer.py", line 598, in <lambda>
    lambda: self._on_message(message, data, ui)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/path/to/hextree_learning/venv_hextree_learning/lib/python3.12/site-packages/frida_tools/tracer.py", line 656, in _on_message
    handled = self._try_handle_message(*params)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/path/to/hextree_learning/venv_hextree_learning/lib/python3.12/site-packages/frida_tools/tracer.py", line 685, in _try_handle_message
    name, display_name, address = member_name
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: not enough values to unpack (expected 3, got 2)

And the tracing is not active, if I click around in the app there are no further messages output beyond this exception message.

I went back to version frida-tools==13.0.4 and found that on that version there is no exception and the tool seems to work properly.

I am using Ubuntu 24.04 and Python 3.12

oleavr commented 1 month ago

Thanks for reporting! Fixed in frida-tools 13.2.1, which was just released.