Bug#987994: diffoscope: crash when comparing two ZIP files
Hans-Christoph Steiner
hans at eds.org
Mon May 3 13:38:19 BST 2021
Package: diffoscope
Version: 168~bpo10+1
Severity: important
Dear Maintainer,
I downloaded the job artifact files from two related GitLab CI jobs and compared them:
https://gitlab.com/guardianproject/tor-android/-/jobs/1231242475/artifacts/download
https://gitlab.com/eighthave/tor-android/-/jobs/1227385382/artifacts/download
diffoscope --html jobzip.html \
tor-android_release_0.4.5.7_044c580d3aeed61b315cd1c22520bbba3137acfb.zip \
tor-android_release_0.4.5.7_044c580d3aeed61b315cd1c22520bbba3137acfb\(1\).zip
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/diffoscope/main.py", line 771, in main
sys.exit(run_diffoscope(parsed_args))
File "/usr/lib/python3/dist-packages/diffoscope/main.py", line 725, in run_diffoscope
difference = compare_root_paths(path1, path2)
File "/usr/lib/python3/dist-packages/diffoscope/comparators/utils/compare.py", line 69, in compare_root_paths
difference = compare_files(file1, file2)
File "/usr/lib/python3/dist-packages/diffoscope/comparators/utils/compare.py", line 125, in compare_files
return file1.compare(file2, source)
File "/usr/lib/python3/dist-packages/diffoscope/comparators/utils/file.py", line 499, in compare
difference = self._compare_using_details(other, source)
File "/usr/lib/python3/dist-packages/diffoscope/comparators/utils/file.py", line 436, in _compare_using_details
other.as_container, no_recurse=no_recurse
File "/usr/lib/python3/dist-packages/diffoscope/comparators/utils/container.py", line 192, in compare_pair
file1, file2, source=None, diff_content_only=no_recurse
File "/usr/lib/python3/dist-packages/diffoscope/comparators/utils/compare.py", line 125, in compare_files
return file1.compare(file2, source)
File "/usr/lib/python3/dist-packages/diffoscope/comparators/utils/file.py", line 499, in compare
difference = self._compare_using_details(other, source)
File "/usr/lib/python3/dist-packages/diffoscope/comparators/utils/file.py", line 406, in _compare_using_details
details.extend(self.compare_details(other, source))
File "/usr/lib/python3/dist-packages/diffoscope/comparators/debian.py", line 195, in compare_details
self._deb822.get_as_string("Checksums-Sha256"),
File "/usr/lib/python3/dist-packages/debian/deb822.py", line 1657, in get_as_string
if hasattr(self[key], 'keys'): # single-line
File "/usr/lib/python3/dist-packages/debian/deb822.py", line 500, in __getitem__
value = self.__dict[keyi]
KeyError: 'Checksums-Sha256'
-- System Information:
Debian Release: 10.9
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable'), (100, 'proposed-updates')
Architecture: amd64 (x86_64)
Kernel: Linux 4.19.0-16-amd64 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages diffoscope depends on:
ii diffoscope-minimal 168~bpo10+1
Versions of packages diffoscope recommends:
ii abootimg 0.6-1+b2
ii acl 2.2.53-4
ii apksigner 30.0.3-4
ii apktool 2.4.1-1
ii binutils-multiarch 2.31.1-16
ii bzip2 1.0.6-9.2~deb10u1
ii caca-utils 0.99.beta19-2.1
ii colord 1.4.3-4
ii db-util 5.3.1+nmu1
ii default-jdk [java-sdk] 2:1.11-71
ii default-jdk-headless 2:1.11-71
ii device-tree-compiler 1.4.7-4
ii docx2txt 1.4-1
ii e2fsprogs 1.44.5-1+deb10u3
ii enjarify 1:1.0.3-4
ii ffmpeg 7:4.1.6-1~deb10u1
ii fontforge-extras 0.3-4
ii fp-utils 3.0.4+dfsg-22
ii fp-utils-3.0.4 [fp-utils] 3.0.4+dfsg-22
ii genisoimage 9:1.1.11-3+b2
ii gettext 0.19.8.1-9
ii ghc 8.4.4+dfsg1-3
ii ghostscript 9.27~dfsg-2+deb10u4
ii giflib-tools 5.1.4-3
ii gnumeric 1.12.44-1
ii gnupg 2.2.12-1+deb10u1
ii gnupg-utils 2.2.12-1+deb10u1
ii hdf5-tools 1.10.4+repack-10
ii imagemagick 8:6.9.10.23+dfsg-2.1+deb10u1
ii imagemagick-6.q16 [imagemagick] 8:6.9.10.23+dfsg-2.1+deb10u1
ii jsbeautifier 1.6.4-7
ii libarchive-tools 3.3.3-4+deb10u1
ii llvm 1:7.0-47
ii lz4 [liblz4-tool] 1.8.3-1
ii mono-utils 5.18.0.240+dfsg-3
ii ocaml-nox 4.05.0-11
ii odt2txt 0.5-1+b2
ii oggvideotools 0.9.1-5
ii openjdk-11-jdk [java-sdk] 11.0.11+9-1~deb10u1
ii openssh-client 1:7.9p1-10+deb10u2
ii openssl 1.1.1d-0+deb10u6
ii pgpdump 0.33-1
ii poppler-utils 0.71.0-5
ii procyon-decompiler 0.5.32-5
ii python3-argcomplete 1.8.1-1
ii python3-binwalk 2.1.2~git20180830+dfsg1-1
ii python3-debian 0.1.35
ii python3-defusedxml 0.5.0-2
ii python3-guestfs 1:1.40.2-2
ii python3-jsondiff 1.1.1-2
ii python3-pdfminer 20181108+dfsg-3
ii python3-progressbar 2.5-1
ii python3-pypdf2 1.26.0-2
ii python3-pyxattr 0.6.1-1
ii python3-rpm 4.14.2.1+dfsg1-1
ii python3-tlsh 3.4.4+20151206-1.1
ii r-base-core 3.5.2-1
pn radare2 <none>
ii rpm2cpio 4.14.2.1+dfsg1-1
ii sng 1.1.0-1+b1
ii sqlite3 3.27.2-3+deb10u1
ii squashfs-tools 1:4.3-12
ii tcpdump 4.9.3-1~deb10u2
ii u-boot-tools 2019.01+dfsg-7
ii unzip 6.0-23+deb10u2
ii vim-common 2:8.1.0875-5
ii wabt 1.0.8-1
ii xmlbeans 3.0.2-1
ii xxd 2:8.1.0875-5
ii xz-utils 5.2.4-1
ii zip 3.0-11+b1
ii zstd 1.4.4+dfsg-3~bpo10+1
Versions of packages diffoscope suggests:
ii libjs-jquery 3.3.1~dfsg-3+deb10u1
-- no debconf information
More information about the Reproducible-builds
mailing list