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 </tmp/a cpio: Read 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 /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 4307472 blocks $ echo $? 0 I performed an strace on the two files (1.9G, 2.1G) (neither are sparse) 1.cwf and 2.cwf. 1.cwf works just fine but 2.cwf always breaks. Then I made a different 2.1G file and that broke, so the problem looks to be that cpio cannot copy files >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