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

Re: git-status segmentation fault in master / OS X

From
Jeff King <peff@peff.net>
Date
Jan 20, 2010, 00:41 UTC
Message-ID
<20100120004146.GB16824@coredump.intra.peff.net>
In-Reply-To
<57518fd11001190959n355a0f22p7caa7251b705efaf@mail.gmail.com>
On Tue, Jan 19, 2010 at 05:59:51PM +0000, Jonathan del Strother wrote:
> I've been running into a segmentation fault on running git status in
> my repository while there are staged changes.

I can't reproduce it here. Is there anything else interesting about the repo you can tell us besides that it has staged changes?

Show 12 quoted lines
> Bisecting suggests it was introduced in:
> 
> commit 73d66323ac78c750ba42fef23b1cb8fd2110e023
> Merge: 054d2fa 8740773
> Author: Junio C Hamano <gitster@pobox.com>
> Date:   Wed Jan 13 11:58:34 2010 -0800
> 
>     Merge branch 'nd/sparse'
> 
> 
> The last commit from nd/sparse (8740773) is fine, so I guess it's a
> bad merge...?

Could be a bad interaction between commits on nd/sparse and whatever was done since it had branched. You can try rebasing nd/sparse and bisecting a linearised version, like this:

  bad_merge=73d66323
  # pretend we are on nd/sparse
  git checkout -b test $bad_merge^2
  # rebase onto what we merged onto
  git rebase $bad_merge^1
  # now bisect. what we have now is presumably
  # bad (though you should probably double check)
  # and from the previous bisect we know that
  # everything pre-merge is good
  git bisect start
  git bisect good $bad_merge^1
  git bisect bad
-Peff
Previous: Jonathan del StrotherNext: Junio C Hamano
Message 2 of 10 in “git-status segmentation fault in master / OS X”
  1. Jonathan del StrotherJan 19, 2010
  2. Jeff KingJan 20, 2010
  3. Junio C HamanoJan 20, 2010
  4. Jonathan del StrotherJan 20, 2010
  5. Nguyen Thai Ngoc DuyJan 20, 2010
  6. Fix memory corruption when .gitignore does not end by \nNguyễn Thái Ngọc Duy, Jan 20, 2010
  7. Junio C HamanoJan 20, 2010
  8. Nguyen Thai Ngoc DuyJan 21, 2010
  9. Jonathan del StrotherJan 21, 2010
  10. Junio C HamanoJan 21, 2010

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.