Bug 765858 - compress a tar of pdf files is corrupted
Summary: compress a tar of pdf files is corrupted
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ncompress
Version: rawhide
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Ondrej Vasik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-09 15:08 UTC by Phillip Grinder
Modified: 2012-01-11 20:54 UTC (History)
3 users (show)

Fixed In Version: ncompress-4.2.4-56.fc16
Clone Of:
Environment:
Last Closed: 2012-01-11 20:50:56 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Phillip Grinder 2011-12-09 15:08:01 UTC
Description of problem:
compress a tar of pdf files looks like it works, but when you try and do a uncompress the file is corrupt.


Version-Release number of selected component (if applicable):
Fedora 14 64-bit 
ascii files compress find 
Fedora 14 32-bit works with no problems


How reproducible:
reproduced on 2 different 64 bit machines.



Steps to Reproduce:
1. tar a few .PDF files

2. compress the tar file

3. try and uncompress
  
Actual results:
insize:1036 posbits:104 inbuf:81 09 B8 02 47 (0)
uncompress: corrupt input

Expected results:
extract the compressed file

Additional info:

Comment 1 Ondrej Vasik 2011-12-10 14:15:02 UTC
Thanks for reassigning to tar ... could you please specify the full command line that you used for compression? It might give me better insight in what possibly went wrong (I got similar report recently).

Comment 2 Phillip Grinder 2011-12-10 17:06:51 UTC
I did tar -zcvf file.tar.Z *.pdf (I had 3-4 pdf files in the folder.)

Comment 3 Phillip Grinder 2011-12-10 17:09:15 UTC
I tried the on a new install of fedora 16 64bit and had the same problem.

Comment 4 Ondrej Vasik 2011-12-12 09:28:18 UTC
Yep, that's what I expected ... 
The other report is https://bugzilla.redhat.com/show_bug.cgi?id=760657 ... it was probably caused by some other package update ... as it was broken without update of ncompress.
Other external compression programs (bzip2,gzip,xz ...) are afaik not affected by this issue... so I would recommend to use temporarily the other compression method for backups.

Comment 5 Ondrej Vasik 2012-01-03 14:38:03 UTC
Ok, confirmed, it was caused by update of glibc (optimization of memcpy() function) ... and due to wrong use of memcpy() in ncompress, this error has shown. I'll do an Fedora update soon...

Comment 6 Fedora Update System 2012-01-03 14:39:43 UTC
ncompress-4.2.4-56.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/ncompress-4.2.4-56.fc16

Comment 7 Fedora Update System 2012-01-03 14:40:39 UTC
ncompress-4.2.4-56.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/ncompress-4.2.4-56.fc15

Comment 8 Phillip Grinder 2012-01-03 16:33:37 UTC
Will this fix be applied to Fedora 14?
I tested it on Fedora 16 and it works.
Thanks, Phil Grinder

Comment 9 Ondrej Vasik 2012-01-03 23:00:08 UTC
No, F14 is EOL... no updates for F14 are allowed.

Comment 10 Fedora Update System 2012-01-04 01:55:12 UTC
Package ncompress-4.2.4-56.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing ncompress-4.2.4-56.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-0070/ncompress-4.2.4-56.fc15
then log in and leave karma (feedback).

Comment 11 Fedora Update System 2012-01-11 20:50:56 UTC
ncompress-4.2.4-56.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2012-01-11 20:54:02 UTC
ncompress-4.2.4-56.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.