On Sat, Sep 16, 2017 at 08:31:27AM +0100, Sami Kerola wrote: > Compiled with these: > > export CC=clang > export CFLAGS='-fsanitize=address -ggdb' > export ASAN_SYMBOLIZER_PATH=/usr/bin/llvm-symbolizer An idea for the next release v2.32: * add a new --enable-clang-asan to ./configure * add a new --asan option to tests/run.sh * rename tests/run.sh --memcheck to --valgrind * rename tests/functions.sh:ts_valgrind() to ts_run() * improve ts_run() to be sensitive to --asan or --valgrind (etc.) * use export ASAN_OPTIONS='detect_leaks=0' by default * add TS_ENABLE_MEMLEAK_CHECK=yes to tests where we want to check for memory leaks (library tests, daemons, etc.) and then we can use $ ./configure --enable-clang-asan $ cd tests $ ./run.sh --asan to be sure we're without memory corruptions or relevant memory leaks. Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html