Skip to content

Commit fc0f6b1

Browse files
committed
Improve memory leak tracking by filtering out unknown frame information
1 parent ae1abf6 commit fc0f6b1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

python/tests/stress/arcticdb/version_store/test_mem_leaks.py

+5
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,11 @@ def is_relevant(stack: Stack) -> bool:
607607
# print(f"SAMPLE >>> {frame.filename}:{frame.function}[{frame.lineno}]")
608608
frame_info_str = f"{frame.filename}:{frame.function}:[{frame.lineno}]"
609609

610+
# Check if the frame has unknown information
611+
if frame.filename == "<unknown>" and frame.function == "<unknown>" and frame.lineno == 0:
612+
logger.warning(f"Frame excluded : {frame_info_str}")
613+
return False
614+
610615
if "folly::CPUThreadPoolExecutor::CPUTask" in frame_info_str:
611616
logger.warning(f"Frame excluded : {frame_info_str}")
612617
logger.warning(f"""Explanation : These are on purpose, and they come from the interaction of

0 commit comments

Comments
 (0)