First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 217552
Alias:
Product:
Component:
Status: NEW
Resolution:
Assigned To: Default Assignee for Orphaned Packages <maintainer-needed@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: PetaMem R&D <info@petamem.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
rzip-2.1-darwin.patch Fixed the patch so that it doesn't screw up large file support. patch Stupid Bugzilla 2008-07-27 20:19 0000 5.09 KB Details | Diff
rzip-handle-broken-archive.patch Patch for rzip to enable uncompressing of archives created with the broken rzip. patch Stupid Bugzilla 2008-07-30 18:36 0000 2.43 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 217552 depends on: Show dependency tree
Bug 217552 blocks:
Votes: 8    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.








View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-04-13 20:04 0000
rzip silently fails to compress files bigger than 4GB. There seems to be a
32bit overflow (even on 64bit architectures - also seen on AMD64). As soon as
the file is bigger than 4GB, the compressed file size is somewhere filesize
MODULO 4GB. Tested with a 6GB DVD image and a 9GB DVD Image. The rzip-author
didn't react to this bug report. What's worse, the ebuild description states
"compression program for large (sic!) files" -> *boom*

Reproducible: Always

Steps to Reproduce:
1. Get ISO-Image bigger than 4GB; get its MD5 sum
2. compress iso image with rzip -6 
3. decompress compressed file, get its MD5 sum

Actual Results:  
The compressed file is broken

Expected Results:  
Being able to recover compressed data lossless

Either fix, or document

------- Comment #1 From Jeremy Olexa (darkside) 2008-05-22 04:08:18 0000 -------
Thanks for reporting, quite a valuable find for someone I'm sure. I will add a
notice to the ebuild. Can you provide documentation to the upstream bug report
that you filed please.

------- Comment #2 From Jeremy Olexa (darkside) 2008-05-23 23:13:08 0000 -------
(In reply to comment #0)
> Either fix, or document

pkg_postinst() {
    ewarn "It has been reported that this tool will fail on files >4GB"
    ewarn "Please see https://bugs.gentoo.org/show_bug.cgi?id=217552 for more"
    ewarn "information."

Added to ebuild. Thanks for reporting. Closing bug but please still comment
with the $UPSTREM bug report that you filed so later users can investigate.

------- Comment #3 From Marco Qualizza 2008-05-25 12:22:07 0000 -------
I ran into this a long time ago.  What happened in my case is that the
generated rz did contain all of the data, it's just that the header stored the
expected file size as an int instead of a long or long long.  All I had to do
in my case was modify the source so that it ignored the stored file size and
instead read until it hit EOF...  I think that's what I did, this was a while
ago.

p7zip FTW! :-)

------- Comment #4 From Stefan Briesenick 2008-07-08 13:53:03 0000 -------
@Comment 3: so the rz-files are basically ok, but can not be extracted
correctly. Would you be so kind and provide us your little patch? ;)

would be nice, so one can at least extract that "broken" files. Thanks!

------- Comment #5 From Stupid Bugzilla 2008-07-27 18:01:15 0000 -------
The bug is introduced by patching rzip with rzip-2.0-darwin.patch. The patch
screws up rzips large file handling. 

------- Comment #6 From Stupid Bugzilla 2008-07-27 20:19:04 0000 -------
Created an attachment (id=161489) [edit]
Fixed the patch so that it doesn't screw up large file support.

I haven't checked all the changes that the original rzip-2.0-darwin.patch does,
but I removed the part that messed with the large file support. Please update
the patch in portage with this version and remove the warning from the ebuild.

------- Comment #7 From Stupid Bugzilla 2008-07-30 18:36:24 0000 -------
Created an attachment (id=161756) [edit]
Patch for rzip to enable uncompressing of archives created with the broken
rzip.

Please reopen this bug - this issue is definitely not fixed. If someone used
gentoo's broken rzip to compress a large file, {,s}he may look for open bug
reports.

The attached patch implements an option '-l' that can be used to override the
higher 32bits of the expected file size and thereby allowing the uncompressing 
of broken rzip-files. It should be okay to use a higher value than the correct
one.

Example:
rzip -d -l 200 broken_archive.rz

------- Comment #8 From Jeremy Olexa (darkside) 2008-07-30 18:49:22 0000 -------
(In reply to comment #7)

> Please reopen this bug - this issue is definitely not fixed. If someone used
> gentoo's broken rzip to compress a large file, {,s}he may look for open bug
> reports.

AKAIK, anyone can reopen bugs. can't remember though. Thanks for the patch, I'm
hesitant to remove the darwin patch, because I don't have time at the moment to
see what that does and what it will possible break.

------- Comment #9 From Jeremy Olexa (darkside) 2008-07-30 18:51:39 0000 -------
Un-assigning from myself because for above mentioned reasons. (I also would
like to test this and don't have any large files available at the moment)

------- Comment #10 From Stupid Bugzilla 2008-08-01 15:54:42 0000 -------
I only had the option to "Leave as RESOLVED FIXED" on the closed bug report. If
there is another way to re-open reports, please tell me.

But why are you hesitant to remove the patch for it might break something
(well, actually I didn't even ask for that but to replace it)?! It _already_
breaks rzip silently.

------- Comment #11 From Robert 2008-08-29 16:29:00 0000 -------
I can confirm that the original patch definitely breaks rzip, whereas the
updated patch works just fine. I honestly don't see any reason why a *known
broken* version of rzip should stay in the portage tree (even marked as
stable!) while a version that is known not to contain this bug (but *maybe*
some others) is not even added to the tree.
I was just lucky to see the log-messages this time.

From my point of view the current rzip-version in portage should at least be
marked as unstable, or even better: masked completely and a version with this
reworked patch should be added to the tree.

@Stupid Bugzilla: thank you for the both of your patches! So I could at least
recover everything from the broken archives.

@Jeremy Olexa: for big files how about sth. like
dd if=/dev/zero of=/some/place/with/space/testfile bs=1024k count=5024
to get a 5GiB file?

First Last Prev Next    No search results available      Search page      Enter new bug