-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐞 ZPAQ Compression/Decompression Broken #46
Comments
It appears that the 7.15 version of zpaq fails when a block of >64MB is sent to the backend on compression. Forcing a limit of 64MB appears to fix the problem. The issue was with compression, but remains unclear.
Some additional testing is required. |
See new branch zpaq_fix to try out the update. After a review period these changes will be merged. Issue will be reported upstream. |
Additional testing has revealed that this statement:
Is not entirely correct. The issue seems to be that if the block sent to the ZPAQ backend is greater than than the block size specified, ZPAQ may fail. This does not happen for smaller files that are less than ZPAQ block size. Thus. if the ZPAQ block size is specified as 9, which is 512MB, any block sent must be less than that. There is some code in the code in
Limiting the block size sent to the ZPAQ backend to 1MB << bs - 4096 seems to keep compression from getting corrupted. Testing is ongoing. Higher block sizes seems to cause intense swap space use. |
Looks good. Commits pushed to master and lzma-21.03beta. |
lrzip-next Version
0.7.63+ Maybe earlier
lrzip-next command line
lrzip-next -d | -t file.tar.lrz
What happened?
Decompressing a ZPAQ lrzip-next archive fails with an MD5 mismatch. Stored MD5s are OK. The decompressed file is broken. This came out of the blue and is a new issue.
What was expected behavior?
MD5s should match. Stored MD5s are correct.
Steps to reproduce
Create a ZPAQ lrzip-next archive
Decompress or Test
Relevant log output
Please provide system details
Slackware-x86_64 current
Kernel Version (uname -a): 5.13.2+
System ram (free -h): $ free -h
total used free shared buff/cache available
Mem: 15Gi 895Mi 11Gi 341Mi 3.0Gi 13Gi
Swap: 15Gi 654Mi 15Gi
Additional Context
Trying to pin down when this broke. ZPAQ code has not changed for a while. Made some changes to the temp buffer prior to writing out.
The text was updated successfully, but these errors were encountered: