Re: Segmentation fault on http clone, post-1.5.6
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