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

Re: Segmentation fault on http clone, post-1.5.6

From
TLTeemu Likonen <tlikonen@iki.fi>
Date
Jun 24, 2008, 20:55 UTC
Message-ID
<20080624205556.GA3565@mithlond.arda.local>
In-Reply-To
<alpine.LFD.1.10.0806241524480.2979@xanadu.home>
Nicolas Pitre wrote (2008-06-24 15:34 -0400):
> I'm trying to reproduce your segfault with current master
> (v1.5.6-56-g29b0d01) but I just can't.
> 
> Can you provide a gdb backtrace of the segfault?

Let's hope I'm doing this right. Just installed gdb for the first time. I started with "gdb git" and then typed "run clone http://...". Eventually it gave this:

Program received signal SIGSEGV, Segmentation fault. 0x080cb69a in find_pack_entry (sha1=0x81675bc "\224�d�BX\006�\020��\016�2\214\002\n�R", e=0xbfcccd18, ignore_packed=0x0) at cache.h:489 489 return memcmp(sha1, sha2, 20);

And "bt" command prints this:
#0  0x080cb69a in find_pack_entry (sha1=0x81675bc "\224�d�BX\006�\020��\016�2\214\002\n�R", e=0xbfcccd18, ignore_packed=0x0)
    at cache.h:489
#1  0x080cd05f in read_packed_sha1 (sha1=0x6900736b <Address 0x6900736b out of bounds>, type=0xbfccede4, size=0xbfccede8)
    at sha1_file.c:1924
#2  0x080cd211 in read_sha1_file (sha1=0x81675bc "\224�d�BX\006�\020��\016�2\214\002\n�R", type=0xbfccede4, size=0xbfccede8)
    at sha1_file.c:2016
#3  0x080b468a in parse_object (sha1=0x81675bc "\224�d�BX\006�\020��\016�2\214\002\n�R") at object.c:190
#4  0x080d69bd in walker_fetch (walker=0x8147610, targets=89, target=0x8163270, write_ref=0x0, write_ref_log_details=0x0) at walker.c:182
#5  0x080d16d1 in fetch_objs_via_curl (transport=0x81475e0, nr_objs=89, to_fetch=0x81630a0) at transport.c:369
#6  0x080d0c57 in transport_fetch_refs (transport=0x81475e0, refs=0x8163020) at transport.c:814
#7  0x0805be15 in cmd_clone (argc=2, argv=dwarf2_read_address: Corrupted DWARF expression.
) at builtin-clone.c:465
#8  0x0804b081 in handle_internal_command (argc=2, argv=0xbfcd1568) at git.c:252
#9  0x0804b272 in main (argc=0, argv=0x8165240) at git.c:448
Previous: Nicolas PitreNext: Nicolas Pitre
Message 6 of 8 in “Segmentation fault on http clone, post-1.5.6”
  1. Teemu LikonenJun 24, 2008
  2. Jeff KingJun 24, 2008
  3. Teemu LikonenJun 24, 2008
  4. Mike HommeyJun 24, 2008
  5. Nicolas PitreJun 24, 2008
  6. Teemu LikonenJun 24, 2008
  7. Nicolas PitreJun 24, 2008
  8. SZEDER GáborJun 24, 2008

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.