From: Tor Arvid Lund <torarvid@gmail.com>
To: Jeff King <peff@peff.net>
Cc: Git mailing list <git@vger.kernel.org>
Subject: Re: A little mystery - crash caused by empty commit message.
Date: Tue, 10 Feb 2009 13:58:43 +0100 [thread overview]
Message-ID: <1a6be5fa0902100458w246f2bfeu5c0c303d18d17a3b@mail.gmail.com> (raw)
In-Reply-To: <20090210113234.GE12089@coredump.intra.peff.net>
On Tue, Feb 10, 2009 at 12:32 PM, Jeff King <peff@peff.net> 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 <toral@qsystems.no> 1233852429 +0100
committer Tor Arvid Lund <toral@qsystems.no> 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-
next prev parent reply other threads:[~2009-02-10 13:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-10 11:15 A little mystery - crash caused by empty commit message Tor Arvid Lund
2009-02-10 11:32 ` Jeff King
2009-02-10 11:46 ` Johannes Sixt
2009-02-10 12:58 ` Tor Arvid Lund [this message]
2009-02-10 15:30 ` Jeff King
2009-02-16 10:18 ` Tor Arvid Lund
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1a6be5fa0902100458w246f2bfeu5c0c303d18d17a3b@mail.gmail.com \
--to=torarvid@gmail.com \
--cc=git@vger.kernel.org \
--cc=peff@peff.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).