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

Re: git log --graph --no-graph can cause segfault

From
Đoàn Trần Công Danh <congdanhqx@gmail.com>
Date
Feb 8, 2025, 04:44 UTC
Message-ID
<Z6bhS7THkV2ovXfQ@danh.dev>
In-Reply-To
<CADY4h_qagYhSP2kz=zNSjfskN1ODxLf1DjEME6BdYw6j-JEAhA@mail.gmail.com>
On 2025-02-07 19:34:11-0800, Emily Klassen <forivall@gmail.com> wrote:
Show 21 quoted lines
> > What did you do before the bug happened? (Steps to reproduce your issue)
> 
> $ git config --get alias.l
> log --pretty=oneline --abbrev-commit --decorate --graph
> 
> $ git --no-pager l --reverse --no-graph --name-status
> e83c516331 Initial revision of "git", the information manager from hell
> error: git died of signal 11
> 
> > What did you expect to happen? (Expected behavior)
> 
> I expect the commit listing to display successfully.
> 
> > What happened instead? (Actual behavior)
> 
> Git seems to have crashed. My best guess is that some state gets set with the
> first `--graph` flag which is not cleared with the `--no-graph` flag.
> 
> > What's different between what you expected and what actually happened?
> 
> Git crashed.

Given commands yields: "fatal: Out of memory, realloc failed" in my system. But it's fixed by jk/combine-diff-cleanup, which is merged into master.

Would you try to run from master branch to see if your problem has been fixed?

-- 
Danh
Previous: Emily KlassenNext: Emily Klassen
Message 2 of 3 in “git log --graph --no-graph can cause segfault”
  1. Emily KlassenFeb 8, 2025
  2. Đoàn Trần Công DanhFeb 8, 2025
  3. Emily KlassenFeb 8, 2025

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.