Skip to content
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

argument of type 'NoneType' is not iterable #5

Closed
onegithuber opened this issue Oct 15, 2019 · 7 comments
Closed

argument of type 'NoneType' is not iterable #5

onegithuber opened this issue Oct 15, 2019 · 7 comments

Comments

@onegithuber
Copy link

Traceback (most recent call last):
File "/Users/anaconda3/env/lib/python3.6/site-packages/frida-12.6.11-py3.6-macosx-10.6-intel.egg/frida/core.py", line 298, in _on_message
callback(message, data)
File "/Users/anaconda3/envs//lib/python3.6/site-packages/jnitrace/jnitrace.py", line 438, in on_message
self._print_backtrace(payload["backtrace"])
File "/Users/anaconda3/envs/lib/python3.6/site-packages/jnitrace/jnitrace.py", line 288, in _print_backtrace
max_len, max_name, size = self._calculate_backtrace_lengths(backtrace)
File "/Users/anaconda3/envs/lib/python3.6/site-packages/jnitrace/jnitrace.py", line 270, in _calculate_backtrace_lengths
b_t["module"]["name"], b_t["symbol"]["name"]
File "/Users/anaconda3/envs/lib/python3.6/site-packages/jnitrace/jnitrace.py", line 242, in _create_backtrace_symbol
if "+" not in symbol_name:
TypeError: argument of type 'NoneType' is not iterable

@chame1eon
Copy link
Owner

Hi. Thanks for your bug report! I have had a look at the issue and have pushed a fix to PyPi. Please try version 2.2.2 and see if that works for you. I was not able to reproduce the error so if you can send me the application you were testing with I can try to make a better fix. Thanks.

@onegithuber
Copy link
Author

Hi. Thanks for your bug report! I have had a look at the issue and have pushed a fix to PyPi. Please try version 2.2.2 and see if that works for you. I was not able to reproduce the error so if you can send me the application you were testing with I can try to make a better fix. Thanks.

the apk is too large,you can download apk by this url.and the so file name is libhellfire.so
https://play.google.com/store/apps/details?id=com.grabtaxi.passenger
Thanks for you work!

@chame1eon
Copy link
Owner

Thanks. Will download and try with grab taxi. Did the update I pushed yesterday work for you?

@onegithuber
Copy link
Author

yes ,it did.
but the symbol is unknowed.

@chame1eon
Copy link
Owner

Okay, at least it is running now. I will take a look and see if I can figure out why the symbol was not resolving for that application you were using. It will be a couple of weeks until I have access to an Android ARM device to test with.

@chame1eon
Copy link
Owner

Thanks for sending your test app, I have now tried it on an Android phone testing with the hellfire binary. I found out that the hellfire library does not have DebugSymbols for those functions in the jnitrace backtrace. As such, jnitrace cannot output the symbol information. I have, however, improved the output of jnitrace so that it will now show you the relative address for the backtrace function, rather than "unknown", so that you can go and take a look at it in a dissembler. Thanks for your bug report! Closing this as the crash is resolved.

@chame1eon
Copy link
Owner

Oh and those improvements to the backtrace output are available in version 2.2.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants