{"thread":{"id":"34027","subject":"*** glibc detected *** git: double free or corruption (fasttop): 0x0000000001fab820 ***","startedAt":"2013-06-04T15:46:55Z","lastAt":"2013-06-04T16:26:15Z","messageCount":3,"participants":["Jason Gross","Stefano Lattarini","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"219373","messageId":"CAKObCardgmTiuuE_LbzjD2fCmqwMHXbN-6-xZV_uUV=fjcBs3g@mail.gmail.com","threadId":"34027","inReplyTo":null,"subject":"*** glibc detected *** git: double free or corruption (fasttop): 0x0000000001fab820 ***","fromName":"Jason Gross","fromEmail":"jasongross9@gmail.com","sentAt":"2013-06-04T15:46:55Z","receivedAt":"2013-06-04T15:46:55Z","isPatch":false,"sender":{"key":"jasongross9@gmail.com","avatar":null},"body":"I get \"*** glibc detected *** git: double free or corruption\n(fasttop): 0x0000000001fab820 ***\" reliably on the following set of\ncommands.  I'm working on a remote machine where I don't have\nadministrative privileges, so I can't update from git 1.7.2.5 to a\nnewer version.  I figured I'd report it, even though I haven't checked\nto see if it still happens in a newer version of git.\n\njgross@dr-wily:/tmp$ uname -a\nLinux dr-wily 2.6.32-5-xen-amd64 #1 SMP Mon Feb 25 02:51:39 UTC 2013\nx86_64 GNU/Linux\njgross@dr-wily:/tmp$ git --version\ngit version 1.7.2.5\njgross@dr-wily:/tmp$ git clone git://github.com/JasonGross/barnowl.git\nCloning into barnowl...\nremote: Counting objects: 16064, done.\nremote: Compressing objects: 100% (8172/8172), done.\nremote: Total 16064 (delta 8517), reused 14679 (delta 7321)\nReceiving objects: 100% (16064/16064), 8.69 MiB | 3.44 MiB/s, done.\nResolving deltas: 100% (8517/8517), done.\njgross@dr-wily:/tmp$ cd barnowl\njgross@dr-wily:/tmp/barnowl$ git checkout git-bug\nBranch git-bug set up to track remote branch git-bug from origin.\nSwitched to a new branch 'git-bug'\njgross@dr-wily:/tmp/barnowl$ git shortlog | grep : | grep -v '' | less\n*** glibc detected *** git: double free or corruption (fasttop):\n0x00000000023fa800 ***\n======= Backtrace: =========\n/lib/libc.so.6(+0x71e16)[0x7fe7ed258e16]\n/lib/libc.so.6(cfree+0x6c)[0x7fe7ed25db8c]\ngit[0x48b125]\ngit[0x4b7e08]\ngit[0x4577c2]\ngit[0x458151]\ngit[0x404671]\ngit[0x40484d]\n/lib/libc.so.6(__libc_start_main+0xfd)[0x7fe7ed205c8d]\ngit[0x404009]\n======= Memory map: ========\n00400000-0050e000 r-xp 00000000 ca:01 541613\n  /usr/bin/git\n0070d000-00714000 rw-p 0010d000 ca:01 541613\n  /usr/bin/git\n00714000-00760000 rw-p 00000000 00:00 0\n023fa000-025b5000 rw-p 00000000 00:00 0                                  [heap]\n7fe7e8000000-7fe7e8021000 rw-p 00000000 00:00 0\n7fe7e8021000-7fe7ec000000 ---p 00000000 00:00 0\n7fe7ec721000-7fe7ec737000 r-xp 00000000 ca:01 655372\n  /lib/libgcc_s.so.1\n7fe7ec737000-7fe7ec936000 ---p 00016000 ca:01 655372\n  /lib/libgcc_s.so.1\n7fe7ec936000-7fe7ec937000 rw-p 00015000 ca:01 655372\n  /lib/libgcc_s.so.1\n7fe7ec937000-7fe7ed1e7000 r--p 00000000 ca:03 136990\n  /tmp/barnowl/.git/objects/pack/pack-67364344f941243318353ed78170fd5d35869d1f.pack\n7fe7ed1e7000-7fe7ed340000 r-xp 00000000 ca:01 659512\n  /lib/libc-2.11.3.so\n7fe7ed340000-7fe7ed53f000 ---p 00159000 ca:01 659512\n  /lib/libc-2.11.3.so\n7fe7ed53f000-7fe7ed543000 r--p 00158000 ca:01 659512\n  /lib/libc-2.11.3.so\n7fe7ed543000-7fe7ed544000 rw-p 0015c000 ca:01 659512\n  /lib/libc-2.11.3.so\n7fe7ed544000-7fe7ed549000 rw-p 00000000 00:00 0\n7fe7ed549000-7fe7ed560000 r-xp 00000000 ca:01 659507\n  /lib/libpthread-2.11.3.so\n7fe7ed560000-7fe7ed75f000 ---p 00017000 ca:01 659507\n  /lib/libpthread-2.11.3.so\n7fe7ed75f000-7fe7ed760000 r--p 00016000 ca:01 659507\n  /lib/libpthread-2.11.3.so\n7fe7ed760000-7fe7ed761000 rw-p 00017000 ca:01 659507\n  /lib/libpthread-2.11.3.so\n7fe7ed761000-7fe7ed765000 rw-p 00000000 00:00 0\n7fe7ed765000-7fe7ed77c000 r-xp 00000000 ca:01 527676\n  /usr/lib/libz.so.1.2.3.4\n7fe7ed77c000-7fe7ed97b000 ---p 00017000 ca:01 527676\n  /usr/lib/libz.so.1.2.3.4\n7fe7ed97b000-7fe7ed97c000 rw-p 00016000 ca:01 527676\n  /usr/lib/libz.so.1.2.3.4\n7fe7ed97c000-7fe7ed99a000 r-xp 00000000 ca:01 659508\n  /lib/ld-2.11.3.so\n7fe7edaef000-7fe7edb5e000 r--p 00000000 ca:03 136991\n  /tmp/barnowl/.git/objects/pack/pack-67364344f941243318353ed78170fd5d35869d1f.idx\n7fe7edb5e000-7fe7edb61000 rw-p 00000000 00:00 0\n7fe7edb75000-7fe7edb99000 rw-p 00000000 00:00 0\n7fe7edb99000-7fe7edb9a000 r--p 0001d000 ca:01 659508\n  /lib/ld-2.11.3.so\n7fe7edb9a000-7fe7edb9b000 rw-p 0001e000 ca:01 659508\n  /lib/ld-2.11.3.so\n7fe7edb9b000-7fe7edb9c000 rw-p 00000000 00:00 0\n7fffd3766000-7fffd377b000 rw-p 00000000 00:00 0                          [stack]\n7fffd37ff000-7fffd3800000 r-xp 00000000 00:00 0                          [vdso]\nffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0\n  [vsyscall]\n\n\n-Jason\n"},{"id":"219377","messageId":"51AE14DB.6080505@gmail.com","threadId":"34027","inReplyTo":"CAKObCardgmTiuuE_LbzjD2fCmqwMHXbN-6-xZV_uUV=fjcBs3g@mail.gmail.com","subject":"Re: *** glibc detected *** git: double free or corruption (fasttop): 0x0000000001fab820 ***","fromName":"Stefano Lattarini","fromEmail":"stefano.lattarini@gmail.com","sentAt":"2013-06-04T16:24:59Z","receivedAt":"2013-06-04T16:24:59Z","isPatch":false,"sender":{"key":"stefano.lattarini@gmail.com","avatar":"https://avatars.githubusercontent.com/u/1429199?v=4"},"body":"On 06/04/2013 05:46 PM, Jason Gross wrote:\n> I get \"*** glibc detected *** git: double free or corruption\n> (fasttop): 0x0000000001fab820 ***\" reliably on the following set of\n> commands.  I'm working on a remote machine where I don't have\n> administrative privileges, so I can't update from git 1.7.2.5 to a\n> newer version.\n>\nSure you can; install from a release tarball.  The page\n<http://git-scm.com/downloads> links the latest version\n(1.8.3) as well as older ones.\n\nAs for the issue you reported, I'll leave that to the real git\ndevelopers (I'm only a lurker here).\n\nRegards,\n  Stefano\n"},{"id":"219378","messageId":"20130604162614.GC15953@sigill.intra.peff.net","threadId":"34027","inReplyTo":"CAKObCardgmTiuuE_LbzjD2fCmqwMHXbN-6-xZV_uUV=fjcBs3g@mail.gmail.com","subject":"Re: *** glibc detected *** git: double free or corruption (fasttop): 0x0000000001fab820 ***","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2013-06-04T16:26:15Z","receivedAt":"2013-06-04T16:26:15Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Tue, Jun 04, 2013 at 11:46:55AM -0400, Jason Gross wrote:\n\n> I get \"*** glibc detected *** git: double free or corruption\n> (fasttop): 0x0000000001fab820 ***\" reliably on the following set of\n> commands.  I'm working on a remote machine where I don't have\n> administrative privileges, so I can't update from git 1.7.2.5 to a\n> newer version.  I figured I'd report it, even though I haven't checked\n> to see if it still happens in a newer version of git.\n\nYes, it's fixed. You can test such things even without administrative\naccess. For example:\n\n  # get git\n  git clone git://git.kernel.org/pub/scm/git/git.git\n  cd git\n\n  # set up our test case\n  git clone git://github.com/JasonGross/barnowl.git\n  (cd barnowl && git checkout git-bug)\n\n  # now make an easy-to-run test we can run on each commit; make sure\n  # to use bin-wrappers, as it sets up everything to run git out of the\n  # current build, overriding anything in your $PATH\n  cat >test <<\\EOF\n  #!/bin/sh\n  make -j16 &&\n  cd barnowl &&\n  ../bin-wrappers/git shortlog >/dev/null &&\n  echo OK\n  EOF\n  chmod +x test\n\n  # now confirm our old version is broken\n  git checkout v1.7.2.5\n  ./test\n\n  # and check that a new version works\n  git checkout v1.8.3\n  ./test\n\nYou can even use git-bisect to find out which commit fixed it. We have\nto \"reverse\" our test, though, since bisect is usually about finding\nregressions, not fixes.\n\n  # create reverse test\n  cat >revtest <<\\EOF\n  #!/bin/sh\n  ./test && exit 1\n  exit 0\n  EOF\n  chmod +x revtest\n\n  # set up our bisect; again, our good/bad are reversed because we are\n  # treating the fix as a \"bug\"\n  git bisect start\n  git bisect good v1.7.2.5\n  git bisect bad v1.8.3\n\n  # and now we can let \"bisect run\" do all the hard work while we drink\n  # an ice-cold beverage\n  git bisect run ./revtest\n\nIf we did everything right, this should yield the commit with the fix.\nAnd it turns up d8d2eb7 (mailmap: fix use of freed memory, 2010-10-11),\nwhich seems likely (and reading the full commit message, details the\nexact case you have).\n\nAnd then we can use \"git tag --contains\" to find out which releases have\nit:\n\n  $ git tag --contains d8d2eb7 | grep ^v | grep -v -- -rc | head -1\n  v1.7.10\n\nSo you'd need to go to v1.7.10 to fix it.\n\n-Peff\n"}]}