From: Jeff King <peff@peff.net>
To: Jason Gross <jasongross9@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: *** glibc detected *** git: double free or corruption (fasttop): 0x0000000001fab820 ***
Date: Tue, 4 Jun 2013 12:26:15 -0400 [thread overview]
Message-ID: <20130604162614.GC15953@sigill.intra.peff.net> (raw)
In-Reply-To: <CAKObCardgmTiuuE_LbzjD2fCmqwMHXbN-6-xZV_uUV=fjcBs3g@mail.gmail.com>
On Tue, Jun 04, 2013 at 11:46:55AM -0400, Jason Gross wrote:
> I get "*** glibc detected *** git: double free or corruption
> (fasttop): 0x0000000001fab820 ***" reliably on the following set of
> commands. I'm working on a remote machine where I don't have
> administrative privileges, so I can't update from git 1.7.2.5 to a
> newer version. I figured I'd report it, even though I haven't checked
> to see if it still happens in a newer version of git.
Yes, it's fixed. You can test such things even without administrative
access. For example:
# get git
git clone git://git.kernel.org/pub/scm/git/git.git
cd git
# set up our test case
git clone git://github.com/JasonGross/barnowl.git
(cd barnowl && git checkout git-bug)
# now make an easy-to-run test we can run on each commit; make sure
# to use bin-wrappers, as it sets up everything to run git out of the
# current build, overriding anything in your $PATH
cat >test <<\EOF
#!/bin/sh
make -j16 &&
cd barnowl &&
../bin-wrappers/git shortlog >/dev/null &&
echo OK
EOF
chmod +x test
# now confirm our old version is broken
git checkout v1.7.2.5
./test
# and check that a new version works
git checkout v1.8.3
./test
You can even use git-bisect to find out which commit fixed it. We have
to "reverse" our test, though, since bisect is usually about finding
regressions, not fixes.
# create reverse test
cat >revtest <<\EOF
#!/bin/sh
./test && exit 1
exit 0
EOF
chmod +x revtest
# set up our bisect; again, our good/bad are reversed because we are
# treating the fix as a "bug"
git bisect start
git bisect good v1.7.2.5
git bisect bad v1.8.3
# and now we can let "bisect run" do all the hard work while we drink
# an ice-cold beverage
git bisect run ./revtest
If we did everything right, this should yield the commit with the fix.
And it turns up d8d2eb7 (mailmap: fix use of freed memory, 2010-10-11),
which seems likely (and reading the full commit message, details the
exact case you have).
And then we can use "git tag --contains" to find out which releases have
it:
$ git tag --contains d8d2eb7 | grep ^v | grep -v -- -rc | head -1
v1.7.10
So you'd need to go to v1.7.10 to fix it.
-Peff
prev parent reply other threads:[~2013-06-04 16:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-04 15:46 *** glibc detected *** git: double free or corruption (fasttop): 0x0000000001fab820 *** Jason Gross
2013-06-04 16:24 ` Stefano Lattarini
2013-06-04 16:26 ` Jeff King [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=20130604162614.GC15953@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=jasongross9@gmail.com \
/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).