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

git 2.16.0 segfaults on clone of specific repo

From
АБАлександр Булаев <aleks.bulaev@gmail.com>
Date
Jan 18, 2018, 20:55 UTC
Message-ID
<CALwADsGfB10f5+nOFN-pHCt4z1SkWMcvSHn8KokcyCM0V6K-BA@mail.gmail.com>

I found that git 2.16.0 segfaults on clone of vim-colorschemes repo. See the log below.

alexbool@alexbool-osx ~/Documents> lldb -- git clone
https://github.com/flazz/vim-colorschemes.git
(lldb) target create "git"
Current executable set to 'git' (x86_64).
(lldb) settings set -- target.run-args  "clone"
"https://github.com/flazz/vim-colorschemes.git"
(lldb) run
Process 25643 launched: '/usr/local/bin/git' (x86_64)
Cloning into 'vim-colorschemes'...
remote: Counting objects: 1457, done.
remote: Total 1457 (delta 0), reused 0 (delta 0), pack-reused 1457
Receiving objects: 100% (1457/1457), 1.43 MiB | 289.00 KiB/s, done.
Resolving deltas: 100% (424/424), done.
Process 25643 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason =
EXC_BAD_ACCESS (code=1, address=0x48)
    frame #0: 0x00000001000f7c3d git`ce_match_stat_basic + 263
git`ce_match_stat_basic:
->  0x1000f7c3d <+263>: movq   0x48(%rax), %rsi
    0x1000f7c41 <+267>: movl   $0x14, %edx
    0x1000f7c46 <+272>: movq   %r14, %rdi
    0x1000f7c49 <+275>: callq  0x1001659fa               ; symbol stub
for: memcmp
Target 0: (git) stopped.
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason =
EXC_BAD_ACCESS (code=1, address=0x48)
  * frame #0: 0x00000001000f7c3d git`ce_match_stat_basic + 263
    frame #1: 0x00000001000f7ae8 git`ie_match_stat + 108
    frame #2: 0x00000001000bbe07 git`checkout_entry + 266
    frame #3: 0x0000000100144ff9 git`unpack_trees + 2317
    frame #4: 0x0000000100017e13 git`cmd_clone + 5733
    frame #5: 0x0000000100001ea3 git`handle_builtin + 532
    frame #6: 0x0000000100001954 git`cmd_main + 263
    frame #7: 0x0000000100079a28 git`main + 80
    frame #8: 0x00007fff64d76115 libdyld.dylib`start + 1
(lldb) ^D
alexbool@alexbool-osx ~/Documents> git --version
git version 2.16.0
OS: macOS 10.13.2
git installed from homebrew
Next: Randall S. Becker
Message 1 of 33 in “git 2.16.0 segfaults on clone of specific repo”
  1. Александр БулаевJan 18, 2018
  2. Randall S. BeckerJan 18, 2018
  3. Eric SunshineJan 19, 2018
  4. brian m. carlsonJan 19, 2018
  5. Eric SunshineJan 19, 2018
  6. Randall S. BeckerJan 19, 2018
  7. brian m. carlsonJan 19, 2018
  8. Duy NguyenJan 19, 2018
  9. Eric SunshineJan 19, 2018
  10. Duy NguyenJan 19, 2018
  11. Eric SunshineJan 19, 2018
  12. Todd ZullingerJan 19, 2018
  13. Eric SunshineJan 20, 2018
  14. brian m. carlsonJan 19, 2018
  15. Eric SunshineJan 20, 2018
  16. brian m. carlsonJan 20, 2018
  17. Eric SunshineJan 20, 2018
  18. repository: pre-initialize hash algo pointerbrian m. carlson, Jan 19, 2018
  19. Eric SunshineJan 19, 2018
  20. Junio C HamanoJan 19, 2018
  21. Eric SunshineJan 19, 2018
  22. Junio C HamanoJan 19, 2018
  23. brian m. carlsonJan 19, 2018
  24. Junio C HamanoJan 20, 2018
  25. Eric SunshineJan 20, 2018
  26. t: add clone test for files differing only in casebrian m. carlson, Jan 20, 2018
  27. Eric SunshineJan 21, 2018
  28. Junio C HamanoJan 21, 2018
  29. Eric SunshineJan 21, 2018
  30. Eric SunshineJan 21, 2018
  31. brian m. carlsonJan 21, 2018
  32. Duy NguyenJan 21, 2018
  33. Eric SunshineJan 21, 2018

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.