git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: dmalloc and leaks in git

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Dec 8, 2007, 21:19 UTC
Message-ID
<Pine.LNX.4.64.0712082118210.27959@racer.site>
In-Reply-To
<9e4733910712081302h64d9b062kad02c4f13818d59f@mail.gmail.com>
Hi,
On Sat, 8 Dec 2007, Jon Smirl wrote:
Show 17 quoted lines
> On 12/8/07, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
> > Hi,
> >
> > On Sat, 8 Dec 2007, Jon Smirl wrote:
> >
> > > It is very easy to use dmalloc with git. Follow the instructions here,
> > > http://dmalloc.com/docs/latest/online/dmalloc_4.html
> > >
> > > 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.
> >
> > Known problem.  Goes by the name of "libification" on this list.
> 
> I tried using dmalloc to find the leak in repack but it is impossible
> to sort out the accidental leaks from the on-purpose ones. On exit
> there were millions of unfreed objects coming from all over the place.
This might be a starting point:
http://repo.or.cz/w/git/dscho.git?a=commitdiff;h=2083418c5010f04fbcd6e1f67de522ad6acd863d

Hth, Dscho

Previous: Jon SmirlNext: Linus Torvalds
Message 4 of 7 in “dmalloc and leaks in git”
  1. Jon SmirlDec 8, 2007
  2. Johannes SchindelinDec 8, 2007
  3. Jon SmirlDec 8, 2007
  4. Johannes SchindelinDec 8, 2007
  5. Linus TorvaldsDec 9, 2007
  6. Linus TorvaldsDec 10, 2007
  7. Nicolas PitreDec 10, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.