JonathonReinhart / staticx

Create static executable from dynamic executable

Home Page:https://staticx.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

run failed in python3.8 envrionment,pyinstaller 5.7.0

dajima opened this issue · comments

commented
DEBUG:root:Running ['patchelf', '--no-default-lib', '/tmp/staticx-prog-evfic9j6']
Assertion failed: splitIndex != -1 (patchelf.cc: shiftFile: 504)
Traceback (most recent call last):
  File "/usr/local/bin/staticx", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/dist-packages/staticx/__main__.py", line 49, in main
    generate(args.prog, args.output,
  File "/usr/local/lib/python3.8/dist-packages/staticx/api.py", line 328, in generate
    gen.generate(output=output)
  File "/usr/local/lib/python3.8/dist-packages/staticx/api.py", line 123, in generate
    self._fixup_prog()
  File "/usr/local/lib/python3.8/dist-packages/staticx/api.py", line 293, in _fixup_prog
    patch_elf(self.tmpprog, interpreter=new_interp, rpath=new_rpath,
  File "/usr/local/lib/python3.8/dist-packages/staticx/elf.py", line 245, in patch_elf
    tool_patchelf.run_check('--no-default-lib', path)
  File "/usr/local/lib/python3.8/dist-packages/staticx/elf.py", line 78, in run_check
    raise ToolError(self.cmd, '{} returned {}'.format(self.cmd, rc))
staticx.errors.ToolError: patchelf returned -6

Hi, please include all debug output, not just the cherry-picked portion that you think is relevant. In particular, I'm looking for the patchelf version.

This is an internal bug with patchelf, not staticx, and it should be reported upstream. We can leave this bug open to track and severe as a pointer for future afflicted users.

commented

This is all the debug info, patchelf version is 0.17.2, I try to recompile latest patchelf version, still report same error:
INFO:root:Using XZ BCJ filter FILTER_X86
INFO:root:Program interpreter: /lib64/ld-linux-x86-64.so.2
DEBUG:root:Running ['patchelf', '--remove-rpath', '/tmp/staticx-prog-53a8isf7']
DEBUG:root:Running ['patchelf', '--set-interpreter', 'iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii', '--set-rpath', 'rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr', '--force-rpath', '/tmp/staticx-prog-53a8isf7']
DEBUG:root:Running ['patchelf', '--no-default-lib', '/tmp/staticx-prog-53a8isf7']
INFO:root:Opened PyInstaller archive!
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/_cffi_backend.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/bcrypt/_bcrypt.abi3.so
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/cryptography/hazmat/bindings/_constant_time.abi3.so
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/cryptography/hazmat/bindings/_openssl.abi3.so
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/lib-dynload/_asyncio.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/lib-dynload/_bz2.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/lib-dynload/_codecs_cn.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/lib-dynload/_codecs_hk.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/lib-dynload/_codecs_iso2022.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/lib-dynload/_codecs_jp.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/lib-dynload/_codecs_kr.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/lib-dynload/_codecs_tw.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/lib-dynload/_contextvars.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/lib-dynload/_ctypes.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/lib-dynload/_curses.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/lib-dynload/_decimal.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/lib-dynload/_hashlib.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/lib-dynload/_json.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/lib-dynload/_lzma.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/lib-dynload/_multibytecodec.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/lib-dynload/_multiprocessing.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/lib-dynload/_opcode.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/lib-dynload/_posixshmem.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/lib-dynload/_queue.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/lib-dynload/_ssl.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/lib-dynload/_uuid.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/lib-dynload/mmap.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/lib-dynload/readline.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/lib-dynload/resource.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/lib-dynload/termios.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/libbz2.so.1.0
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/libcrypto.so.1.1
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/libexpat.so.1
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/libffi-c643fa1a.so.6.0.4
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/libffi.so.7
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/liblzma.so.5
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/libmpdec.so.2
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/libncursesw.so.6
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/libpython3.8.so.1.0
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/libreadline.so.8
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/libsodium.so.23
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/libssl.so.1.1
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/libtinfo.so.6
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/libuuid.so.1
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/libz.so.1
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/markupsafe/_speedups.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/nacl/_sodium.abi3.so
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/psutil/_psutil_linux.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-il5otmgf/psutil/_psutil_posix.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/_cffi_backend.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:libffi-c643fa1a.so.6.0.4 already in pyinstaller archive
DEBUG:root:Adding libpthread.so.0 to archive
INFO:root:Processing library libpthread.so.0 (/lib/x86_64-linux-gnu/libpthread.so.0)
INFO:root:Adding Symlink libpthread.so.0 => libpthread-2.31.so
INFO:root:Adding /lib/x86_64-linux-gnu/libpthread-2.31.so as libpthread-2.31.so
DEBUG:root:Adding libc.so.6 to archive
INFO:root:Processing library libc.so.6 (/lib/x86_64-linux-gnu/libc.so.6)
INFO:root:Adding Symlink libc.so.6 => libc-2.31.so
INFO:root:Adding /lib/x86_64-linux-gnu/libc-2.31.so as libc-2.31.so
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
INFO:root:Processing library ld-linux-x86-64.so.2 (/lib64/ld-linux-x86-64.so.2)
INFO:root:Adding Symlink ld-linux-x86-64.so.2 => ld-2.31.so
INFO:root:Adding /lib/x86_64-linux-gnu/ld-2.31.so as ld-2.31.so
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/bcrypt/_bcrypt.abi3.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Adding libpthread.so.0 to archive
DEBUG:root:Adding libc.so.6 to archive
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/cryptography/hazmat/bindings/_constant_time.abi3.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Adding libc.so.6 to archive
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/cryptography/hazmat/bindings/_openssl.abi3.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:libssl.so.1.1 already in pyinstaller archive
DEBUG:root:libcrypto.so.1.1 already in pyinstaller archive
DEBUG:root:Adding libpthread.so.0 to archive
DEBUG:root:Adding libc.so.6 to archive
DEBUG:root:Adding libdl.so.2 to archive
INFO:root:Processing library libdl.so.2 (/lib/x86_64-linux-gnu/libdl.so.2)
INFO:root:Adding Symlink libdl.so.2 => libdl-2.31.so
INFO:root:Adding /lib/x86_64-linux-gnu/libdl-2.31.so as libdl-2.31.so
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/lib-dynload/_asyncio.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Adding libc.so.6 to archive
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/lib-dynload/_bz2.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:libbz2.so.1.0 already in pyinstaller archive
DEBUG:root:Adding libc.so.6 to archive
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/lib-dynload/_codecs_cn.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Adding libc.so.6 to archive
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/lib-dynload/_codecs_hk.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Adding libc.so.6 to archive
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/lib-dynload/_codecs_iso2022.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Adding libc.so.6 to archive
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/lib-dynload/_codecs_jp.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Adding libc.so.6 to archive
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/lib-dynload/_codecs_kr.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Adding libc.so.6 to archive
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/lib-dynload/_codecs_tw.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Adding libc.so.6 to archive
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/lib-dynload/_contextvars.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/lib-dynload/_ctypes.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:libffi.so.7 already in pyinstaller archive
DEBUG:root:Adding libdl.so.2 to archive
DEBUG:root:Adding libpthread.so.0 to archive
DEBUG:root:Adding libc.so.6 to archive
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/lib-dynload/_curses.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:libncursesw.so.6 already in pyinstaller archive
DEBUG:root:libtinfo.so.6 already in pyinstaller archive
DEBUG:root:Adding libpthread.so.0 to archive
DEBUG:root:Adding libc.so.6 to archive
DEBUG:root:Adding libdl.so.2 to archive
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/lib-dynload/_decimal.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:libmpdec.so.2 already in pyinstaller archive
DEBUG:root:Adding libpthread.so.0 to archive
DEBUG:root:Adding libc.so.6 to archive
DEBUG:root:Adding libm.so.6 to archive
INFO:root:Processing library libm.so.6 (/lib/x86_64-linux-gnu/libm.so.6)
INFO:root:Adding Symlink libm.so.6 => libm-2.31.so
INFO:root:Adding /lib/x86_64-linux-gnu/libm-2.31.so as libm-2.31.so
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/lib-dynload/_hashlib.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:libcrypto.so.1.1 already in pyinstaller archive
DEBUG:root:Adding libc.so.6 to archive
DEBUG:root:Adding libdl.so.2 to archive
DEBUG:root:Adding libpthread.so.0 to archive
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/lib-dynload/_json.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/lib-dynload/_lzma.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:liblzma.so.5 already in pyinstaller archive
DEBUG:root:Adding libc.so.6 to archive
DEBUG:root:Adding libpthread.so.0 to archive
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/lib-dynload/_multibytecodec.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Adding libc.so.6 to archive
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/lib-dynload/_multiprocessing.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Adding libpthread.so.0 to archive
DEBUG:root:Adding libc.so.6 to archive
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/lib-dynload/_opcode.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/lib-dynload/_posixshmem.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Adding librt.so.1 to archive
INFO:root:Processing library librt.so.1 (/lib/x86_64-linux-gnu/librt.so.1)
INFO:root:Adding Symlink librt.so.1 => librt-2.31.so
INFO:root:Adding /lib/x86_64-linux-gnu/librt-2.31.so as librt-2.31.so
DEBUG:root:Adding libpthread.so.0 to archive
DEBUG:root:Adding libc.so.6 to archive
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/lib-dynload/_queue.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/lib-dynload/_ssl.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:libssl.so.1.1 already in pyinstaller archive
DEBUG:root:libcrypto.so.1.1 already in pyinstaller archive
DEBUG:root:Adding libpthread.so.0 to archive
DEBUG:root:Adding libc.so.6 to archive
DEBUG:root:Adding libdl.so.2 to archive
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/lib-dynload/_uuid.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:libuuid.so.1 already in pyinstaller archive
DEBUG:root:Adding libpthread.so.0 to archive
DEBUG:root:Adding libc.so.6 to archive
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/lib-dynload/mmap.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Adding libpthread.so.0 to archive
DEBUG:root:Adding libc.so.6 to archive
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/lib-dynload/readline.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:libreadline.so.8 already in pyinstaller archive
DEBUG:root:Adding libpthread.so.0 to archive
DEBUG:root:Adding libc.so.6 to archive
DEBUG:root:libtinfo.so.6 already in pyinstaller archive
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/lib-dynload/resource.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Adding libpthread.so.0 to archive
DEBUG:root:Adding libc.so.6 to archive
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/lib-dynload/termios.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Adding libpthread.so.0 to archive
DEBUG:root:Adding libc.so.6 to archive
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/libbz2.so.1.0']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Adding libc.so.6 to archive
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/libcrypto.so.1.1']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Adding libdl.so.2 to archive
DEBUG:root:Adding libpthread.so.0 to archive
DEBUG:root:Adding libc.so.6 to archive
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/libexpat.so.1']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Adding libc.so.6 to archive
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/libffi-c643fa1a.so.6.0.4']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Adding libc.so.6 to archive
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/libffi.so.7']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Adding libc.so.6 to archive
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/liblzma.so.5']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Adding libpthread.so.0 to archive
DEBUG:root:Adding libc.so.6 to archive
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/libmpdec.so.2']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Adding libm.so.6 to archive
DEBUG:root:Adding libc.so.6 to archive
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/libncursesw.so.6']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Adding libdl.so.2 to archive
DEBUG:root:libtinfo.so.6 already in pyinstaller archive
DEBUG:root:Adding libc.so.6 to archive
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/libpython3.8.so.1.0']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:libexpat.so.1 already in pyinstaller archive
DEBUG:root:libz.so.1 already in pyinstaller archive
DEBUG:root:Adding libpthread.so.0 to archive
DEBUG:root:Adding libdl.so.2 to archive
DEBUG:root:Adding libutil.so.1 to archive
INFO:root:Processing library libutil.so.1 (/lib/x86_64-linux-gnu/libutil.so.1)
INFO:root:Adding Symlink libutil.so.1 => libutil-2.31.so
INFO:root:Adding /lib/x86_64-linux-gnu/libutil-2.31.so as libutil-2.31.so
DEBUG:root:Adding libm.so.6 to archive
DEBUG:root:Adding libc.so.6 to archive
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/libreadline.so.8']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:libtinfo.so.6 already in pyinstaller archive
DEBUG:root:Adding libc.so.6 to archive
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/libsodium.so.23']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Adding libpthread.so.0 to archive
DEBUG:root:Adding libc.so.6 to archive
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/libssl.so.1.1']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:libcrypto.so.1.1 already in pyinstaller archive
DEBUG:root:Adding libpthread.so.0 to archive
DEBUG:root:Adding libc.so.6 to archive
DEBUG:root:Adding libdl.so.2 to archive
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/libtinfo.so.6']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Adding libc.so.6 to archive
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/libuuid.so.1']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Adding libc.so.6 to archive
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/libz.so.1']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Adding libc.so.6 to archive
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/markupsafe/_speedups.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Adding libpthread.so.0 to archive
DEBUG:root:Adding libc.so.6 to archive
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/nacl/_sodium.abi3.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:libsodium.so.23 already in pyinstaller archive
DEBUG:root:Adding libc.so.6 to archive
DEBUG:root:Adding libpthread.so.0 to archive
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/psutil/_psutil_linux.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Adding libpthread.so.0 to archive
DEBUG:root:Adding libc.so.6 to archive
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-il5otmgf/psutil/_psutil_posix.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Adding libpthread.so.0 to archive
DEBUG:root:Adding libc.so.6 to archive
DEBUG:root:Adding ld-linux-x86-64.so.2 to archive
DEBUG:root:Program linked with GLIBC: Found libc.so.6 GLIBC_2.7
DEBUG:root:Running ['patchelf', '--add-needed', 'libnssfix.so', '/tmp/staticx-prog-53a8isf7']
Assertion failed: splitIndex != -1 (patchelf.cc: shiftFile: 504)
Traceback (most recent call last):
File "/usr/local/bin/staticx", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.8/dist-packages/staticx/main.py", line 51, in main
generate(args.prog, args.output,
File "/usr/local/lib/python3.8/dist-packages/staticx/api.py", line 300, in generate
gen.generate(output=output)
File "/usr/local/lib/python3.8/dist-packages/staticx/api.py", line 125, in generate
run_hooks(self)
File "/usr/local/lib/python3.8/dist-packages/staticx/hooks/init.py", line 12, in run_hooks
hook(sx)
File "/usr/local/lib/python3.8/dist-packages/staticx/hooks/glibc.py", line 20, in process_glibc_prog
patch_elf(sx.tmpprog, add_needed=LIBNSSFIX)
File "/usr/local/lib/python3.8/dist-packages/staticx/elf.py", line 212, in patch_elf
tool_patchelf.run_check(*args)
File "/usr/local/lib/python3.8/dist-packages/staticx/elf.py", line 67, in run_check
raise ToolError(self.cmd, '{} returned {}'.format(self.cmd, rc))
staticx.errors.ToolError: patchelf returned -6

commented

You are right, after i replace patchelf 0.17.2 version to 0.16.1, staticx work success,i will contine to anayse patchelf。

INFO:root:Running StaticX version 0.13.8
INFO:root:Libraries:
INFO:root: elftools: 0.27
DEBUG:root:External tools:
INFO:root: ldd: /usr/bin/ldd: ldd (Ubuntu GLIBC 2.31-0ubuntu9.2) 2.31
INFO:root: objcopy: /usr/bin/objcopy: GNU objcopy (GNU Binutils for Ubuntu) 2.34
INFO:root: strip: /usr/bin/strip: GNU strip (GNU Binutils for Ubuntu) 2.34
INFO:root: patchelf: /usr/local/bin/patchelf: patchelf 0.16.1
DEBUG:root:Arguments:
DEBUG:root: prog: 'generate_single_node_report'
DEBUG:root: output: 'generate_single_node_report_xa'
DEBUG:root: libs: None
DEBUG:root: strip: False
DEBUG:root: compress: True
DEBUG:root: debug: True
INFO:root:Using XZ BCJ filter FILTER_X86
DEBUG:root:Bootloader: bootloader version 0.13.8 compiled Aug 7 2022 at 04:42:01 by musl-gcc version 10.2.1 20210110
INFO:root:Program interpreter: /lib64/ld-linux-x86-64.so.2
DEBUG:root:Running ['patchelf', '--remove-rpath', '/tmp/staticx-prog-qm5lqi_f']
DEBUG:root:Running ['patchelf', '--set-interpreter', 'iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii', '--set-rpath', 'rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr', '--force-rpath', '/tmp/staticx-prog-qm5lqi_f']
DEBUG:root:Running ['patchelf', '--no-default-lib', '/tmp/staticx-prog-qm5lqi_f']
INFO:root:Opened PyInstaller archive!
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/_asyncio.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/_bz2.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/_cffi_backend.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/_codecs_cn.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/_codecs_hk.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/_codecs_iso2022.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/_codecs_jp.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/_codecs_kr.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/_codecs_tw.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/_contextvars.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/_ctypes.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/_curses.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/_decimal.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/_hashlib.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/_json.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/_lzma.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/_multibytecodec.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/_multiprocessing.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/_opcode.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/_posixshmem.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/_queue.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/_ssl.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/_testcapi.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/_tkinter.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/_uuid.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/bcrypt/_bcrypt.abi3.so
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/cryptography/hazmat/bindings/_constant_time.abi3.so
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/cryptography/hazmat/bindings/_openssl.abi3.so
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/libBLT.2.5.so.8.6
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/libX11.so.6
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/libXau.so.6
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/libXdmcp.so.6
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/libXext.so.6
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/libXft.so.2
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/libXrender.so.1
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/libXss.so.1
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/libbsd.so.0
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/libbz2.so.1.0
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/libcrypto.so.1.1
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/libexpat.so.1
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/libffi-c643fa1a.so.6.0.4
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/libffi.so.7
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/libfontconfig.so.1
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/libfreetype.so.6
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/liblzma.so.5
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/libmpdec.so.2
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/libncursesw.so.6
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/libpng16.so.16
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/libpython3.8.so.1.0
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/libreadline.so.8
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/libsodium.so.23
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/libssl.so.1.1
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/libtcl8.6.so
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/libtinfo.so.6
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/libtk8.6.so
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/libuuid.so.1
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/libz.so.1
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/markupsafe/_speedups.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/mmap.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/nacl/_sodium.abi3.so
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/psutil/_psutil_linux.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/psutil/_psutil_posix.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/readline.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/resource.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Extracting to /tmp/staticx-pyi-6i0gt2h2/termios.cpython-38-x86_64-linux-gnu.so
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/_asyncio.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
INFO:root:Processing library libc.so.6 (/lib/x86_64-linux-gnu/libc.so.6)
INFO:root:Adding Symlink libc.so.6 => libc-2.31.so
INFO:root:Adding /lib/x86_64-linux-gnu/libc-2.31.so as libc-2.31.so
INFO:root:Processing library ld-linux-x86-64.so.2 (/lib64/ld-linux-x86-64.so.2)
INFO:root:Adding Symlink ld-linux-x86-64.so.2 => ld-2.31.so
INFO:root:Adding /lib/x86_64-linux-gnu/ld-2.31.so as ld-2.31.so
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/_bz2.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:libbz2.so.1.0 already in pyinstaller archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/_cffi_backend.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:libffi-c643fa1a.so.6.0.4 already in pyinstaller archive
INFO:root:Processing library libpthread.so.0 (/lib/x86_64-linux-gnu/libpthread.so.0)
INFO:root:Adding Symlink libpthread.so.0 => libpthread-2.31.so
INFO:root:Adding /lib/x86_64-linux-gnu/libpthread-2.31.so as libpthread-2.31.so
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/_codecs_cn.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/_codecs_hk.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/_codecs_iso2022.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/_codecs_jp.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/_codecs_kr.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/_codecs_tw.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/_contextvars.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/_ctypes.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:libffi.so.7 already in pyinstaller archive
INFO:root:Processing library libdl.so.2 (/lib/x86_64-linux-gnu/libdl.so.2)
INFO:root:Adding Symlink libdl.so.2 => libdl-2.31.so
INFO:root:Adding /lib/x86_64-linux-gnu/libdl-2.31.so as libdl-2.31.so
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/_curses.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:libncursesw.so.6 already in pyinstaller archive
DEBUG:root:libtinfo.so.6 already in pyinstaller archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/_decimal.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:libmpdec.so.2 already in pyinstaller archive
INFO:root:Processing library libm.so.6 (/lib/x86_64-linux-gnu/libm.so.6)
INFO:root:Adding Symlink libm.so.6 => libm-2.31.so
INFO:root:Adding /lib/x86_64-linux-gnu/libm-2.31.so as libm-2.31.so
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/_hashlib.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:libcrypto.so.1.1 already in pyinstaller archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/_json.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/_lzma.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:liblzma.so.5 already in pyinstaller archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/_multibytecodec.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/_multiprocessing.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/_opcode.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/_posixshmem.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
INFO:root:Processing library librt.so.1 (/lib/x86_64-linux-gnu/librt.so.1)
INFO:root:Adding Symlink librt.so.1 => librt-2.31.so
INFO:root:Adding /lib/x86_64-linux-gnu/librt-2.31.so as librt-2.31.so
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/_queue.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/_ssl.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:libssl.so.1.1 already in pyinstaller archive
DEBUG:root:libcrypto.so.1.1 already in pyinstaller archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/_testcapi.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/_tkinter.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:libBLT.2.5.so.8.6 already in pyinstaller archive
DEBUG:root:libtk8.6.so already in pyinstaller archive
DEBUG:root:libtcl8.6.so already in pyinstaller archive
DEBUG:root:libX11.so.6 already in pyinstaller archive
DEBUG:root:libXft.so.2 already in pyinstaller archive
DEBUG:root:libfontconfig.so.1 already in pyinstaller archive
DEBUG:root:libXss.so.1 already in pyinstaller archive
DEBUG:root:libz.so.1 already in pyinstaller archive
INFO:root:Processing library libxcb.so.1 (/lib/x86_64-linux-gnu/libxcb.so.1)
INFO:root:Adding Symlink libxcb.so.1 => libxcb.so.1.1.0
INFO:root:Adding /lib/x86_64-linux-gnu/libxcb.so.1.1.0 as libxcb.so.1.1.0
DEBUG:root:libfreetype.so.6 already in pyinstaller archive
DEBUG:root:libXrender.so.1 already in pyinstaller archive
DEBUG:root:libexpat.so.1 already in pyinstaller archive
DEBUG:root:libuuid.so.1 already in pyinstaller archive
DEBUG:root:libXext.so.6 already in pyinstaller archive
DEBUG:root:libXau.so.6 already in pyinstaller archive
DEBUG:root:libXdmcp.so.6 already in pyinstaller archive
DEBUG:root:libpng16.so.16 already in pyinstaller archive
DEBUG:root:libbsd.so.0 already in pyinstaller archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/_uuid.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:libuuid.so.1 already in pyinstaller archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/bcrypt/_bcrypt.abi3.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/cryptography/hazmat/bindings/_constant_time.abi3.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/cryptography/hazmat/bindings/_openssl.abi3.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:libssl.so.1.1 already in pyinstaller archive
DEBUG:root:libcrypto.so.1.1 already in pyinstaller archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/libBLT.2.5.so.8.6']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:libtk8.6.so already in pyinstaller archive
DEBUG:root:libtcl8.6.so already in pyinstaller archive
DEBUG:root:libX11.so.6 already in pyinstaller archive
DEBUG:root:libXft.so.2 already in pyinstaller archive
DEBUG:root:libfontconfig.so.1 already in pyinstaller archive
DEBUG:root:libXss.so.1 already in pyinstaller archive
DEBUG:root:libz.so.1 already in pyinstaller archive
DEBUG:root:libfreetype.so.6 already in pyinstaller archive
DEBUG:root:libXrender.so.1 already in pyinstaller archive
DEBUG:root:libexpat.so.1 already in pyinstaller archive
DEBUG:root:libuuid.so.1 already in pyinstaller archive
DEBUG:root:libXext.so.6 already in pyinstaller archive
DEBUG:root:libXau.so.6 already in pyinstaller archive
DEBUG:root:libXdmcp.so.6 already in pyinstaller archive
DEBUG:root:libpng16.so.16 already in pyinstaller archive
DEBUG:root:libbsd.so.0 already in pyinstaller archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/libX11.so.6']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:libXau.so.6 already in pyinstaller archive
DEBUG:root:libXdmcp.so.6 already in pyinstaller archive
DEBUG:root:libbsd.so.0 already in pyinstaller archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/libXau.so.6']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/libXdmcp.so.6']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:libbsd.so.0 already in pyinstaller archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/libXext.so.6']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:libX11.so.6 already in pyinstaller archive
DEBUG:root:libXau.so.6 already in pyinstaller archive
DEBUG:root:libXdmcp.so.6 already in pyinstaller archive
DEBUG:root:libbsd.so.0 already in pyinstaller archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/libXft.so.2']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:libfontconfig.so.1 already in pyinstaller archive
DEBUG:root:libfreetype.so.6 already in pyinstaller archive
DEBUG:root:libXrender.so.1 already in pyinstaller archive
DEBUG:root:libX11.so.6 already in pyinstaller archive
DEBUG:root:libexpat.so.1 already in pyinstaller archive
DEBUG:root:libuuid.so.1 already in pyinstaller archive
DEBUG:root:libpng16.so.16 already in pyinstaller archive
DEBUG:root:libz.so.1 already in pyinstaller archive
DEBUG:root:libXau.so.6 already in pyinstaller archive
DEBUG:root:libXdmcp.so.6 already in pyinstaller archive
DEBUG:root:libbsd.so.0 already in pyinstaller archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/libXrender.so.1']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:libX11.so.6 already in pyinstaller archive
DEBUG:root:libXau.so.6 already in pyinstaller archive
DEBUG:root:libXdmcp.so.6 already in pyinstaller archive
DEBUG:root:libbsd.so.0 already in pyinstaller archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/libXss.so.1']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:libX11.so.6 already in pyinstaller archive
DEBUG:root:libXext.so.6 already in pyinstaller archive
DEBUG:root:libXau.so.6 already in pyinstaller archive
DEBUG:root:libXdmcp.so.6 already in pyinstaller archive
DEBUG:root:libbsd.so.0 already in pyinstaller archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/libbsd.so.0']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/libbz2.so.1.0']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/libcrypto.so.1.1']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/libexpat.so.1']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/libffi-c643fa1a.so.6.0.4']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/libffi.so.7']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/libfontconfig.so.1']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:libfreetype.so.6 already in pyinstaller archive
DEBUG:root:libexpat.so.1 already in pyinstaller archive
DEBUG:root:libuuid.so.1 already in pyinstaller archive
DEBUG:root:libpng16.so.16 already in pyinstaller archive
DEBUG:root:libz.so.1 already in pyinstaller archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/libfreetype.so.6']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:libpng16.so.16 already in pyinstaller archive
DEBUG:root:libz.so.1 already in pyinstaller archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/liblzma.so.5']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/libmpdec.so.2']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/libncursesw.so.6']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:libtinfo.so.6 already in pyinstaller archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/libpng16.so.16']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:libz.so.1 already in pyinstaller archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/libpython3.8.so.1.0']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:libexpat.so.1 already in pyinstaller archive
DEBUG:root:libz.so.1 already in pyinstaller archive
INFO:root:Processing library libutil.so.1 (/lib/x86_64-linux-gnu/libutil.so.1)
INFO:root:Adding Symlink libutil.so.1 => libutil-2.31.so
INFO:root:Adding /lib/x86_64-linux-gnu/libutil-2.31.so as libutil-2.31.so
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/libreadline.so.8']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:libtinfo.so.6 already in pyinstaller archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/libsodium.so.23']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/libssl.so.1.1']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:libcrypto.so.1.1 already in pyinstaller archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/libtcl8.6.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:libz.so.1 already in pyinstaller archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/libtinfo.so.6']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/libtk8.6.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:libXft.so.2 already in pyinstaller archive
DEBUG:root:libfontconfig.so.1 already in pyinstaller archive
DEBUG:root:libX11.so.6 already in pyinstaller archive
DEBUG:root:libXss.so.1 already in pyinstaller archive
DEBUG:root:libfreetype.so.6 already in pyinstaller archive
DEBUG:root:libXrender.so.1 already in pyinstaller archive
DEBUG:root:libexpat.so.1 already in pyinstaller archive
DEBUG:root:libuuid.so.1 already in pyinstaller archive
DEBUG:root:libXext.so.6 already in pyinstaller archive
DEBUG:root:libpng16.so.16 already in pyinstaller archive
DEBUG:root:libz.so.1 already in pyinstaller archive
DEBUG:root:libXau.so.6 already in pyinstaller archive
DEBUG:root:libXdmcp.so.6 already in pyinstaller archive
DEBUG:root:libbsd.so.0 already in pyinstaller archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/libuuid.so.1']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/libz.so.1']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/markupsafe/_speedups.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/mmap.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/nacl/_sodium.abi3.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:libsodium.so.23 already in pyinstaller archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/psutil/_psutil_linux.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/psutil/_psutil_posix.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/readline.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:libreadline.so.8 already in pyinstaller archive
DEBUG:root:libtinfo.so.6 already in pyinstaller archive
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/resource.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Running ['ldd', '/tmp/staticx-pyi-6i0gt2h2/termios.cpython-38-x86_64-linux-gnu.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
DEBUG:root:Program linked with GLIBC: Found libc.so.6 GLIBC_2.3
DEBUG:root:Running ['patchelf', '--add-needed', 'libnssfix.so', '/tmp/staticx-prog-qm5lqi_f']
INFO:root:Adding libnssfix.so
DEBUG:root:Running ['ldd', '/tmp/libnssfix-g1yujzl5.so']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
INFO:root:Processing library libnss_dns.so.2 (/lib/x86_64-linux-gnu/libnss_dns.so.2)
INFO:root:Adding Symlink libnss_dns.so.2 => libnss_dns-2.31.so
INFO:root:Adding /lib/x86_64-linux-gnu/libnss_dns-2.31.so as libnss_dns-2.31.so
INFO:root:Processing library libnss_files.so.2 (/lib/x86_64-linux-gnu/libnss_files.so.2)
INFO:root:Adding Symlink libnss_files.so.2 => libnss_files-2.31.so
INFO:root:Adding /lib/x86_64-linux-gnu/libnss_files-2.31.so as libnss_files-2.31.so
INFO:root:Processing library libresolv.so.2 (/lib/x86_64-linux-gnu/libresolv.so.2)
INFO:root:Adding Symlink libresolv.so.2 => libresolv-2.31.so
INFO:root:Adding /lib/x86_64-linux-gnu/libresolv-2.31.so as libresolv-2.31.so
INFO:root:Adding /tmp/staticx-prog-qm5lqi_f as generate_single_node_report
DEBUG:root:Running ['ldd', 'generate_single_node_report']
DEBUG:root:Ignoring synthetic library: linux-vdso.so.1
INFO:root:Processing library libz.so.1 (/lib/x86_64-linux-gnu/libz.so.1)
INFO:root:Adding Symlink libz.so.1 => libz.so.1.2.11
INFO:root:Adding /lib/x86_64-linux-gnu/libz.so.1.2.11 as libz.so.1.2.11
DEBUG:root:Running ['objcopy', '--add-section', '.staticx.archive=/tmp/staticx-archive-28buctze.tar', '/tmp/staticx-output-t7u1shiq']

This appears to be the same issue as #243