Am 05.05.2020 21:27, schrieb Pablo Neira Ayuso:
BTW, did you update tests/py to run it under ASAN, a patch for this
would be great.
I was running
./configure CFLAGS="-g -O0 -fsanitize=address -fsanitize=undefined
-fno-omit-frame-pointer" LDFLAGS="-lasan"
so libnftables was compiled with ASAN.
But when running the python test, it complained that libasan wasn't
loaded as the first library, so I used
LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libasan.so.5 ./nft-test.py -d
bridge/vlan.t
to fix that.
Some python leaks or all leaks can be suppressed as described here:
https://github.com/google/sanitizers/wiki/AddressSanitizerLeakSanitizer
This doesn't really look to me like it can be patched easily into the
python test scripts, as it might need a reconfigure/rebuild.
Regards,
M. Braun