Skip to content

Commit 95a9150

Browse files
committed
contest: vm: try to extract ref_tracker leaks
Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 8092d86 commit 95a9150

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

contest/remote/lib/vm.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def _read_pipe_nonblock(self, pipe):
277277
return read_some, output
278278
read_some = True
279279
output = decode_and_filter(buf)
280-
if output.find("] RIP: ") != -1 or output.find("] Call Trace:") != -1:
280+
if output.find("] RIP: ") != -1 or output.find("] Call Trace:") != -1 or output.find('] ref_tracker: ') != -1:
281281
self.fail_state = "oops"
282282
except BlockingIOError:
283283
pass
@@ -382,12 +382,14 @@ def extract_crash(self, out_path):
382382
if in_crash:
383383
in_crash &= '] ---[ end trace ' not in line
384384
in_crash &= '] </TASK>' not in line
385+
in_crash &= line[-2:] != '] '
385386
if not in_crash:
386387
self._load_filters()
387388
finger_prints.append(crash_finger_print(self.filter_data,
388389
crash_lines[start:]))
389390
else:
390391
in_crash |= '] Hardware name: ' in line
392+
in_crash |= '] ref_tracker: ' in line
391393
if in_crash:
392394
start = len(crash_lines)
393395
crash_lines += last5

0 commit comments

Comments
 (0)