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

ab/leak-check (was: What's cooking in git.git (Jul 2022, #08; Fri, 29))

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Aug 1, 2022, 12:01 UTC
Message-ID
<220801.868ro8i2yt.gmgdl@evledraar.gmail.com>
In-Reply-To
<xmqq7d3v33to.fsf@gitster.g>
On Fri, Jul 29 2022, Junio C Hamano wrote:
Show 19 quoted lines
> * ab/leak-check (2022-07-27) 15 commits
>  - CI: use "GIT_TEST_SANITIZE_LEAK_LOG=true" in linux-leaks
>  - upload-pack: fix a memory leak in create_pack_file()
>  - leak tests: mark passing SANITIZE=leak tests as leak-free
>  - leak tests: don't skip some tests under SANITIZE=leak
>  - test-lib: have the "check" mode for SANITIZE=leak consider leak logs
>  - test-lib: add a GIT_TEST_PASSING_SANITIZE_LEAK=check mode
>  - test-lib: simplify by removing test_external
>  - tests: move copy/pasted PERL + Test::More checks to a lib-perl.sh
>  - t/Makefile: don't remove test-results in "clean-except-prove-cache"
>  - test-lib: add a SANITIZE=leak logging mode
>  - t/README: reword the "GIT_TEST_PASSING_SANITIZE_LEAK" description
>  - test-lib: add a --invert-exit-code switch
>  - test-lib: fix GIT_EXIT_OK logic errors, use BAIL_OUT
>  - test-lib: don't set GIT_EXIT_OK before calling test_atexit_handler
>  - test-lib: use $1, not $@ in test_known_broken_{ok,failure}_
>
>  Plugging more leaks.
>  source: <cover-v3-00.15-00000000000-20220727T230800Z-avarab@gmail.com>

Just a note on the summary: This isn't "plugging more leaks" (although one leak is plugged as it's trivial, and stands in the way of 15/15.

Suggestion: New test instrumentation for extending SANITIZE=leak
checking, and marking some existing tests as leak-free.

I think this should otherwise be ready for "next", the "linux-leaks" job now passes with this (there was a conflict with another topic). This topic is fairly self-contained to just the test code we run for "linux-leaks".

To the extent that we have had a bit of churn with these sorts of changes it's been because they've lingered in "seen", as new changes get sent based on "master" or "next", which inadvertently add leaks to existing now-leak-free tests...

Previous: Junio C HamanoNext: Junio C Hamano
Message 4 of 5 in “What's cooking in git.git (Jul 2022, #08; Fri, 29)”
  1. Junio C HamanoJul 29, 2022
  2. Jeff KingJul 31, 2022
  3. Junio C HamanoJul 31, 2022
  4. ab/leak-check (was: What's cooking in git.git (Jul 2022, #08; Fri, 29))Ævar Arnfjörð Bjarmason, Aug 1, 2022
  5. Junio C HamanoAug 1, 2022

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.