Skip to content

Commit

Permalink
Merge pull request redpanda-data#7888 from dotnwat/fix-3338
Browse files Browse the repository at this point in the history
lsan: ignore memory leak
  • Loading branch information
dotnwat committed Dec 21, 2022
2 parents 2e1d6ff + ca2f21a commit cba5b3a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions lsan_suppressions.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
leak:seastar::net::conntrack::handle::~handle
9 changes: 9 additions & 0 deletions tools/cmake_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,15 @@ def _run(self):
env["ASAN_SYMBOLIZER_PATH"] = llvm_symbolizer
logger.info(f"Using llvm-symbolizer: {llvm_symbolizer}")

# setup lsan suppressions
src_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)),
"..")
lsan_suppressions = os.path.join(src_dir, "lsan_suppressions.txt")
assert os.path.isfile(
lsan_suppressions
), f"cannot find lsan suppressions at {lsan_suppressions}"
env["LSAN_OPTIONS"] = f"suppressions={lsan_suppressions}"

# We only capture stderr because that's where backtraces go
p = subprocess.Popen(cmd,
env=env,
Expand Down

0 comments on commit cba5b3a

Please sign in to comment.