Subject: Re: a bug when execute "git status" in git version 1.7.7.431.g89633

From: Matthieu Moy <[email-masked]>
Date: Sun, 23 Oct 2011 10:25:28 +0200

John Hsing <[email-masked]> writes:

> the error:

When does this error occur? is it reproducible on any repository? Which
OS?

> git: malloc.c:3096: sYSMALLOc: Assertion `(old_top == (((mbinptr)
> (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct
> malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >=
> (unsigned long)((((__builtin_offsetof (struct malloc_chunk,
> fd_nextsize))+((2 * (sizeof(size_t))) - 1)) & ~((2 * (sizeof(size_t))) -
> 1))) && ((old_top)->size & 0x1) && ((unsigned long)old_end & pagemask)
> == 0)' failed.

The assertion is violated outside the source code of Git itself, so
either Git calls malloc incorrectly, or this is a bug in your libc.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/