git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git-send-pack segfaulting on DebianPPC

From
Junio C Hamano <junkio@cox.net>
Date
Oct 19, 2005, 09:21 UTC
Message-ID
<7v7jc9c15w.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<46a038f90510190202n60101c5cgf27bd714dce00513@mail.gmail.com>
Martin Langhoff <martin.langhoff@gmail.com> writes:
> ... However, git-fetch-pack is segfaulting on this Debian PPC
> (etch). This is true of the current git "master" and 0.99.8.c. I
> don'thave strace on the box until tomorrow, so I can't tell you more
> about it.

Thanks, that is good to know. As I said in another message, I looked at cg-fetch's current tag completion code while working on the ref^{tree} thing, and saw it used commit walker with '-a' option (IOW, not producing an incomplete tag) to download everything.

Even after fetch-pack segfaulted, since it does not update any refs itself (it only writes them to stdout for the wrapper to process), it should not have resulted in the repository that has refs pointing at objects it does not have. In fact, it writes its "SHA1 - name" list only after seeing unpack-objects exit successfully, that should not have resulted in a corrupt repository that records incomplete refs. I suspect there is something else going on here.

In cg-fetch, fetch-pack is used only in one location, and it does not have anything to do with the tag completion code. Presumably that explains why removing tags did not have any effect, although it does not explain why removing some objects did -- maybe those object files you needed to remove were corrupt?

Previous: Martin LanghoffNext: Martin Langhoff
Message 2 of 13 in “git-send-pack segfaulting on DebianPPC (was: Re: cg-clone, tag objects and cg-push/git-push don't play nice)”
  1. Martin LanghoffOct 19, 2005
  2. Junio C HamanoOct 19, 2005
  3. Martin LanghoffOct 19, 2005
  4. Linus TorvaldsOct 19, 2005
  5. Martin LanghoffOct 19, 2005
  6. Linus TorvaldsOct 19, 2005
  7. Junio C HamanoOct 19, 2005
  8. Petr BaudisOct 19, 2005
  9. Martin LanghoffOct 19, 2005
  10. Petr BaudisOct 19, 2005
  11. Junio C HamanoOct 20, 2005
  12. Petr BaudisOct 20, 2005
  13. Martin LanghoffOct 20, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.