From: Mike Herrick <mike.herrick@gmail.com>
To: Drew Northup <drew.northup@maine.edu>
Cc: git@vger.kernel.org
Subject: Re: fsck errors on newly cloned, newly imported git repository
Date: Thu, 28 Oct 2010 19:40:15 -0400 [thread overview]
Message-ID: <AANLkTimr_11_F7WJK3Uv8N=ORqDYfrLTGyHB7c-npNaU@mail.gmail.com> (raw)
In-Reply-To: <AANLkTinfDh5_-u6nJc=MMs_vPQGuBPhOT-TqgVOvAMPo@mail.gmail.com>
Following up to my own post, after some serious debugging, it turned
out that the libcrypto library was to blame.
I found that after the clone, a git index-pack on the pack-file would
generate a different index each time (from the same pack-file). I
narrowed it down to this routine returning an incorrect sha1 on "bad"
machines:
static void write_sha1_file_prepare(const void *buf, unsigned long len,
const char *type, unsigned char *sha1,
char *hdr, int *hdrlen)
{
git_SHA_CTX c;
/* Generate the header */
*hdrlen = sprintf(hdr, "%s %lu", type, len)+1;
/* Sha1.. */
git_SHA1_Init(&c);
git_SHA1_Update(&c, hdr, *hdrlen);
git_SHA1_Update(&c, buf, len);
git_SHA1_Final(sha1, &c);
}
Upgrading the libcrypto solved the problem on both machines.
FYI, the offending versions were openssl-0.9.7a-26 and
openssl-0.9.7a-35 (these were Fedora Core 2 vintage). Hopefully
no-one has any systems this old lying around any longer.
Mike.
prev parent reply other threads:[~2010-10-28 23:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-24 15:54 fsck errors on newly cloned, newly imported git repository Mike Herrick
2010-10-25 10:58 ` Drew Northup
2010-10-25 12:25 ` Mike Herrick
2010-10-25 14:02 ` Mike Herrick
2010-10-28 23:40 ` Mike Herrick [this message]
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='AANLkTimr_11_F7WJK3Uv8N=ORqDYfrLTGyHB7c-npNaU@mail.gmail.com' \
--to=mike.herrick@gmail.com \
--cc=drew.northup@maine.edu \
--cc=git@vger.kernel.org \
/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).