Bug#511982: cpio corrupts data on some files over 2GB

2009-01-16 Thread Clint Adams
On Thu, Jan 15, 2009 at 04:48:43PM -0800, Matthew A. Dunford wrote:
> cpio sometimes corrupts data copying files over 2GB.  It seems to pad them 
> with
> null bytes.  It prints an error, though it exits with success.  Here is the
> report I got from a user:
> 
> $ cpio --sparse -pdmv $a 2GB.  Other formats
vary.  Your user may want to investigate using -Hcrc or a
different header.

-Hnew is limited to 4294967295 bytes

-Hodc is limited to 8589934591 bytes

I believe -Htar and -Hustar are also limited to <8GB.

I could have sworn that this was in the documentation, but I cannot
find it.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#511982: cpio corrupts data on some files over 2GB

2009-01-15 Thread Matthew A. Dunford
Package: cpio
Version: 2.6-18.1+etch1
Severity: important


cpio sometimes corrupts data copying files over 2GB.  It seems to pad them with
null bytes.  It prints an error, though it exits with success.  Here is the
report I got from a user:

$ cpio --sparse -pdmv $a 2GB reliably!

Can you please log this as a bug with the maintainers of debian / cpio?

Good: 1.cwf (<2GB)

mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x2accf7327000
read(0, "R_2008_11_20_23_55_47_FLX0208031"..., 4096) = 107
lstat("R_2008_11_20_23_55_47_FLX02080314_adminrig_10831/D_2008_11_21_08_37_25_sge055_fullProcessing/regions/1.cwf",
 {st_mode=S_IFREG|0644, st_size=1971607336, ...}) = 0
lstat("/psf/454/staging2/tmp/dm_testing/R_2008_11_20_23_55_47_FLX02080314_adminrig_10831/D_2008_11_21_08_37_25_sge055_fullProcessing/regions/1.cwf",
 0x7fffb3d181f0) = -1 ENOENT (No such file or
directory)
open("R_2008_11_20_23_55_47_FLX02080314_adminrig_10831/D_2008_11_21_08_37_25_sge055_fullProcessing/regions/1.cwf",
 O_RDONLY) = 3
open("/psf/454/staging2/tmp/dm_testing/R_2008_11_20_23_55_47_FLX02080314_adminrig_10831/D_2008_11_21_08_37_25_sge055_fullProcessing/regions/1.cwf",
 O_WRONLY|O_CREAT, 0600) = 4
read(3, "PK\3\4\24\0\0\0\0\0\0\0 \0\26\374\222h\30\0\0\0\30\0\0"..., 512) = 512
read(3, "\277\0_\306\256\362\363s[\5\302\333\277_P\273\364\'\344"..., 512) = 512
write(4, "PK\3\4\24\0\0\0\0\0\0\0 \0\26\374\222h\30\0\0\0\30\0\0"..., 512) = 512
read(3, "\312\222\37\246;\223\33\373y\374=\341!\200\315\251X\234"..., 512) = 512
write(4, "\277\0_\306\256\362\363s[\5\302\333\277_P\273\364\'\344"..., 512) = 
512


Bad: 2.cwf (>2GB)

read(0, "R_2008_11_20_23_55_47_FLX0208031"..., 4096) = 107
lstat("R_2008_11_20_23_55_47_FLX02080314_adminrig_10831/D_2008_11_21_08_37_25_sge055_fullProcessing/regions/2.cwf",
 {st_mode=S_IFREG|0644, st_size=2205425522, ...}) = 0
lstat("/psf/454/staging2/tmp/dm_testing/R_2008_11_20_23_55_47_FLX02080314_adminrig_10831/D_2008_11_21_08_37_25_sge055_fullProcessing/regions/2.cwf",
 0x7fff5c178650) = -1 ENOENT (No such file or
directory)
open("R_2008_11_20_23_55_47_FLX02080314_adminrig_10831/D_2008_11_21_08_37_25_sge055_fullProcessing/regions/2.cwf",
 O_RDONLY) = 3
open("/psf/454/staging2/tmp/dm_testing/R_2008_11_20_23_55_47_FLX02080314_adminrig_10831/D_2008_11_21_08_37_25_sge055_fullProcessing/regions/2.cwf",
 O_WRONLY|O_CREAT, 0600) = 4
read(3, 0x51a030, 18446744071620009842) = -1 EFAULT (Bad address)
open("/usr/share/locale/locale.alias", O_RDONLY) = 5
fstat(5, {st_mode=S_IFREG|0644, st_size=2582, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x2ae34eec5000
read(5, "# Locale name alias data base.\n#"..., 4096) = 2582
read(5, "", 4096) = 0
close(5) = 0
munmap(0x2ae34eec5000, 4096) = 0
open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/cpio.mo", O_RDONLY) = -1 ENOENT 
(No such file or directory)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/cpio.mo", O_RDONLY) = -1 ENOENT 
(No such file or directory)
open("/usr/share/locale/en_US/LC_MESSAGES/cpio.mo", O_RDONLY) = -1 ENOENT (No 
such file or directory)
open("/usr/share/locale/en.UTF-8/LC_MESSAGES/cpio.mo", O_RDONLY) = -1 ENOENT 
(No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/cpio.mo", O_RDONLY) = -1 ENOENT (No 
such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/cpio.mo", O_RDONLY) = -1 ENOENT (No such 
file or directory)
write(2, "cpio: ", 6cpio: ) = 6
write(2, "Read error at byte 0 in file R_2"..., 155Read error at byte 0 in file 
R_2008_11_20_23_55_47_FLX02080314_adminrig_10831/D_2008_11_21_08_37_25_sge055_fullProcessing/regions/2.cwf,
 padding with zeros) = 155
write(2, "\n", 1
) = 1
write(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 512) = 512
write(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 512) = 512
write(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 512) = 512
write(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 512) = 512
write(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 512) = 512
write(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 512) = 512
write(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 512) = 512


-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.22.9-1jgi-amd64-k8-smp
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages cpio depends on:
ii  libc6  2.3.6.ds1-13etch2 GNU C Library: Shared libraries

cpio recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org