decompyle failure
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- python
- Domain
- reverse-engineering
Research direction
Start with the decompyle3/bin/decompile.py entry point and reproduce the parse error using the attached logh_utils.pyc file and the Python 3.10.2 environment described. Compare the failing output with the included uncompyle6 output; done means decompyle3 successfully decompiles this source instead of stopping at the parse error.
Written by the indexing model from the issue text.
Description
Description
Decompyle3 failed at decompiling some code, where uncompyle6 was successful.
That's too bad because the generated code is of higher quality.
How to Reproduce
See attached sources:
logh_utils.zip
I included the pyc file, the uncompyle3 output, the decompyle6 output.
(.env) C:\work\logh_home\log_enhancer.exe_extracted>python ..\python-decompile3\decompyle3\bin\decompile.py C:\work\logh_home\log_enhancer.exe_extracted\src\logh_utils.pyc 1>C:\work\logh_home\log_enhancer.exe_extracted\src\logh_utils.py
# file C:\work\logh_home\log_enhancer.exe_extracted\src\logh_utils.pyc
# Deparsing stopped due to parse error
Output Given
def sub_interp_node_to_string--- This code section failed: ---
L. 82 0 BUILD_LIST_0 0
2 STORE_FAST 'ret'
L. 83 4 LOAD_STR '%s %s'
6 LOAD_FAST 'prefix'
...
(see attached decompiled py)
Environment
(.env) C:\work\logh_home>pip list
Package Version Location
------------ ---------- -----------------------------------
click 8.1.7
colorama 0.4.6
decompyle3 3.9.1.dev0 c:\work\logh_home\python-decompile3
pip 21.2.4
setuptools 58.1.0
six 1.16.0
spark-parser 1.8.9
uncompyle6 3.9.0
xdis 6.1.0.dev0
(.env) C:\work\logh_home>python --version
Python 3.10.2
Platform : Windows 10 22H2
Workarounds
Use uncompyle6
Priority
Up to you
- Dominant language
- Python
- Stars
- 1.3k
- Forks
- 167
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rocky/python-decompile3
-
Further information is needed
Difficulty 4/5 3-5 days Newbie friendliness 25/100
rocky/python-decompile3#176 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
rocky/python-decompile3#172 · 2 comments · 1 reaction ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
rocky/python-decompile3#170 · 2 comments ·
-
bug Bytecode is large and needs narrowing Python 3.8
Difficulty 4/5 3-5 days Newbie friendliness 35/100
rocky/python-decompile3#166 · 1 comment ·
-
insufficient bug report
Difficulty 5/5 Over a week Newbie friendliness 15/100
rocky/python-decompile3#161 · 1 comment ·
All issues in rocky/python-decompile3
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
zostera/django-bootstrap4#894 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
use-agent-os/agent-os#3276 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
zephyrproject-rtos/zephyr#119726 ·
-
area/auth bug comp/agent P3 platform/discord type/security
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
NousResearch/hermes-agent#117848 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
zilliztech/memsearch#759 ·