zeropointdynamics / zelos

A comprehensive binary emulation and instrumentation platform.
GNU Affero General Public License v3.0
408 stars 50 forks source link

Error And Fix : 'NoneType' object has no attribute 'static_symbols' #144

Open BuJiang5De opened 2 years ago

BuJiang5De commented 2 years ago

Describe the bug The type error occurred in the check of the variable. The interpreter is assigned the empty string (“”)when runing my example. But the code uses “None Type” to check the interpreter. It will come into “IF” unexpectedly. And it will cause NoneType Error.

To Reproduce Error: File "\zelos_test\venv\lib\site-packages\zelos\ext\platforms\linux\parse.py", line 107, in parse for symbol in binary.static_symbols: AttributeError: 'NoneType' object has no attribute 'static_symbols'

Fix Modify the file:ext\platforms\linux\parse.py if (interpreter is not None): to if (interpreter is not None) and (interpreter is not ""):

XD

valakuzhyk commented 1 year ago

145 Working on getting builds up again