From: Jeff King <peff@peff.net>
To: Brian Gernhardt <benji@silverinsanity.com>
Cc: "git@vger.kernel.org List" <git@vger.kernel.org>
Subject: Re: Intermittent Failures in t1450-fsck (Bisected)
Date: Wed, 11 May 2011 07:43:47 -0400 [thread overview]
Message-ID: <20110511114347.GA24161@sigill.intra.peff.net> (raw)
In-Reply-To: <A3947D3B-B434-4C13-A069-6B3C731DABF0@silverinsanity.com>
On Sat, May 07, 2011 at 04:25:28PM -0400, Brian Gernhardt wrote:
> I've tried to narrow it down even further. I cut the test down to
> just the setup and failing test. Then I removed all
> "test_when_finished" and replaced the "test_must_fail" with "!" so I
> can directly copy/paste the test into a window. When the test runs,
> it fails. When I run it manually, even with using /bin/sh and eval,
> it succeeds. Can anybody else think of what difference there might be
> between a shell and the test script that I should test? (I did
> remember to set GIT_EXEC_PATH and my PATH to run the same version as
> the script is.)
Could be something in the environment. You might want to try pulling the
environment variable setup from test-lib.sh into your interactive shell.
I would suspect earlier tests might have created some weird state, but
it looks in your output like you removed most of them and still see the
problem.
> expecting success:
> sha=$(echo blob | git hash-object -w --stdin) &&
> cat >wrong-tag <<-EOF &&
> object $sha
> type commit
> tag wrong
> tagger T A Gger <tagger@example.com> 1234567890 -0000
>
> This is an invalid tag.
> EOF
>
> tag=$(git hash-object -t tag -w --stdin <wrong-tag) &&
> echo $tag >.git/refs/tags/wrong &&
> ! git fsck --tags 2>out &&
> cat out &&
> grep "error in tag.*broken links" out
>
> tagged commit 63499e4ea8e096b831515ceb1d5a7593e4d87ae5 (wrong) in 66f6581d549f70e05ca586bc2df5c15a95662c36
> missing commit 63499e4ea8e096b831515ceb1d5a7593e4d87ae5
> error: Object 63499e4ea8e096b831515ceb1d5a7593e4d87ae5 is a commit, not a blob
> error: 63499e4ea8e096b831515ceb1d5a7593e4d87ae5: object corrupt or missing
> not ok - 3 tag pointing to something else than its type
Thanks for narrowing it down more. One thing I'd try is to see what "git
cat-file -t $sha" and "git cat-file -p $sha" say right before the fsck
is run (they should both print "blob").
Beyond that I think I'd try gdb, with breakpoints near the places those
messages are generated (you can find them by grepping for "tagged %s %s"
and "is a %s, not a").
Other than that, I'm a bit stumped. The whole "it breaks on a ramdisk"
thing is just odd.
-Peff
next prev parent reply other threads:[~2011-05-11 15:44 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-13 17:11 Intermittent Failures in t1450-fsck Brian Gernhardt
2011-05-05 6:46 ` Intermittent Failures in t1450-fsck (Bisected) Brian Gernhardt
2011-05-05 9:32 ` Jeff King
2011-05-05 20:04 ` Brian Gernhardt
2011-05-05 21:03 ` Jeff King
2011-05-05 21:58 ` Brian Gernhardt
2011-05-07 20:25 ` Brian Gernhardt
2011-05-11 11:43 ` Jeff King [this message]
2011-05-05 21:07 ` Brian Gernhardt
2011-05-05 21:17 ` Jeff King
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=20110511114347.GA24161@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=benji@silverinsanity.com \
--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).