bzcat corrupts when reading from pipeline

Bug #621130 reported by Neil Wilson
14
This bug affects 3 people
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-3000-n100:~$ zcat -f < /tmp/fred | bzcat -f > /tmp/jim
neil@lenovo-3000-n100:~$ diff /tmp/fred /tmp/jim
Binary files /tmp/fred and /tmp/jim differ

neil@lenovo-3000-n100:~$ bzcat -f < /tmp/fred | zcat -f > /tmp/jim
neil@lenovo-3000-n100:~$ diff /tmp/fred /tmp/jim

neil@lenovo-3000-n100:~$ bzcat -f < /tmp/fred > /tmp/jim
neil@lenovo-3000-n100:~$ diff /tmp/fred /tmp/jim

neil@lenovo-3000-n100:~$ zcat -f < /tmp/fred > /tmp/jim
neil@lenovo-3000-n100:~$ diff /tmp/fred /tmp/jim

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: bzip2 1.0.5-4
ProcVersionSignature: Ubuntu 2.6.32-24.41-generic 2.6.32.15+drm33.5
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

Revision history for this message
Neil Wilson (neil-aldur) wrote :
Revision history for this message
strowger (strowger) wrote :

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
100+0 records in
100+0 records out
104857600 bytes (105 MB) copied, 14.982 s, 7.0 MB/s
strowger@beast:~/bztest$ zcat -f < /tmp/fred | bzcat -f > /tmp/jim
strowger@beast:~/bztest$ diff /tmp/fred /tmp/jim
Binary files /tmp/fred and /tmp/jim differ
strowger@beast:~/bztest$ bzcat -f < /tmp/fred | zcat -f > /tmp/jim
strowger@beast:~/bztest$ diff /tmp/fred /tmp/jim
strowger@beast:~/bztest$ zcat -f < /tmp/fred > /tmp/jim
strowger@beast:~/bztest$ diff /tmp/fred /tmp/jim
strowger@beast:~/bztest$

Ben Arblaster (andatche)
Changed in bzip2 (Ubuntu):
status: New → Confirmed
Changed in bzip2 (Debian):
status: Unknown → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.