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

git name-rev segfault

From
TPTamas Papp <tamas.papp@rtfm.co.hu>
Date
Jul 29, 2019, 14:19 UTC
Message-ID
<799a4ba4-a2ae-7ce3-a6e4-acd329d062da@rtfm.co.hu>
hi All,
We ran into a segfault with all version of command line git.
We are able to reproduce this issue by this way:
Generate 100k file into a repository:
#!/bin/bash

rm -rf .git test.file git init git config user.email a@b git config user.name c

time for i in {1..100000}
do
   [ $((i % 2)) -eq 1 ] && echo $i>test.file || echo 0 >test.file
   git add test.file
   git commit -m "$i committed"
done
Run git on it:
$ git name-rev a20f6989b75fa63ec6259a988e38714e1f5328a0
Could you coment on it?
Thank you,
tamas
Next: Jeff King
Message 1 of 3 in “git name-rev segfault”
  1. Tamas PappJul 29, 2019
  2. Jeff KingJul 29, 2019
  3. Tamas PappJul 29, 2019

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.