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

[PATCH] t/lib-httpd: pass LSAN_OPTIONS through apache

From
Jeff King <peff@peff.net>
Date
May 7, 2019, 22:30 UTC
Message-ID
<20190507223046.GA16315@sigill.intra.peff.net>

Just as we instruct Apache to pass through ASAN_OPTIONS (so that server-side Git programs it spawns will respect our options while running the tests), we should do the same with LSAN_OPTIONS. Otherwise trying to collect a list of leaks like:

    export LSAN_OPTIONS=exitcode=0:log_path=/tmp/lsan
    make SANITIZE=leak test

won't work for http tests (the server-side programs won't log their leaks to the right place, and they'll prematurely die, producing a spurious test failure).

Signed-off-by: Jeff King <peff@peff.net>
---
Found this after giving similar advice in
  https://public-inbox.org/git/20190507222601.GA976@sigill.intra.peff.net/
 t/lib-httpd/apache.conf | 1 +
 1 file changed, 1 insertion(+)
diff --git a/t/lib-httpd/apache.conf b/t/lib-httpd/apache.conf
index 06a81b54c7..5c1c86c193 100644
--- a/t/lib-httpd/apache.conf
+++ b/t/lib-httpd/apache.conf
@@ -76,6 +76,7 @@ PassEnv GIT_VALGRIND
 PassEnv GIT_VALGRIND_OPTIONS
 PassEnv GNUPGHOME
 PassEnv ASAN_OPTIONS
+PassEnv LSAN_OPTIONS
 PassEnv GIT_TRACE
 PassEnv GIT_CONFIG_NOSYSTEM
 PassEnv GIT_TEST_SIDEBAND_ALL
-- 
2.21.0.1314.g224b191707
Next: Josh Steadmon
Message 1 of 2 in “t/lib-httpd: pass LSAN_OPTIONS through apache”
  1. t/lib-httpd: pass LSAN_OPTIONS through apacheJeff King, May 7, 2019
  2. Josh SteadmonMay 7, 2019

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.