First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 34872
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: AMD64 Project <amd64@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Marcus Stjärnås <maq@maqibooy.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
unrar-64bit-fixes.patch Fix for 64-bit bug patch Ryan C. Gordon 2004-01-04 15:41 0000 475 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 34872 depends on: Show dependency tree
Bug 34872 blocks:
Votes: 0    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: 2003-12-02 01:36 0000
I tried unpack my old dvd movies (packed with winrar) on my new amd64 system
and 
it fails. If i boot (the same computer) in 32bit enviroment they will unpack 
correctly.

This error seems only exist if the packed file is big (>~3gib). Smaller files 
unpacks correctly.

Reproducible: Always
Steps to Reproduce:
1. Build unrar-3.2.2.ebuild in 64bit enviroment.
2. unrar a rar-set of >60 rar-files containing one file bigger than 4gig
3.

Actual Results:  
Crc will fail, and the unpacked file will be corrupt.

Expected Results:  
If I boot with a 32bit kernel with a 32bit compiled unrar it works perfectly 
with the exact same files. Smaller (<~2gig) files will unpack correctly in
64bit 
enviroment.

------- Comment #1 From Marcus Stjärnås 2003-12-06 00:42:07 0000 -------
Just found out that FreeBSD has the same problem on their sparc 64bit port.

http://www.freebsd.org/cgi/query-pr.cgi?pr=57800

------- Comment #2 From Daniel Ahlberg (RETIRED) 2004-01-02 11:31:54 0000 -------
I've bumped unrar to 3.3.3, could you test if the problem still exist?

------- Comment #3 From Marcus Stjärnås 2004-01-02 12:19:19 0000 -------
Same problem still exist.

------- Comment #4 From Ryan C. Gordon 2004-01-04 15:40:33 0000 -------
Okay, I tracked this one down.

It's not due to large files (I generated a 4+ gig file from /dev/urandom with the 32-bit version and it unpacked fine with a 64-bit build), nor does it have to do with a specific compression method like the FreeBSD sparc64 bug report mentions. It's actually a dumb mistake: they use a long (64-bit on amd64, 32-bit on ia32) where integer overflow was relevant.

My testing hasn't been extensive, but I believe the attached patch will fix all the 64-bit issues that have reported. I'll follow up with FreeBSD and the original author, too.

--ryan.

------- Comment #5 From Ryan C. Gordon 2004-01-04 15:41:26 0000 -------
Created an attachment (id=23169) [edit]
Fix for 64-bit bug

------- Comment #6 From Marcus Stjärnås 2004-01-08 12:49:43 0000 -------
The fix works fine for me too. Would be nice to see this patch in portage soon,
soo we can close this bug.

------- Comment #7 From Kris Kersey (RETIRED) 2004-01-08 14:04:38 0000 -------
Commited.  The patch looks good and still works on all the files that I had.  I
could not produce the error so those that could should test this new build.

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