Bug#986136: perl: shasum treats read errors like end of file

Stefan Arnold stefan_arnold at hotmail.com
Tue Mar 30 10:43:43 BST 2021


Package: perl
Version: 5.28.1-6+deb10u1
Severity: normal

I noticed his while testing with an filesystem that should give "read error" at
a certain point which did not happen but instead gives a hash output. The
easiest way to reproduce is shasuming a folder:

strace -e trace=read shasum 0</tmp
...
read(0, 0x56421603f620, 8192)           = -1 EISDIR (Ist ein Verzeichnis)
da39a3ee5e6b4b0d3255bfef95601890afd80709  -
+++ exited with 0 +++


Read gives a read error but shasum does not pass it.



-- System Information:
Debian Release: 10.8
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.9.0-0.bpo.5-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_UNSIGNED_MODULE
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8), LANGUAGE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages perl depends on:
ii  dpkg               1.19.7
ii  libperl5.28        5.28.1-6+deb10u1
ii  perl-base          5.28.1-6+deb10u1
ii  perl-modules-5.28  5.28.1-6+deb10u1

Versions of packages perl recommends:
ii  netbase  6.1~bpo10+1

Versions of packages perl suggests:
pn  libb-debug-perl                                         <none>
pn  libterm-readline-gnu-perl | libterm-readline-perl-perl  <none>
ii  make                                                    4.2.1-1.2
pn  perl-doc                                                <none>
ii  perl-modules-5.24 [liblocale-codes-perl]                5.24.1-3+deb9u5

-- no debconf information




More information about the Perl-maintainers mailing list