Thread (6 messages) flat view 6 messages, 3 authors, 2016-06-15

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

From: Tor Arvid Lund <hidden>
Date: 2016-06-15 22:46:08

On Tue, Feb 10, 2009 at 12:32 PM, Jeff King [off-list ref] wrote:
Are you sure it's truly an _empty_ commit message? Can you try

 git cat-file commit f67f77edf06bbcebabf430735c751245a4b70f14

and look at the result with xxd, hd, or similar.
Cool. You are correct. It is not empty after all. I ran git cat-file
on that commit, and on the "same" commit on the branch where I did not
see the problem. The correct one looks like:

<start>
tree c5d2063a9b21de1f84240e4b9c0e40a44f0357b6
parent 6d109492008c68d28af821b96b82f807f338caf6
author Tor Arvid Lund [off-list ref] 1233852429 +0100
committer Tor Arvid Lund [off-list ref] 1233852429 +0100

[HIA] Log exception when serializing fails.

[git-p4: depot-paths = "//Heads/Dev/MarkII/Main/": change = 19233]
<stop>

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 :-)

-Tor Arvid-
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help