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

Bug: Segmentation fault (core dumped)

From
RMRobert Mitwicki <robert.mitwicki@opensoftware.pl>
Date
Oct 4, 2013, 13:54 UTC
Message-ID
<524EC896.3050703@opensoftware.pl>
Hi,

When I am trying to clone an empty repository and I will use together --depth 1 and -b branch_name (branch does not exist) then I get Segmentation fault (repo seems to be cloned correctly).

Please see attachment for more details. Best regards Robert Mitwicki

>  git clone --depth 1 -b test https://github.com/mitfik/coredump.git /tmp/coredump.git

Cloning into '/tmp/coredump.git'... warning: You appear to have cloned an empty repository. Segmentation fault (core dumped) Unexpected end of command stream

> git --version
git version 1.8.4

(gdb) info registers rax 0x0 0 rbx 0x0 0 rcx 0x0 0 rdx 0x72 114 rsi 0x519d04 5348612 rdi 0x58 88 rbp 0x7d9680 0x7d9680 rsp 0x7fffffffd8f8 0x7fffffffd8f8 r8 0x7fffffffe30b 140737488347915 r9 0x58 88 r10 0x7fffffffd6c0 140737488344768 r11 0x7ffff72c1d50 140737340251472 r12 0x0 0 r13 0x1 1 r14 0x58 88 r15 0x0 0 rip 0x7ffff72c1d68 0x7ffff72c1d68 eflags 0x10206 [ PF IF RF ] cs 0x33 51 ss 0x2b 43 ds 0x0 0 es 0x0 0 fs 0x0 0 gs 0x0 0

(gdb) bt #0 0x00007ffff72c1d68 in ?? () from /lib/x86_64-linux-gnu/libc.so.6 #1 0x00000000004204a0 in ?? () #2 0x0000000000405b84 in ?? () #3 0x0000000000404f6d in ?? () #4 0x00007ffff71af76d in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6 #5 0x00000000004053b9 in ?? () #6 0x00007fffffffe078 in ?? () #7 0x000000000000001c in ?? () #8 0x0000000000000008 in ?? () #9 0x00007fffffffe2eb in ?? () #10 0x00007fffffffe310 in ?? () #11 0x00007fffffffe337 in ?? () #12 0x0000000000000000 in ?? ()

(gdb) x/60x $sp 0x7fffffffd8f8: 0x00000000 0x00000000 0x007d9680 0x00000000 0x7fffffffd908: 0x00000000 0x00000000 0x00000001 0x00000000 0x7fffffffd918: 0x00000058 0x00000000 0x00000000 0x00000000 0x7fffffffd928: 0x004204a0 0x00000000 0xffffe30b 0x00007fff 0x7fffffffd938: 0xf7fdcd20 0x00007fff 0x007d1fd0 0x00000000 0x7fffffffd948: 0x00000000 0x00000000 0xffffdd60 0x00007fff 0x7fffffffd958: 0xffffdad0 0x00000000 0x00000000 0x00000000 0x7fffffffd968: 0x00000000 0x00000000 0x00000000 0x00000000 0x7fffffffd978: 0xf7fdb630 0x00007fff 0x00000001 0x00007fff 0x7fffffffd988: 0x00000000 0x00000000 0x00000001 0xffffefbd 0x7fffffffd998: 0xf7fdc9c8 0x00007fff 0x003b4700 0x00000000 0x7fffffffd9a8: 0x003b4700 0x00000000 0x00003900 0x00000000 0x7fffffffd9b8: 0xffffddd0 0x00007fff 0xffffde50 0x00007fff 0x7fffffffd9c8: 0xf7ffa4c8 0x00007fff 0x00000000 0x00000000 0x7fffffffd9d8: 0xf7fdcd20 0x00007fff 0xffffdb30 0x00000001

Next: Stefan Beller
Message 1 of 9 in “Bug: Segmentation fault (core dumped)”
  1. Robert MitwickiOct 4, 2013
  2. clone: do not segfault when specifying a nonexistent branchStefan Beller, Oct 4, 2013
  3. Duy NguyenOct 4, 2013
  4. Stefan BellerOct 6, 2013
  5. Duy NguyenOct 7, 2013
  6. clone: do not segfault when specifying a nonexistent branchStefan Beller, Oct 8, 2013
  7. Ralf ThielowOct 9, 2013
  8. clone --branch: refuse to clone if upstream repo is emptyRalf Thielow, Oct 11, 2013
  9. Duy NguyenOct 14, 2013

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.