login
Header Space

 
 

Re: Error converting from 1.4.4.1 to 1.5.0?

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Junio C Hamano <junkio@...>
Cc: <git@...>
Date: Wednesday, February 14, 2007 - 4:49 pm

On Wednesday, February 14, 2007 at 09:45:14 (-0800) Junio C Hamano writes:

In order:

% cd .git/objects/pack
% ls -l
-r--r--r--  1 rael software    77360 Feb 13 10:18 pack-23d1a9af78b4b78d...
-r--r--r--  1 rael software 87874337 Feb 14 10:00 pack-23d1a9af78b4b78d...

[output of ls trimmed to width]

% uname -a
Linux lisa.zopyra.com 2.6.9-34.0.2.ELsmp #1 SMP Fri Jul 7 18:22:55 CDT 2006 x86_64 x86_64 x86_64 GNU/Linux

I don't know which SHA-1 implementation I use --- I just installed git
and off I went.  I do see this:

% which sha1sum
/usr/bin/sha1sum
% sha1sum --version
shasum (coreutils) 5.2.1
Written by Ulrich Drepper and Scott Miller.
[...]

But I'm not sure which library is in use --- how do I know?


I don't know what "huge" is, but the pack file seems to be the largest
and then one of the objects is listed at 28,604,986 bytes, but nothing
else is very large.

So, before I get to Linus's message, I did try doing this:

1) with 1.4.4.1 git, clone my public repo
2) in this new clone, make modifications to my files as before
3) with 1.5.0 git, do a commit

and I got the same blowup on commit, and this on fsck, with 1.5.0 git:

% git fsck-objects --full
error: Packfile .git/objects/pack/pack-23d1a9af78b4b78d1f3750cf70f83cb91a20ba64.pack SHA1 mismatch with itself
error: 00078437c23cbc04da52233f4f412219f88b8927: object corrupt or missing
fatal: unknown object type 5 in .git/objects/pack/pack-23d1a9af78b4b78d1f3750cf70f83cb91a20ba64.pack

and with 1.4.4.1 git:

% /usr/bin/git fsck-objects --full
error: Packfile .git/objects/pack/pack-23d1a9af78b4b78d1f3750cf70f83cb91a20ba64.pack SHA1 mismatch with itself
fatal: corrupted pack file .git/objects/pack/pack-23d1a9af78b4b78d1f3750cf70f83cb91a20ba64.pack

So (hopefully this is helpful) I look in my public repo for this pack
file:

% ls -l /repos/git/fus/objects/pack
total 88420
-r--r--r--  1 blear software    10376 Feb 14 10:06 pack-1a201381fe465cbf4d771aec681aff6e12648ea0.idx
-r--r--r--  1 blear software   753437 Feb 14 10:06 pack-1a201381fe465cbf4d771aec681aff6e12648ea0.pack
-r--r--r--  1 blear software    77360 Feb 13 10:57 pack-23d1a9af78b4b78d1f3750cf70f83cb91a20ba64.idx
-r--r--r--  1 blear software 89576130 Feb 13 10:57 pack-23d1a9af78b4b78d1f3750cf70f83cb91a20ba64.pack

and notice, it is different than the same pack on my just-cloned repo
(that is, the second clone, that I used to reproduce the first
failure):

% ls -l objects/pack/
total 87632
-r--r--r--  1 blear software    77360 Feb 14 12:50 pack-23d1a9af78b4b78d1f3750cf70f83cb91a20ba64.idx
-r--r--r--  1 blear software 89548154 Feb 14 12:52 pack-23d1a9af78b4b78d1f3750cf70f83cb91a20ba64.pack

and in my first-cloned repo:

% ls -l objects/pack/
total 85992
-r--r--r--  1 blear software    77360 Feb 13 10:18 pack-23d1a9af78b4b78d1f3750cf70f83cb91a20ba64.idx
-r--r--r--  1 blear software 87874337 Feb 14 10:00 pack-23d1a9af78b4b78d1f3750cf70f83cb91a20ba64.pack

The .pack files have the same SHA, but different sizes (don't know
what that means).

I will continue digging and on to Linus's post...


Bill
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Error converting from 1.4.4.1 to 1.5.0?, Bill Lear, (Wed Feb 14, 12:12 pm)
Re: Error converting from 1.4.4.1 to 1.5.0?, Junio C Hamano, (Wed Feb 14, 1:15 pm)
Re: Error converting from 1.4.4.1 to 1.5.0?, Bill Lear, (Wed Feb 14, 1:20 pm)
Re: Error converting from 1.4.4.1 to 1.5.0?, Linus Torvalds, (Wed Feb 14, 2:19 pm)
Re: Error converting from 1.4.4.1 to 1.5.0?, Bill Lear, (Wed Feb 14, 5:13 pm)
Re: Error converting from 1.4.4.1 to 1.5.0?, Linus Torvalds, (Wed Feb 14, 5:35 pm)
Re: Error converting from 1.4.4.1 to 1.5.0?, Linus Torvalds, (Wed Feb 14, 2:42 pm)
Re: Error converting from 1.4.4.1 to 1.5.0?, Junio C Hamano, (Wed Feb 14, 1:45 pm)
Re: Error converting from 1.4.4.1 to 1.5.0?, Bill Lear, (Wed Feb 14, 4:49 pm)
Re: Error converting from 1.4.4.1 to 1.5.0?, Junio C Hamano, (Wed Feb 14, 5:32 pm)
Re: Error converting from 1.4.4.1 to 1.5.0?, Nicolas Pitre, (Wed Feb 14, 5:14 pm)
Re: Error converting from 1.4.4.1 to 1.5.0?, Junio C Hamano, (Wed Feb 14, 5:12 pm)
Re: Error converting from 1.4.4.1 to 1.5.0?, Bill Lear, (Wed Feb 14, 5:18 pm)
Re: Error converting from 1.4.4.1 to 1.5.0?, Bill Lear, (Wed Feb 14, 4:58 pm)
Re: Error converting from 1.4.4.1 to 1.5.0?, Linus Torvalds, (Wed Feb 14, 5:19 pm)
Re: Error converting from 1.4.4.1 to 1.5.0?, Bill Lear, (Wed Feb 14, 5:40 pm)
Re: Error converting from 1.4.4.1 to 1.5.0?, Uwe , (Thu Feb 15, 4:40 am)
Re: Error converting from 1.4.4.1 to 1.5.0?, Linus Torvalds, (Wed Feb 14, 7:03 pm)
Re: Error converting from 1.4.4.1 to 1.5.0?, Nicolas Pitre, (Wed Feb 14, 6:27 pm)
Re: Error converting from 1.4.4.1 to 1.5.0?, Linus Torvalds, (Wed Feb 14, 7:24 pm)
Re: Error converting from 1.4.4.1 to 1.5.0?, Bill Lear, (Wed Feb 14, 6:41 pm)
OT: data destruction classics (was: Re: Error converting fro..., Simon 'corecode' Schubert..., (Wed Feb 14, 9:18 pm)
Re: OT: data destruction classics (was: Re: Error converting..., Johannes Schindelin, (Thu Feb 15, 6:24 am)
Re: OT: data destruction classics (was: Re: Error converting..., Michael K. Edwards, (Thu Feb 15, 9:13 am)
Re: Error converting from 1.4.4.1 to 1.5.0?, Johannes Schindelin, (Wed Feb 14, 6:02 pm)
Re: Error converting from 1.4.4.1 to 1.5.0?, Junio C Hamano, (Wed Feb 14, 5:47 pm)
Re: Error converting from 1.4.4.1 to 1.5.0?, Junio C Hamano, (Wed Feb 14, 5:52 pm)
Re: Error converting from 1.4.4.1 to 1.5.0?, Johannes Schindelin, (Wed Feb 14, 6:04 pm)
Re: Error converting from 1.4.4.1 to 1.5.0?, Junio C Hamano, (Wed Feb 14, 6:13 pm)
Re: Error converting from 1.4.4.1 to 1.5.0?, Olivier Galibert, (Wed Feb 14, 8:54 pm)
Re: Error converting from 1.4.4.1 to 1.5.0?, Johannes Schindelin, (Wed Feb 14, 9:36 pm)
Re: Error converting from 1.4.4.1 to 1.5.0?, Johannes Schindelin, (Wed Feb 14, 6:32 pm)
Re: Error converting from 1.4.4.1 to 1.5.0?, Bill Lear, (Wed Feb 14, 1:07 pm)
speck-geostationary