# Bug: git crashes on rebase reporting bogus memory corruption

3 messages from 2015-11-27 to 2015-11-30. Participants: Daniele Varrazzo, Eric Sunshine.
Thread: https://gitlist.dev/t/40901

## Daniele Varrazzo, 2015-11-27 14:08

Subject: Bug: git crashes on rebase reporting bogus memory corruption
Message-ID: <CA+mi_8Y5bx-RDCV2oFfFRVZz-Jjcii7QbB6k45B5YsLoed-b8g@mail.gmail.com>
URL: https://gitlist.dev/e/CA%2Bmi_8Y5bx-RDCV2oFfFRVZz-Jjcii7QbB6k45B5YsLoed-b8g%40mail.gmail.com

```
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, 2015-11-27 16:29

Subject: Re: Bug: git crashes on rebase reporting bogus memory corruption
Message-ID: <CA+mi_8ap9676PHKyuK1kdmLm9WLKO3XTUunjF8cwFyULoL=XOw@mail.gmail.com>
URL: https://gitlist.dev/e/CA%2Bmi_8ap9676PHKyuK1kdmLm9WLKO3XTUunjF8cwFyULoL%3DXOw%40mail.gmail.com
In-Reply-To: <CA+mi_8Y5bx-RDCV2oFfFRVZz-Jjcii7QbB6k45B5YsLoed-b8g@mail.gmail.com>

```
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, 2015-11-30 05:39

Subject: Re: Bug: git crashes on rebase reporting bogus memory corruption
Message-ID: <CAPig+cQBS2DVKkoyQWTRs6-zrXkEhrDnnZU0efh63B2B7Qu5CA@mail.gmail.com>
URL: https://gitlist.dev/e/CAPig%2BcQBS2DVKkoyQWTRs6-zrXkEhrDnnZU0efh63B2B7Qu5CA%40mail.gmail.com
In-Reply-To: <CA+mi_8Y5bx-RDCV2oFfFRVZz-Jjcii7QbB6k45B5YsLoed-b8g@mail.gmail.com>

```
On Fri, Nov 27, 2015 at 9:08 AM, Daniele Varrazzo
<daniele.varrazzo@gmail.com> wrote:
> 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.

```
