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

Re: A little mystery - crash caused by empty commit message.

From
Jeff King <peff@peff.net>
Date
Feb 10, 2009, 15:30 UTC
Message-ID
<20090210153048.GA17660@coredump.intra.peff.net>
In-Reply-To
<1a6be5fa0902100458w246f2bfeu5c0c303d18d17a3b@mail.gmail.com>
On Tue, Feb 10, 2009 at 01:58:43PM +0100, Tor Arvid Lund wrote:
Show 8 quoted lines
> So - after the "+0100" on the committer line, hd tells me (as
> expected) that I have 0a 0a before "[HIA]". On the "faulty" commit I,
> for some reason, have 0a 00 instead. I do not understand why, but I
> guess strchr will return NULL when "\0[HIA]....." is passed to it, and
> segfault on the next iteration.
> 
> So - I am no closer to understanding what got me to this state, but
> your reply was helpful anyway, thanks :-)

Well, it certainly seems like a bug in one of the history-rewriting programs. Can you try rebasing, cherry-picking, etc on the original version of the commit to see if you can reproduce the breakage?

-Peff
Previous: Tor Arvid LundNext: Tor Arvid Lund
Message 5 of 6 in “A little mystery - crash caused by empty commit message.”
  1. Tor Arvid LundFeb 10, 2009
  2. Jeff KingFeb 10, 2009
  3. Johannes SixtFeb 10, 2009
  4. Tor Arvid LundFeb 10, 2009
  5. Jeff KingFeb 10, 2009
  6. Tor Arvid LundFeb 16, 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.