Re: dmalloc and leaks in git
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Dec 9, 2007, 20:57 UTC
- Message-ID
- <alpine.LFD.0.9999.0712091251330.12046@woody.linux-foundation.org>
- In-Reply-To
- <9e4733910712081253t7cd43f87o6001f32fddc01565@mail.gmail.com>
On Sat, 8 Dec 2007, Jon Smirl wrote:
> > But using dmalloc shows a pervasive problem, none of the git commands > are cleaning up after themselves. For example I ran a simple command, > git-status, and thousands of objects were not freed.
One thing to do is to use a better reporting tool.
For example, if you use
valgrind --tool=massif --heap=yes ...
it will generate a postscript file with the allocation history as a graph of the different allocators in different colors etc. That would likely show where the big users come from..
Linus