Re: "malloc failed"
- From
Jeff King <peff@peff.net>
- Date
- Jan 29, 2009, 05:14 UTC
- Message-ID
- <20090129051451.GA31507@coredump.intra.peff.net>
- In-Reply-To
- <3af572ac0901281416x5adef0eak89bd4b40fda52c2b@mail.gmail.com>
On Wed, Jan 28, 2009 at 11:16:32PM +0100, Pau Garcia i Quiles wrote:
Show 11 quoted lines
> My case: I have a 500 MB repository with a 1GB working tree, with
> binary files ranging from 100KB to 50MB and a few thousand source
> files.
>
> I have two branches ('master' and 'cmake') and the latter has suffered
> a huge hierarchy reorganization.
>
> When I merge 'master' in 'cmake', if I use the 'subtree' strategy, it
> works fine. If I use any other strategy, after a couple of minutes I
> receive a "malloc failed" and the tree is all messed up. As I said, on
> Linux it works fine, so maybe it's a Windows-specific problem.Hmm. It very well might be the rename detection allocating a lot of memory to do inexact rename detection. It does try to limit the amount of work, but based on number of files. So if you have a lot of huge files, that might be fooling it.
Try setting merge.renamelimit to something small (but not '0', which means "no limit").
-Peff