-
Notifications
You must be signed in to change notification settings - Fork 13
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
compression level 1 error gzip stdin invalid compressed data format violated tar Unexpected EOF in archive #11
Comments
both the compress and extract are successful when no crabz compression level and compression threads are specified:
errors surface only at extract time when I specify compression level and compression threads:
|
When compression is turned off with zero value, tar extracts successfully.
tar extract also works when compression level is 9:
LOL it had to be that the compression level I want to use has a bug in it, but all the others behave as expected:
The error only surfaces at compression level 1. |
That is super weird! I can reproduce locally. I don't know that I'll have time to sort this one out today, but I'll get it fixed. |
Okay, this goes way deeper than anticipated. I think it's a bug in Installing crabz with See zlib-ng/zlib-ng#680 and other bugs under the "level 1" search in zlib-ng. Apparently you found the one compression level + input data to cause an issue! I'm not yet sure how I'll handle this in |
It's not actually |
I'll give a bit more context how I surfaced this bug. Thanks for making this awesome tool. |
Absolutely! And that's exactly the type of data that would trigger this bug! I should have a new version out in a day or two. If you really aren't too concerned about the compression ratio and just want some compression, I'd recommend using the I appreciate that you took the time to create a helpful issue 👍 |
Please see the v0.7.1 release which is building and should be available shortly for the fix. Sorry about the slow turn-around! I ended up bundling in a few more features I've been wanting to add. |
I created a tgz using specific compression level and threads with crabz:
I expected success when extracting a tgz created with crabz.
Instead, I got the following error output:
NOTE: This error only surfaces when extracting with tar when crabz uses compression level 1.
tar extracts as expected when crabz uses compression levels 0, 2 to 9 BUT NOT 1.
The text was updated successfully, but these errors were encountered: