pombreda / libarchive

Automatically exported from code.google.com/p/libarchive
Other
0 stars 0 forks source link

Hang observed with xz/7z #315

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Concerning libarchive v3.1.2... This may or may not be known already, but more 
testing is required for the xz and 7zip formats because with small files, they 
work... But with larger files that contain several files, it either doesn't 
work or hangs.

What I'm testing with is about 100 files that total about 25 MB compressed as 
either .tar.xz or .7z

Original issue reported on code.google.com by Ztatik.L...@gmail.com on 23 Apr 2013 at 8:45

GoogleCodeExporter commented 9 years ago
I doubt it is related to number of files or size of archive:
I just created a .tar.xz archive with 442994 files; the total archive
size was just over 1GB.  It worked just fine.

I'm repeating that test with 7zip format but I expect it will also work fine.

So something else is going on.

Are you using bsdtar or a custom program?
What operating system?
What compiler?
Did you compile libarchive with liblzma or is it using the command-line xz 
program?
When it hangs, is it using CPU time?
Can you run it under a debugger and see where it is hung?

Original comment by kientzle@gmail.com on 25 Apr 2013 at 4:43

GoogleCodeExporter commented 9 years ago
For the record, I repeated my test (442k files, >1GB resulting archive) with 7z 
and it also worked fine.

Would like to get more details about the hang you saw so we can figure out 
what's really happening and get it fixed.

Original comment by kientzle@gmail.com on 27 Apr 2013 at 5:11

GoogleCodeExporter commented 9 years ago
Oh - i think the problem is i'm not compiling properly with liblzma... because 
even the zip support seems to be cli-based, if i remove the mingw directories 
from PATH then it breaks. Any notes you may have on properly building liblzma 
itself - then getting libarchive to link to in on MSYS/MinGW/GCC/Windows would 
be appreciated

Original comment by Ztatik.L...@gmail.com on 27 Apr 2013 at 5:44