test/asan: suppress memory leaks in external libfuse3
There are some leaks in libfuse3 that is external to SPDK. With this patch, any leaks in libfuse3 will be suppressed. ==1944861==ERROR: LeakSanitizer: detected memory leaks Direct leak of 32 byte(s) in 2 object(s) allocated from: #0 0x7fc26a462048 in __interceptor_realloc (/lib64/libasan.so.5+0xf0048) #1 0x7fc269bfcfe2 in fuse_opt_add_arg (/lib64/libfuse3.so.3+0x19fe2) Indirect leak of 10 byte(s) in 2 object(s) allocated from: #0 0x7fc26a3ade60 in strdup (/lib64/libasan.so.5+0x3be60) #1 0x7fc269bfcfc6 in fuse_opt_add_arg (/lib64/libfuse3.so.3+0x19fc6) SUMMARY: AddressSanitizer: 42 byte(s) leaked in 4 allocation(s). Appropriate patch solving this issue was sent to libfuse, but not merged yet. Change-Id: I66625e155b78082f2f2c9790bf3f3b48c3c04f33 Signed-off-by: Tomasz Kulasek <tomaszx.kulasek@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/475117 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
parent
53184430a5
commit
8e70c6e320
@ -101,6 +101,9 @@ echo "leak:spdk_fio_io_u_init" >> "$asan_suppression_file"
|
||||
# Suppress leaks in libiscsi
|
||||
echo "leak:libiscsi.so" >> "$asan_suppression_file"
|
||||
|
||||
# Suppress leaks in libfuse3
|
||||
echo "leak:libfuse3.so" >> "$asan_suppression_file"
|
||||
|
||||
export LSAN_OPTIONS=suppressions="$asan_suppression_file"
|
||||
|
||||
export DEFAULT_RPC_ADDR="/var/tmp/spdk.sock"
|
||||
|
Loading…
Reference in New Issue
Block a user