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

Re: git died

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Apr 26, 2007, 19:51 UTC
Message-ID
<alpine.LFD.0.98.0704261246270.9964@woody.linux-foundation.org>
In-Reply-To
<46309924.70401@beronet.com>
On Thu, 26 Apr 2007, Christian wrote:
Show 10 quoted lines
> Julian Phillips wrote:
> 
> Loaded symbols for /lib/tls/libnss_dns.so.2
> #0  decode_tree_entry (desc=0xbff5110c, buf=0x0, size=454) at tree-walk.c:10
> 10              while ((c = *str++) != ' ') {
> (gdb) bt
> #0  decode_tree_entry (desc=0xbff5110c, buf=0x0, size=454) at tree-walk.c:10
> #1  0x0804b9a8 in mark_tree_uninteresting (tree=0x80d0240) at revision.c:65
> #2  0x080534cd in main (argc=2, argv=Cannot access memory at address 0x1ca
> ) at http-push.c:1998
It looks like some strange corruption in http-push.

You seem to have a NULL "buf" pointer (which certainly explains a SIGSEGV!), but mark_tree_uninteresting will have done

	if (parse_tree(tree) < 0)
		die("bad tree %s", sha1_to_hex(obj->sha1));
	init_tree_desc(&desc, tree->buffer, tree->size);
	while (tree_entry(&desc, &entry)) {
		..
and tree_entry() does
	*entry = desc->entry;
	update_tree_entry(desc);
and none of that sets "entry->buf" to NULL unless "size" was also zero.

Can you run it under something like valgrind? You'd need to run "git-http-push" directly (as I don't think valgrind follows forks, and even if you can make it do so some way that would just be horribly slow and hard to debug).

		Linus
Previous: ChristianNext: Junio C Hamano
Message 4 of 5 in “git died”
  1. ChristianApr 26, 2007
  2. Julian PhillipsApr 26, 2007
  3. ChristianApr 26, 2007
  4. Linus TorvaldsApr 26, 2007
  5. Junio C HamanoApr 26, 2007

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.