[PATCH 0/4] test-lib: improve LSAN + ASAN stack traces
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Feb 18, 2022, 21:01 UTC
- Message-ID
- <cover-0.4-00000000000-20220218T205753Z-avarab@gmail.com>
This small series provides a much needed UX improvement for SANITIZE=leak stack traces. As noted in 4/4 this makes LSAN around 10% slower, but in some cases the stack traces we show now are useless, so I think it's worth it.
This also changes the stack traces to strip the absolute path to the build directory from them. See 3/4 for how much better that looks.
This series is a result of a suggestion by Jeff King in [1], when some of these bad stack traces (which for anyone re-reading that, I had the wrong idea about, we just needed fast_unwind_on_malloc=0) were discussed.
1. https://lore.kernel.org/git/YXxh%2FGMuy+sBViVY@coredump.intra.peff.net/
Ævar Arnfjörð Bjarmason (4): test-lib: add XSAN_OPTIONS, inherit [AL]SAN_OPTIONS test-lib: make $GIT_BUILD_DIR an absolute path test-lib: add "strip_path_prefix" to XSAN_OPTIONS test-lib: add "fast_unwind_on_malloc=0" to LSAN_OPTIONS
t/test-lib.sh | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-)
-- 2.35.1.1031.g277d4562d2e