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

[BUG] - git-read-tree segfaults

From
JOJiri Olsa <olsajiri@gmail.com>
Date
Mar 10, 2009, 19:34 UTC
Message-ID
<35476bd20903101234q71bc520fh18828d7170a4a2f5@mail.gmail.com>
Hi,

I was following the git core tutorial and git-read-tree got me segfault. I accidentaly executed the git-read-tree without "-m -u" options and got segfault.

I can reproduce with the latest git using following script.

----------------------------------------------- #!/bin/sh

GIT=$1

rm -rf crash; mkdir -p crash; cd crash $GIT init echo "xxx" > xxx $GIT add xxx $GIT commit -m "xxx" $GIT checkout -b yyy echo "yyy" > yyy $GIT add yyy $GIT commit -m "yyy" echo "yyy1" >> yyy $GIT commit -a -m "yyy1" $GIT checkout master echo "xxx1" >> xxx $GIT commit -a -m "xxx1" mb=$($GIT merge-base HEAD yyy) $GIT read-tree $mb HEAD yyy -----------------------------------------------

regards, jirka

Next: Johannes Schindelin
Message 1 of 11 in “[BUG] - git-read-tree segfaults”
  1. Jiri OlsaMar 10, 2009
  2. Johannes SchindelinMar 10, 2009
  3. Johannes SchindelinMar 10, 2009
  4. Jiri OlsaMar 11, 2009
  5. Johannes SchindelinMar 11, 2009
  6. Junio C HamanoMar 12, 2009
  7. Junio C HamanoMar 12, 2009
  8. read-tree A B C: do not create a bogus index and do not segfaultJunio C Hamano, Mar 12, 2009
  9. Daniel BarkalowMar 12, 2009
  10. Linus TorvaldsMar 12, 2009
  11. Junio C HamanoMar 14, 2009

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.