threads / discuss / 5323

something broken just now on git-pull from openbsd to OSX

Subject: something broken just now on git-pull from openbsd to OSX

## tl;dr

4 messages between Aug 18, 2006 and Aug 18, 2006.

replies: 3people: 2as markdown or json

Randal L. Schwartz· Aug 18, 2006, 16:17 UTC · lore

I just updated my openbsd's GIT to 1.4.2.g55c3, and now my git-fetch from there to my OSX fails with a fatal error almost immediately.

What just changed?  What can I check?
git-fetch from other repositories to OSX seems to work fine.
-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
Randal L. Schwartz· Aug 18, 2006, 16:19 UTC · re: Randal L. Schwartz · lore

Re: something broken just now on git-pull from openbsd to OSX

>>>>> "Randal" == Randal L Schwartz <merlyn@stonehenge.com> writes:

Randal> I just updated my openbsd's GIT to 1.4.2.g55c3, and now my Randal> git-fetch from there to my OSX fails with a fatal error almost immediately.

Randal> What just changed?  What can I check?
Randal> git-fetch from other repositories to OSX seems to work fine.

Ahh, it might even be a corrupt repository... here's what a local git-clone shows:

git-clone ~/Git/stonehenge.git
remote: Generating pack...
remote: Done counting 2610 objects.
remote: Deltifying 2610 objects.
 100% (2610/2610) done
remote: Total 2610, written 2610 (delta 1244), reused 2610 (delta 1244)
error: git-fetch-pack: unable to read from git-index-pack
error: git-index-pack died of signal 11
fetch-pack from '/home/merlyn/Git/stonehenge.git/.git' failed.
What do you want me to try to help diagnose this?
-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
Randal L. Schwartz· Aug 18, 2006, 16:22 UTC · re: Randal L. Schwartz · lore

Re: something broken just now on git-pull from openbsd to OSX

>>>>> "Randal" == Randal L Schwartz <merlyn@stonehenge.com> writes:
>>>>> "Randal" == Randal L Schwartz <merlyn@stonehenge.com> writes:

Randal> I just updated my openbsd's GIT to 1.4.2.g55c3, and now my Randal> git-fetch from there to my OSX fails with a fatal error almost immediately.

Randal> What just changed?  What can I check?
Randal> git-fetch from other repositories to OSX seems to work fine.

Randal> Ahh, it might even be a corrupt repository... here's what Randal> a local git-clone shows:

Randal> git-clone ~/Git/stonehenge.git Randal> remote: Generating pack... Randal> remote: Done counting 2610 objects. Randal> remote: Deltifying 2610 objects. Randal> 100% (2610/2610) done Randal> remote: Total 2610, written 2610 (delta 1244), reused 2610 (delta 1244) Randal> error: git-fetch-pack: unable to read from git-index-pack Randal> error: git-index-pack died of signal 11 Randal> fetch-pack from '/home/merlyn/Git/stonehenge.git/.git' failed.

Randal> What do you want me to try to help diagnose this?
And even more info:
    $ git-repack -a -d
    Generating pack...
    Done counting 2610 objects.
    Deltifying 2610 objects.
     100% (2610/2610) done
    Writing 2610 objects.
     100% (2610/2610) done
    Total 2610, written 2610 (delta 1244), reused 2610 (delta 1244)
    Pack pack-3cd61a256bd8736b13b0356aafff016260c22b80 created.
    $ git-repack -a -d -f
    Generating pack...
    Done counting 2610 objects.
    Deltifying 2610 objects.
    Segmentation fault 
Oops!  That's not good.
-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
Junio C Hamano· Aug 18, 2006, 21:26 UTC · re: Randal L. Schwartz · lore

Re: something broken just now on git-pull from openbsd to OSX

merlyn@stonehenge.com (Randal L. Schwartz) writes:
Show 18 quoted lines
> And even more info:
>
>     $ git-repack -a -d
>     Generating pack...
>     Done counting 2610 objects.
>     Deltifying 2610 objects.
>      100% (2610/2610) done
>     Writing 2610 objects.
>      100% (2610/2610) done
>     Total 2610, written 2610 (delta 1244), reused 2610 (delta 1244)
>     Pack pack-3cd61a256bd8736b13b0356aafff016260c22b80 created.
>     $ git-repack -a -d -f
>     Generating pack...
>     Done counting 2610 objects.
>     Deltifying 2610 objects.
>     Segmentation fault 
>
> Oops!  That's not good.
Indeed it is not good.
First we would need to see who is dying.
git-repack -a -d -f does:
 - list all the objects that need to be packed by running
	git rev-list --objects --all
 - piping that to pack-objects
 - after that remove old ones (because -d is given)

I am suspecting it is either rev-list or pack-objects, but let's isolate which first.

	git-rev-list --objects --all >/var/tmp/revlist.out
Does this die?  If not
	git-pack-objects pack </var/tmp/revlist.out
does this die?

Once you isolate which, can you bisect to see where it broke in recent history (assuming it worked ever on OSX)?

← back to recent threads