Skip to content
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

-f option results in invalid index #13

Open
redneb opened this issue Jan 26, 2013 · 2 comments
Open

-f option results in invalid index #13

redneb opened this issue Jan 26, 2013 · 2 comments

Comments

@redneb
Copy link

redneb commented Jan 26, 2013

When I create a tpxz archive as follows

$ pixz -9 -f 3 linux-3.7.4.tar linux-3.7.4.tpxz

then the resulting archive has a corrupt index:

$ pixz -x linux-3.7.4/README < linux-3.7.4.tpxz > /dev/null 
Index and archive differ as to next file: linux-3.7.4/README vs linux-3.7.4/

This seems to happen for all values of -f greater than 2. I've only tested this with the -9 compression level.

@vasi
Copy link
Owner

vasi commented Jan 26, 2013

Thanks for the report. I'll try to look into it soon.

@vasi
Copy link
Owner

vasi commented Jan 27, 2013

Ok, bug confirmed. I'm starting to work on it, but it involves some pretty grotty code, so no promises yet. It might have to wait for the next minor version. The specific problem is that the code that finds specific wanted files hasn't been properly updated to deal with blocks of data that are so huge we don't want to keep them in memory.

Some related huge-blocks problems that this helped me find, and that are fixed:

  • Threads would sometimes get starved, causing a hang.
  • Auto-detection of the file-index would fail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants