Improve (safe) .pyc disassembly
The upstream issue that was reported to cpython in https://github.com/python/cpython/issues/121112
contain the Testcase.zip file:
https://github.com/user-attachments/files/16023750/Testcase.zip
That inside have files tortoisehg-6.6.3_0.darwin_23.noarch.tbz2
and tortoisehg-6.6.3_0.darwin_17.noarch.tbz2
that comparing them with diffoscope will cause segfault.
There are multiple .pyc
files inside the archives at /opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/tortoisehg/hgqt/__pycache__
directory that cause segfault when comparing them with diffoscope.
For example the files:
- guess.cpython-311.opt-1.pyc
- guess.cpython-311.pyc
- phabreview.cpython-311.opt-1.pyc
- phabreview.cpython-311.pyc
- repowidget.cpython-311.opt-1.pyc
- repowidget.cpython-311.pyc
- sync.cpython-311.pyc
- sync.cpython-311.opt-1.pyc
EDIT 2024-08-13: Renamed from _segfaults when comparing some .pyc files, from upstream cpython issue _https://github.com/python/cpython/issues/121112 by @lamby.