threads / bug / 40901

Bug: git crashes on rebase reporting bogus memory corruption

Subject: Bug: git crashes on rebase reporting bogus memory corruption

## tl;dr

3 messages between Nov 27, 2015 and Nov 30, 2015.

replies: 2people: 2as markdown or json

Daniele Varrazzo· Nov 27, 2015, 14:08 UTC · lore
Bogus corruption is bogus because I've reproduced it on different machines.

I was trying to rewrite history in a small repos and replace indentation tabs with spaces. Steps to reproduce:

git clone https://github.com/dvarrazzo/suponoff.git git checkout -b gitbug git config core.whitespace trailing-space,tabwidth=4,tab-in-indent,space-before-tab git rebase 6af85bcde9a30c3841b754bbb60c03ba58b88a50 --whitespace=fix

error reported on crash is:
Applying: Read configuration from supervisor config itself, added groups tags
*** Error in `git': malloc(): memory corruption: 0x00000000023f9420 ***
Tested with:

CentOS Linux release 7.1.1503 (Core) git: 1.8.3.1 Linux 3.13.0-66-generic #108-Ubuntu SMP Wed Oct 7 15:20:27 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux libc: 2.17-78.el7

Ubuntu 14.04.3 LTS git: 1.9.1 libc: 2.19-0ubuntu6 kernel: Linux 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

-- Daniele
Daniele Varrazzo· Nov 27, 2015, 16:29 UTC · re: Daniele Varrazzo · lore

Re: Bug: git crashes on rebase reporting bogus memory corruption

On Fri, Nov 27, 2015 at 2:08 PM, Daniele Varrazzo <daniele.varrazzo@gmail.com> wrote:

> Bogus corruption is bogus because I've reproduced it on different machines.
>
> I was trying to rewrite history in a small repos and replace
> indentation tabs with spaces. Steps to reproduce:

Messing up with that repo. Not sure what reportedly originally still works. This should remain as it is:

  git clone -b gitbug https://github.com/dvarrazzo/suponoff.git
  cd suponoff/
  git config core.whitespace
trailing-space,tabwidth=4,tab-in-indent,space-before-tab
  git rebase  6af85bcde9a30c3841b754bbb60c03ba58b88a50 --whitespace=fix
-- Daniele
Eric Sunshine· Nov 30, 2015, 05:39 UTC · re: Daniele Varrazzo · lore

Re: Bug: git crashes on rebase reporting bogus memory corruption

On Fri, Nov 27, 2015 at 9:08 AM, Daniele Varrazzo <daniele.varrazzo@gmail.com> wrote:

Show 21 quoted lines
> I was trying to rewrite history in a small repos and replace
> indentation tabs with spaces. Steps to reproduce:
>
> git clone https://github.com/dvarrazzo/suponoff.git
> git checkout -b gitbug
> git config core.whitespace
> trailing-space,tabwidth=4,tab-in-indent,space-before-tab
> git rebase  6af85bcde9a30c3841b754bbb60c03ba58b88a50 --whitespace=fix
>
> error reported on crash is:
>
> Applying: Read configuration from supervisor config itself, added groups tags
> *** Error in `git': malloc(): memory corruption: 0x00000000023f9420 ***
>
> Tested with:
>
> CentOS Linux release 7.1.1503 (Core)
> git: 1.8.3.1
>
> Ubuntu 14.04.3 LTS
> git: 1.9.1

Bisection indicates that this bug was fixed by 407a792 (apply: count the size of postimage correctly, 2015-01-16), which is included in Git 2.3.1.

← back to recent threads