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

Re: Possible memory leak bug reports for the latest "git" repository.

From
Jeff King <peff@peff.net>
Date
Apr 9, 2021, 18:46 UTC
Message-ID
<YHCg8ycLahSwNvJL@coredump.intra.peff.net>
In-Reply-To
<b96f76f2-db00-cc7c-eb83-3033873023ec@ahunt.org>
On Fri, Apr 09, 2021 at 06:49:39PM +0200, Andrzej Hunt wrote:
Show 12 quoted lines
> > ==63105== 40 bytes in 1 blocks are possibly lost in loss record 38 of 142
> > ==63105==    at 0x4C31B0F: malloc (in
> > /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
> > ==63105==    by 0x34013A: do_xmalloc (wrapper.c:41)
> > ==63105==    by 0x355BB5: chdir_notify_register (chdir-notify.c:18)
> [...]
> 
> These are a bit odd: chdir_notify_register() is attaching the newly
> allocated memory to a static list (chdir_notify_entries), and I can't see
> any obvious reason why this would leak (but maybe valgrind doesn't like
> static pointers)? Either way, this doesn't seem to be anywhere near the
> regex code.

These "possibly lost" are false positives; there's more discussion in this thread:

  https://lore.kernel.org/git/20201117002435.GA13516@coredump.intra.peff.net/
-Peff
Previous: Andrzej Hunt
Message 3 of 3 in “Possible memory leak bug reports for the latest "git" repository.”
  1. Apr 9, 2021
  2. Andrzej HuntApr 9, 2021
  3. Jeff KingApr 9, 2021

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.