bzcat corrupts when reading from pipeline
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bzip2 (Debian) |
New
|
Unknown
|
|||
bzip2 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: bzip2
dd if=/dev/urandom of=/tmp/fred bs=1M count=100
100+0 records in
100+0 records out
104857600 bytes (105 MB) copied, 21.7055 s, 4.8 MB/s
neil@lenovo-
neil@lenovo-
Binary files /tmp/fred and /tmp/jim differ
neil@lenovo-
neil@lenovo-
neil@lenovo-
neil@lenovo-
neil@lenovo-
neil@lenovo-
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: bzip2 1.0.5-4
ProcVersionSign
Uname: Linux 2.6.32-24-generic x86_64
Architecture: amd64
Date: Fri Aug 20 14:03:30 2010
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
ProcEnviron:
PATH=(custom, user)
LANG=en_GB.utf8
SHELL=/bin/bash
SourcePackage: bzip2
Changed in bzip2 (Ubuntu): | |
status: | New → Confirmed |
Changed in bzip2 (Debian): | |
status: | Unknown → New |
I'm also seeing this on Lucid amd64, output below; bzcat corrupts data when reading from a pipe?
strowger@ beast:~ /bztest$ dd if=/dev/urandom of=/tmp/fred bs=1M count=100 beast:~ /bztest$ zcat -f < /tmp/fred | bzcat -f > /tmp/jim beast:~ /bztest$ diff /tmp/fred /tmp/jim beast:~ /bztest$ bzcat -f < /tmp/fred | zcat -f > /tmp/jim beast:~ /bztest$ diff /tmp/fred /tmp/jim beast:~ /bztest$ zcat -f < /tmp/fred > /tmp/jim beast:~ /bztest$ diff /tmp/fred /tmp/jim beast:~ /bztest$
100+0 records in
100+0 records out
104857600 bytes (105 MB) copied, 14.982 s, 7.0 MB/s
strowger@
strowger@
Binary files /tmp/fred and /tmp/jim differ
strowger@
strowger@
strowger@
strowger@
strowger@