Re: [PATCH 3/4] logger: fix memory leaks [asan]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux