test/rocksdb: suppress leak reports on thread local ctx
Signed-off-by: Jim Harris <james.r.harris@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/452732 (master)
(cherry picked from commit 90586a7dca
)
Change-Id: I77b9f640d75c12ec083bec791506bed921e26292
Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/457190
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
This commit is contained in:
parent
6df4d14eec
commit
adb85a252d
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