Skip to contentSkip to conversation

corrupted tags in git://git.denx.de/u-boot ?

U-Boot Igor Grinberg 4 participants 7 messages Jun 23, 2015 – Jun 26, 2015

lore
Share & tools
lore
#0 lore raw

Hi guys,

While running git fsck --full, I've noticed the following:
-------------------------------cut-------------------------------------

$ git fsck --full
Checking object directories: 100% (256/256), done.
error in tag 9bf86baaa3b35b25baa2d664e2f7f6cafad689ee: unterminated header
error in tag c7071e6d645a8e13adb0d4cea2caad27213fa62f: unterminated header
error in tag eb394f56db3e05d00891d6dc36a00df0025cf255: unterminated header
Checking objects: 100% (356677/356677), done.
Checking connectivity: 356680, done.
-------------------------------cut-------------------------------------

So, I did git describe on those:
-------------------------------cut-------------------------------------

$ git describe 9bf86baaa3b35b25baa2d664e2f7f6cafad689ee c7071e6d645a8e13adb0d4cea2caad27213fa62f eb394f56db3e05d00891d6dc36a00df0025cf255
LABEL_2006_04_18_1106
LABEL_2006_05_19_1133
LABEL_2006_03_12_0025
-------------------------------cut-------------------------------------

Having no apparent need of those tags, I just git tag -d them and git gc:
-------------------------------cut-------------------------------------

$ git tag -d LABEL_2006_03_12_0025 LABEL_2006_04_18_1106 LABEL_2006_05_19_1133
Deleted tag 'LABEL_2006_03_12_0025' (was eb394f5)
Deleted tag 'LABEL_2006_04_18_1106' (was 9bf86ba)
Deleted tag 'LABEL_2006_05_19_1133' (was c7071e6)
$ git gc --prune=now
Counting objects: 356677, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (64947/64947), done.
Writing objects: 100% (356677/356677), done.
Total 356677 (delta 285384), reused 356677 (delta 285384)
Checking connectivity: 356677, done.
-------------------------------cut-------------------------------------

After the above git fsck --full got much happier:
-------------------------------cut-------------------------------------

$ git fsck --full 
Checking object directories: 100% (256/256), done.
Checking objects: 100% (356677/356677), done.
Checking connectivity: 356677, done.
-------------------------------cut-------------------------------------

Now, next time I git remote update, I get them back:
-------------------------------cut-------------------------------------

$ git remote update 
Fetching origin
remote: Counting objects: 3, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 3 (delta 0), reused 3 (delta 0)
Unpacking objects: 100% (3/3), done.
From git://git.denx.de/u-boot
 * [new tag]         LABEL_2006_03_12_0025 -> LABEL_2006_03_12_0025
 * [new tag]         LABEL_2006_04_18_1106 -> LABEL_2006_04_18_1106
 * [new tag]         LABEL_2006_05_19_1133 -> LABEL_2006_05_19_1133
-------------------------------cut-------------------------------------

and once again git fsck --full complains:
-------------------------------cut-------------------------------------

$ git fsck --full
Checking object directories: 100% (256/256), done.
error in tag 9bf86baaa3b35b25baa2d664e2f7f6cafad689ee: unterminated header
error in tag c7071e6d645a8e13adb0d4cea2caad27213fa62f: unterminated header
error in tag eb394f56db3e05d00891d6dc36a00df0025cf255: unterminated header
Checking objects: 100% (356677/356677), done.
Checking connectivity: 356680, done.
-------------------------------cut-------------------------------------

Is it only me suffering from some kind of corruption on remote update or do we all have the same problem and I'm the first to notice (or just missed a thread about this)?

Thanks for help!

Signature · 2 lines
Regards,
Igor.
#1 lore raw

Dear Igor,

Quoted 11 lines · In message <[email protected]> you wrote:

While running git fsck --full, I've noticed the following:
-------------------------------cut-------------------------------------

$ git fsck --full
Checking object directories: 100% (256/256), done.
error in tag 9bf86baaa3b35b25baa2d664e2f7f6cafad689ee: unterminated header
error in tag c7071e6d645a8e13adb0d4cea2caad27213fa62f: unterminated header
error in tag eb394f56db3e05d00891d6dc36a00df0025cf255: unterminated header
Checking objects: 100% (356677/356677), done.
Checking connectivity: 356680, done.
-------------------------------cut-------------------------------------

Running this on the master repo gives:

-> git fsck --full
Checking object directories: 100% (256/256), done. Checking objects: 100% (328644/328644), done. Checking connectivity: 325719, done.

Quoted 3 lines

Is it only me suffering from some kind of corruption on remote update or do we all have the same problem and I'm the first to notice (or just missed a thread about this)?

Doing a fresh clone from the public repo gives this:

-> git clone git://git.denx.de/u-boot
Cloning into 'u-boot'...
remote: Counting objects: 325719, done.
remote: Compressing objects: 100% (62600/62600), done.
remote: Total 325719 (delta 260566), reused 322218 (delta 257187) Receiving objects: 100% (325719/325719), 73.56 MiB | 1.55 MiB/s, done. Resolving deltas: 100% (260566/260566), done.
Checking connectivity... done.
-> cd u-boot/
/tmp/u-boot
-> git fsck --full
Checking object directories: 100% (256/256), done.
Checking objects: 100% (325719/325719), done.
Checking connectivity: 325719, done.

In other words, I cannot reproduce your issue here.

Best regards,

Wolfgang Denk

Signature · 6 lines
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The years of peak mental activity are undoubtedly between the ages of
four and eighteen. At four we know all the questions, at eighteen all
the answers.
#2 lore raw

Hi Wolfgang,

Thanks for the quick reply!

Quoted 43 lines · Wolfgang Denk

Dear Igor,

Quoted 11 lines · In message <[email protected]> you wrote:

While running git fsck --full, I've noticed the following:
-------------------------------cut-------------------------------------

$ git fsck --full
Checking object directories: 100% (256/256), done.
error in tag 9bf86baaa3b35b25baa2d664e2f7f6cafad689ee: unterminated header
error in tag c7071e6d645a8e13adb0d4cea2caad27213fa62f: unterminated header
error in tag eb394f56db3e05d00891d6dc36a00df0025cf255: unterminated header
Checking objects: 100% (356677/356677), done.
Checking connectivity: 356680, done.
-------------------------------cut-------------------------------------

Running this on the master repo gives:

-> git fsck --full
Checking object directories: 100% (256/256), done. Checking objects: 100% (328644/328644), done. Checking connectivity: 325719, done.

Quoted 3 lines

Is it only me suffering from some kind of corruption on remote update or do we all have the same problem and I'm the first to notice (or just missed a thread about this)?

Doing a fresh clone from the public repo gives this:

-> git clone git://git.denx.de/u-boot
Cloning into 'u-boot'...
remote: Counting objects: 325719, done.
remote: Compressing objects: 100% (62600/62600), done.
remote: Total 325719 (delta 260566), reused 322218 (delta 257187) Receiving objects: 100% (325719/325719), 73.56 MiB | 1.55 MiB/s, done. Resolving deltas: 100% (260566/260566), done.
Checking connectivity... done.
-> cd u-boot/
/tmp/u-boot
-> git fsck --full
Checking object directories: 100% (256/256), done.
Checking objects: 100% (325719/325719), done.
Checking connectivity: 325719, done.

Quoted 1 line

In other words, I cannot reproduce your issue here.

May be it has something to do with my git version?

$ git --version
git version 2.3.6

I performed the clone test too and it gets the same error:

$ git clone git://git.denx.de/u-boot test
Cloning into 'test'...
remote: Counting objects: 325719, done.
remote: Compressing objects: 100% (62600/62600), done.
remote: Total 325719 (delta 260566), reused 322218 (delta 257187)
Receiving objects: 100% (325719/325719), 73.56 MiB | 2.48 MiB/s, done.
Resolving deltas: 100% (260566/260566), done.
Checking connectivity... done.
$ cd test/
$ git fsck --full
Checking object directories: 100% (256/256), done.
error in tag eb394f56db3e05d00891d6dc36a00df0025cf255: unterminated header
error in tag 9bf86baaa3b35b25baa2d664e2f7f6cafad689ee: unterminated header
error in tag c7071e6d645a8e13adb0d4cea2caad27213fa62f: unterminated header
Checking objects: 100% (325719/325719), done.
Checking connectivity: 325719, done.

It seems that the check for termination with '\n' in tag headers started to be a requirement from git version 2.2.0? This [1] seems to be the patch that triggers the message I see.

[1] https://github.com/git/git/commit/4d0d89755e82c40df88cf94d84031978f8eac827

Signature · 2 lines
Regards,
Igor.
#3 lore raw

Dear Igor,

Quoted 6 lines · In message <[email protected]> you wrote:
Quoted 2 lines

In other words, I cannot reproduce your issue here.

May be it has something to do with my git version?

$ git --version
git version 2.3.6

I did my tests with:

-> git --version
git version 2.1.0

[This is what Fedora 21 uses.]

In Fedora 22 I get

-> git --version
git version 2.4.2

which then shows:

-> git fsck --full
Checking object directories: 100% (256/256), done.
error in tag eb394f56db3e05d00891d6dc36a00df0025cf255: unterminated header error in tag 9bf86baaa3b35b25baa2d664e2f7f6cafad689ee: unterminated header error in tag c7071e6d645a8e13adb0d4cea2caad27213fa62f: unterminated header Checking objects: 100% (328644/328644), done.
Checking connectivity: 325719, done.

Quoted 7 lines
$ git fsck --full
Checking object directories: 100% (256/256), done.
error in tag eb394f56db3e05d00891d6dc36a00df0025cf255: unterminated header
error in tag 9bf86baaa3b35b25baa2d664e2f7f6cafad689ee: unterminated header
error in tag c7071e6d645a8e13adb0d4cea2caad27213fa62f: unterminated header
Checking objects: 100% (325719/325719), done.
Checking connectivity: 325719, done.

Confirmed.

Quoted 2 lines

It seems that the check for termination with '\n' in tag headers started to be a requirement from git version 2.2.0?

I think you are right. The fact that v2.1.0 does not show anything but v2.3.6 and v2.4.2 do also supports your analysis.

Quoted 3 lines

This [1] seems to be the patch that triggers the message I see.

[1] https://github.com/git/git/commit/4d0d89755e82c40df88cf94d84031978f8eac827

Yes, I agree.

So apparently the tags LABEL_2006_03_12_0025, LABEL_2006_04_18_1106, and LABEL_2006_05_19_1133 are affected.

IIUC it should be a harmless thing to just recreate the same tags (referring to the same commits)? Or can anybody see any problems tha might be caused by such a tag re-creation? I mean, it is not like a rebase of the repository or something like that? Right?

Best regards,

Wolfgang Denk

Signature · 6 lines
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
C++ was an interesting and valuable experiment, but we've learned its
lessons and it's time to move on.
                            - Peter Curran in <[email protected]>
#4 lore raw
Quoted 56 lines · Wolfgang Denk

Dear Igor,

Quoted 6 lines · In message <[email protected]> you wrote:
Quoted 2 lines

In other words, I cannot reproduce your issue here.

May be it has something to do with my git version?

$ git --version
git version 2.3.6

I did my tests with:

-> git --version
git version 2.1.0

[This is what Fedora 21 uses.]

In Fedora 22 I get

-> git --version
git version 2.4.2

which then shows:

-> git fsck --full
Checking object directories: 100% (256/256), done.
error in tag eb394f56db3e05d00891d6dc36a00df0025cf255: unterminated header error in tag 9bf86baaa3b35b25baa2d664e2f7f6cafad689ee: unterminated header error in tag c7071e6d645a8e13adb0d4cea2caad27213fa62f: unterminated header Checking objects: 100% (328644/328644), done.
Checking connectivity: 325719, done.

Quoted 7 lines
$ git fsck --full
Checking object directories: 100% (256/256), done.
error in tag eb394f56db3e05d00891d6dc36a00df0025cf255: unterminated header
error in tag 9bf86baaa3b35b25baa2d664e2f7f6cafad689ee: unterminated header
error in tag c7071e6d645a8e13adb0d4cea2caad27213fa62f: unterminated header
Checking objects: 100% (325719/325719), done.
Checking connectivity: 325719, done.

Confirmed.

Quoted 2 lines

It seems that the check for termination with '\n' in tag headers started to be a requirement from git version 2.2.0?

I think you are right. The fact that v2.1.0 does not show anything but v2.3.6 and v2.4.2 do also supports your analysis.

Quoted 3 lines

This [1] seems to be the patch that triggers the message I see.

[1] https://github.com/git/git/commit/4d0d89755e82c40df88cf94d84031978f8eac827

Yes, I agree.

Quoted 7 lines

So apparently the tags LABEL_2006_03_12_0025, LABEL_2006_04_18_1106, and LABEL_2006_05_19_1133 are affected.

IIUC it should be a harmless thing to just recreate the same tags (referring to the same commits)? Or can anybody see any problems tha might be caused by such a tag re-creation? I mean, it is not like a rebase of the repository or something like that? Right?

Lets take it up on the git list and ask for help/advice?

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150625/05f65b57/attachment.sig>
#5 lore raw

Dear Tom,
dear Igor,

Quoted 3 lines · In message <20150625132731.GC28577@bill-the-cat> you wrote:
Quoted 3 lines
Quoted 3 lines

It seems that the check for termination with '\n' in tag headers started to be a requirement from git version 2.2.0?

...

Quoted 2 lines
Quoted 2 lines

So apparently the tags LABEL_2006_03_12_0025, LABEL_2006_04_18_1106, and LABEL_2006_05_19_1133 are affected.

...

Quoted 6 lines
Quoted 4 lines

IIUC it should be a harmless thing to just recreate the same tags (referring to the same commits)? Or can anybody see any problems tha might be caused by such a tag re-creation? I mean, it is not like a rebase of the repository or something like that? Right?

Lets take it up on the git list and ask for help/advice?

Well, the summary of the comments on the git list is like this:

I am inclined to say that these messages are that recent Git barking at a non-errors, and hopefully there is nothing other than ignoring them you have to do until it gets fixed.

See [1] for more details.

At the moment I tend to just wait for the results of the ongoing discussion, It appears to me that we might need no changes to the existing repo.

[1] http://thread.gmane.org/gmane.comp.version-control.git/272689/focus=272704

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
What is mind?  No matter.  What is matter?  Never mind.
                                      -- Thomas Hewitt Key, 1799-1875
#6 lore raw
In reply to Igor Grinberg

Hi Igor,

Quoted 69 lines · Igor Grinberg

Hi guys,

While running git fsck --full, I've noticed the following:
-------------------------------cut-------------------------------------

$ git fsck --full
Checking object directories: 100% (256/256), done.
error in tag 9bf86baaa3b35b25baa2d664e2f7f6cafad689ee: unterminated header
error in tag c7071e6d645a8e13adb0d4cea2caad27213fa62f: unterminated header
error in tag eb394f56db3e05d00891d6dc36a00df0025cf255: unterminated header
Checking objects: 100% (356677/356677), done.
Checking connectivity: 356680, done.
-------------------------------cut-------------------------------------

So, I did git describe on those:
-------------------------------cut-------------------------------------

$ git describe 9bf86baaa3b35b25baa2d664e2f7f6cafad689ee c7071e6d645a8e13adb0d4cea2caad27213fa62f eb394f56db3e05d00891d6dc36a00df0025cf255
LABEL_2006_04_18_1106
LABEL_2006_05_19_1133
LABEL_2006_03_12_0025
-------------------------------cut-------------------------------------

Having no apparent need of those tags, I just git tag -d them and git gc:
-------------------------------cut-------------------------------------

$ git tag -d LABEL_2006_03_12_0025 LABEL_2006_04_18_1106 LABEL_2006_05_19_1133
Deleted tag 'LABEL_2006_03_12_0025' (was eb394f5)
Deleted tag 'LABEL_2006_04_18_1106' (was 9bf86ba)
Deleted tag 'LABEL_2006_05_19_1133' (was c7071e6)
$ git gc --prune=now
Counting objects: 356677, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (64947/64947), done.
Writing objects: 100% (356677/356677), done.
Total 356677 (delta 285384), reused 356677 (delta 285384)
Checking connectivity: 356677, done.
-------------------------------cut-------------------------------------

After the above git fsck --full got much happier:
-------------------------------cut-------------------------------------

$ git fsck --full
Checking object directories: 100% (256/256), done.
Checking objects: 100% (356677/356677), done.
Checking connectivity: 356677, done.
-------------------------------cut-------------------------------------

Now, next time I git remote update, I get them back:
-------------------------------cut-------------------------------------

$ git remote update
Fetching origin
remote: Counting objects: 3, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 3 (delta 0), reused 3 (delta 0)
Unpacking objects: 100% (3/3), done.
From git://git.denx.de/u-boot
 * [new tag]         LABEL_2006_03_12_0025 -> LABEL_2006_03_12_0025
 * [new tag]         LABEL_2006_04_18_1106 -> LABEL_2006_04_18_1106
 * [new tag]         LABEL_2006_05_19_1133 -> LABEL_2006_05_19_1133
-------------------------------cut-------------------------------------

and once again git fsck --full complains:
-------------------------------cut-------------------------------------

$ git fsck --full
Checking object directories: 100% (256/256), done.
error in tag 9bf86baaa3b35b25baa2d664e2f7f6cafad689ee: unterminated header
error in tag c7071e6d645a8e13adb0d4cea2caad27213fa62f: unterminated header
error in tag eb394f56db3e05d00891d6dc36a00df0025cf255: unterminated header
Checking objects: 100% (356677/356677), done.
Checking connectivity: 356680, done.
-------------------------------cut-------------------------------------
Quoted 3 lines

Is it only me suffering from some kind of corruption on remote update or do we all have the same problem and I'm the first to notice (or just missed a thread about this)?

I don't see this either.

Have you tried a fresh clone?

Thanks,
-Joe