Package: lrzip
Version: 0.631-1
Severity: normal

Dear Maintainer,

Sometimes, lrzip can't decode its own output. Oddly, this *only* happens
when the compressor stage is run as a pipe.

I've minimized this testcase from a larger one, in which I used the
entire script I was using to test various compressors as the input.

$ printf 'zp c1 output.1.zpaq input\nzp c2 output.2.zpaq input\nzp c3 
output.3.zpaq input\n' | lrzip | lrunzip | cat
Decompressing...
Compression Ratio: 0.023. Average Compression Speed:  0.000MB/s.
Total time: 00:00:00.06
Failed to decompress buffer - lzmaerr=1
Failed to decompress buffer - lzmaerr=1
Failed to decompress in ucompthread
Fatal error - exiting


Comparing the hexdumps, there are 2 bytes different:

--- bad.lrz.xxd     2017-02-03 21:07:23.196603674 -0800
+++ good.lrz.xxd    2017-02-03 21:07:04.824412741 -0800
@@ -1,7 +1,7 @@
 00000000: 4c52 5a49 0006 4e00 0000 0000 0000 0000  LRZI..N.........
-00000010: 0000 0000 0001 0000 0101 0003 0000 0803  ................
+00000010: 5d00 0000 0101 0000 0101 0003 0000 0803  ]...............
 00000020: 0000 1603 0a0a 0000 4e00 0000 002a 56c5  ........N....*V.
 00000030: 1506 294e 0000 3d1c 0005 3021 cb5e 79bf  ..)N..=...0!.^y.
 00000040: 767e cdc4 655e b22c e460 60c9 4d1b c8e2  v~..e^.,.``.M...
 00000050: 94e1 5b53 1432 49fd b1b9 e303 7700 180f  ..[S.2I.....w...
 00000060: 4f46 63ef ea1e 5323 cba3 b743 1d60       OFc...S#...C.`

Thanks,
-Ben


-- System Information:
Debian Release: 9.0
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unreleased'), (500, 'unstable'), 
(1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, x32, arm64

Kernel: Linux 4.8.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages lrzip depends on:
ii  bash        4.4-4
ii  libbz2-1.0  1.0.6-8.1
ii  libc6       2.24-9
ii  libgcc1     1:7-20161201-1
ii  liblzo2-2   2.08-1.2
ii  libstdc++6  7-20161201-1
ii  zlib1g      1:1.2.8.dfsg-5

lrzip recommends no packages.

lrzip suggests no packages.

-- no debconf information

Reply via email to