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

Re: Bug: Segfault when doing "git diff"

From
Victor Leschuk <vleschuk@gmail.com>
Date
Oct 28, 2015, 13:54 UTC
Message-ID
<5630D38A.7080301@gmail.com>
In-Reply-To
<5630CF1B.9000706@sociomantic.com>
On 10/28/2015 04:35 PM, Mathias L. Baumann wrote:
Show 6 quoted lines
> I was using the latest git version 2.6.2 already.
> I suspect it is due to a .gitconfig. This is what is probably required:
>
> ➜  ~  cat .gitconfig
> [diff]
>     submodule = log
Yep, that did the trick.
The segfault is from
sha1_file.c:
/* add the alternate entry */
  *alt_odb_tail = ent; /* <===== alt_obd_tail is NULL here */
alt_odb_tail = &(ent->next);
ent->next = NULL;
Will try to take a closer look at it.

-- Victor

Previous: Mathias L. BaumannNext: Jeff King
Message 4 of 7 in “Bug: Segfault when doing "git diff"”
  1. Mathias L. BaumannOct 28, 2015
  2. Victor LeschukOct 28, 2015
  3. Mathias L. BaumannOct 28, 2015
  4. Victor LeschukOct 28, 2015
  5. add_submodule_odb: initialize alt_odb list earlierJeff King, Oct 28, 2015
  6. Junio C HamanoOct 28, 2015
  7. Jeff KingOct 28, 2015

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.