test/rocksdb: suppress leak reports on thread local ctx
Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I77b9f640d75c12ec083bec791506bed921e26292 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/452732 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
This commit is contained in:
parent
654f5a8d9c
commit
90586a7dca
1
test/blobfs/rocksdb/lsan_suppressions.txt
Normal file
1
test/blobfs/rocksdb/lsan_suppressions.txt
Normal file
@ -0,0 +1 @@
|
||||
leak:spdk_fs_alloc_thread_ctx
|
@ -13,6 +13,11 @@ run_step() {
|
||||
echo "--spdk_cache_size=$CACHE_SIZE" >> "$1"_flags.txt
|
||||
|
||||
echo -n Start $1 test phase...
|
||||
# ASAN has some bugs around thread_local variables. We have a destructor in place
|
||||
# to free the thread contexts, but ASAN complains about the leak before those
|
||||
# destructors have a chance to run. So suppress this one specific leak using
|
||||
# LSAN_OPTIONS.
|
||||
export LSAN_OPTIONS="suppressions=$testdir/lsan_suppressions.txt"
|
||||
/usr/bin/time taskset 0xFF $DB_BENCH --flagfile="$1"_flags.txt &> "$1"_db_bench.txt
|
||||
echo done.
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user