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

4 messages from 2006-08-18 to 2006-08-18. Participants: Randal L. Schwartz, Junio C Hamano.
Thread: https://gitlist.dev/t/5323

## Randal L. Schwartz, 2006-08-18 16:17

Subject: something broken just now on git-pull from openbsd to OSX
Message-ID: <86pseykogj.fsf@blue.stonehenge.com>
URL: https://gitlist.dev/e/86pseykogj.fsf%40blue.stonehenge.com

```

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, 2006-08-18 16:19

Subject: Re: something broken just now on git-pull from openbsd to OSX
Message-ID: <86lkpmkod3.fsf@blue.stonehenge.com>
URL: https://gitlist.dev/e/86lkpmkod3.fsf%40blue.stonehenge.com
In-Reply-To: <86pseykogj.fsf@blue.stonehenge.com>

```
>>>>> "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, 2006-08-18 16:22

Subject: Re: something broken just now on git-pull from openbsd to OSX
Message-ID: <86hd0ako8h.fsf@blue.stonehenge.com>
URL: https://gitlist.dev/e/86hd0ako8h.fsf%40blue.stonehenge.com
In-Reply-To: <86lkpmkod3.fsf@blue.stonehenge.com>

```
>>>>> "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, 2006-08-18 21:26

Subject: Re: something broken just now on git-pull from openbsd to OSX
Message-ID: <7vwt9568i9.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7vwt9568i9.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <86hd0ako8h.fsf@blue.stonehenge.com>

```
merlyn@stonehenge.com (Randal L. Schwartz) writes:

> 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)?

```
