Author Topic: tar headers corrupt  (Read 2663 times)

0 Members and 1 Guest are viewing this topic.

Offline bitingsock

  • Occasional poster
  • *
  • Posts: 8
    • View Profile
tar headers corrupt
« on: April 16, 2016, 05:52:03 AM »
When using the archive feature, the resulting tarballs have incorrect headers; the length metadata is bad (I think) making unpackers think that there is data erroneously packed at the end of the archive. 7zip particularly has problems as it will not ignore header errors when extracting unlike other programs that do ignore them. 7zip will unpack the length specified in the header and will leave off the rest  (I think). From my tests it seems to have something to do with folder recursion but I could not say for certain. I can PM a link to an example problem ( i don't really want to put my dyndns out there)
« Last Edit: April 16, 2016, 05:57:07 AM by bitingsock »

Offline bmartino1

  • Tireless poster
  • ****
  • Posts: 788
  • I'm only trying to help i mean no offense.
    • View Profile
    • none - google translate
Re: tar headers corrupt
« Reply #1 on: April 16, 2016, 07:23:02 AM »
is this a fresh download of HFS? are there any template changes.
*ther have been other reports on the forum in which a fix was a fresh download...

There have been issues before with "tar" archiving on certain files...
*what files are you zipping? doc / docx / excel... etc....

are any files "0" bytes in size? are they actual files or are they symlink/shortcuts....
*there is a know problem trying to archive a file with nothing in it....
--------------------------------------
i'm surprised that 7zip isn't working to exact, even in a croupted forum (print screen of the error form 7zip would be helpful..., i have personally found 7zip better than any other zip tool to get the files....


Explain please, why you think its the headed of the tar archive?...
why do you suspect that?
 
I'm only trying to help i mean no offense.
thank you for your time and patience,
Bmartino1

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12890
    • View Profile
Re: tar headers corrupt
« Reply #2 on: April 16, 2016, 10:12:47 AM »
welcome! and thanks for the report.
i'm a 7zip user myself and i never faced such  error,
so i expect there are specific conditions to make it happen.
Can you instruct me in reproducing the problem?
Please try to keep the example at its minimum, remove anything that it's not affecting the problem.

Offline bitingsock

  • Occasional poster
  • *
  • Posts: 8
    • View Profile
Re: tar headers corrupt
« Reply #3 on: April 16, 2016, 05:35:04 PM »
Attached is 7zip giving the error. This is an attempt after removing an edited template. The difference between the size reported by 7zip and the actual size of the tarball is why I think the header is bad. There are actually 5 folders in the tarball but 7zip only extracts 3 of them; I assume this is where the header says the end of the archive is. I'll PM you both with a link to this example.

Offline bmartino1

  • Tireless poster
  • ****
  • Posts: 788
  • I'm only trying to help i mean no offense.
    • View Profile
    • none - google translate
Re: tar headers corrupt
« Reply #4 on: April 17, 2016, 04:13:07 AM »
thx for the PM, i'm tryign to see where it fails.

here is some other forum info on the topic: http://www.rejetto.com/forum/bug-reports/no-archive-since-2-3f/

also doent help to look at 7zip forumL

https://sourceforge.net/p/sevenzip/bugs/1455/
https://sourceforge.net/p/sevenzip/bugs/1603/
« Last Edit: April 17, 2016, 04:17:13 AM by bmartino1 »
I'm only trying to help i mean no offense.
thank you for your time and patience,
Bmartino1

Offline bitingsock

  • Occasional poster
  • *
  • Posts: 8
    • View Profile
Re: tar headers corrupt
« Reply #5 on: April 17, 2016, 05:08:11 AM »
I came across this thread
https://sourceforge.net/p/sevenzip/discussion/45797/thread/4286f2d1/
I thought I should ask if hfs uses the project in question here.

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12890
    • View Profile
Re: tar headers corrupt
« Reply #6 on: April 17, 2016, 08:36:29 AM »
I thought I should ask if hfs uses the project in question here.

HFS is not using any library for TARs, it's my own implementation. I needed some features I couldn't find anywhere.

Anyway, I downloaded your link, verified and extracted with 7zip version 9, no errors.
Did the same with version 15.14 (64bit): again, no errors.
At this point i wonder if we got the same archive, so this is my md5 if you want to check: 5f754f85f882da607a20ba16b445eb46 .
Ensure you download exactly the link you gave me, and let's hope nothing changed in the folder otherwise you will surely get a different fingerprint.

Since you like metal, be sure to check my band :D http://mistymorning.bandcamp.com/
« Last Edit: April 17, 2016, 08:55:58 AM by rejetto »

Offline bitingsock

  • Occasional poster
  • *
  • Posts: 8
    • View Profile
Re: tar headers corrupt
« Reply #7 on: April 17, 2016, 05:52:13 PM »
My MD5 is identical. Can you confirm that you get all 5 albums extracted and not just 3. In the 7zip manager gui if you click the info button it says header errors for me, with a "tail size" of 250MB which is certainly the 2 albums not being accounted for.

I'll certainly check you guys out, I like a lot of different music!

edit: I wish I knew italian, gagarin sounds a little wierd compared to the italian version (I imagine). by the way, sweet mustache bro.
« Last Edit: April 17, 2016, 06:07:47 PM by bitingsock »

Offline LeoNeeson

  • Tireless poster
  • ****
  • Posts: 476
  • Solitario...
    • View Profile
    • twitter.com/LeoNeeson
Re: tar headers corrupt
« Reply #8 on: April 18, 2016, 05:34:35 AM »
If the MD5 is the same, then why don't you share your 7zip version (I mean, sharing all the files of the 7zip program, located in C:\Program Files\7-Zip), so Rejetto can try to reproduce your problem, using exactly the same 7zip version.
• HFS ahora también disponible en Español! (Clic aqui) :)
• HFS is now also available in Spanish! (Click here)

Offline bitingsock

  • Occasional poster
  • *
  • Posts: 8
    • View Profile
Re: tar headers corrupt
« Reply #9 on: April 18, 2016, 06:36:15 AM »
Would that be usefull? I'm using 15.14 64bit as well. worth a shot I guess,
https://anonfiles.com/file/c1bf374bf614b4a5eb9fc99d0f2f4deb

Offline bmartino1

  • Tireless poster
  • ****
  • Posts: 788
  • I'm only trying to help i mean no offense.
    • View Profile
    • none - google translate
Re: tar headers corrupt
« Reply #10 on: April 18, 2016, 02:42:26 PM »
Would that be usefull? I'm using 15.14 64bit as well. worth a shot I guess,
https://anonfiles.com/file/c1bf374bf614b4a5eb9fc99d0f2f4deb

the aynomuos network. ("anonfiles.com" is a prety bad hack temp site, 50  tryied to get in on the router.... guess that one geting add to the black list!) ..

THis stems down from havin a beta/bad version of 7zip...
although i have an offical build off of 7zip site, and was unable to get past 3 of the 5 folder from the tar archive, with 7zip giving issues about the header.

if 7zip version 9 works, i recommended to use that one....
beta version 9 : http://filehippo.com/download_7-zip_64/59707/
last stable version 9: http://filehippo.com/download_7-zip_64/8755/
« Last Edit: April 18, 2016, 02:46:09 PM by bmartino1 »
I'm only trying to help i mean no offense.
thank you for your time and patience,
Bmartino1

Offline bitingsock

  • Occasional poster
  • *
  • Posts: 8
    • View Profile
Re: tar headers corrupt
« Reply #11 on: April 18, 2016, 05:04:46 PM »
Oh, sorry about that, I've used them frequently without problems.
Anyway, version 9 does work because I think the error checking was not implemented back in that branch; but I'd rather not have to tell everyone I share files with that they need some other version besides the most popular one :(

Follow members gave a thank to your post:


Offline bmartino1

  • Tireless poster
  • ****
  • Posts: 788
  • I'm only trying to help i mean no offense.
    • View Profile
    • none - google translate
Re: tar headers corrupt
« Reply #12 on: April 18, 2016, 05:19:36 PM »
Oh, sorry about that, I've used them frequently without problems.
Anyway, version 9 does work because I think the error checking was not implemented back in that branch; but I'd rather not have to tell everyone I share files with that they need some other version besides the most popular one :(

whichi s also why i link this site:

http://www.rejetto.com/forum/bug-reports/no-archive-since-2-3f/

they might have some code or other to help fix this issue, i can confirm that its not working, this is a template isue in how HFS is "archiving"

i also belicve there was tlak of chaing the info to excute a 7zip....
been a long while, had soemthign programed like that to "tar archive, i know it possible...
I'm only trying to help i mean no offense.
thank you for your time and patience,
Bmartino1

Offline LeoNeeson

  • Tireless poster
  • ****
  • Posts: 476
  • Solitario...
    • View Profile
    • twitter.com/LeoNeeson
Re: tar headers corrupt
« Reply #13 on: April 19, 2016, 07:07:26 AM »
...but I'd rather not have to tell everyone I share files with that they need some other version besides the most popular one :(
I totally agree with you.
The last 7-Zip version is 15.14 (2015-12-31)
The official 7-Zip website is http://www.7-zip.org/

Would that be usefull? I'm using 15.14 64bit as well. worth a shot I guess,
https://anonfiles.com/file/c1bf374bf614b4a5eb9fc99d0f2f4deb
Your files are OK, you are using the last official release version. In case someone has trouble downloading your file from anonfiles.com, I've made a MD5 of your uploaded file (file attached). The only different file from the official distribution, is the file "7za.exe" (may be you've copied from an older version). That file is attached here too. Anyway, all the important thing here, is you are using the last version.

Maybe this error is related to Windows 10? Maybe Rejetto has only tested on XP? I don't have Windows 10 to test this. Well, if he can't reproduce your error, I don't know what else to suggest, sorry...
« Last Edit: April 19, 2016, 07:15:00 AM by LeoNeeson »
• HFS ahora también disponible en Español! (Clic aqui) :)
• HFS is now also available in Spanish! (Click here)

Follow members gave a thank to your post:


Offline bitingsock

  • Occasional poster
  • *
  • Posts: 8
    • View Profile
Re: tar headers corrupt
« Reply #14 on: April 19, 2016, 08:41:12 AM »
Indeed, the 7za.exe is from a previous install. I use it for a dependency somewhere but I should remove it.