From 7bd85f2aea5965969505c075cc4451ac69c650b0 Mon Sep 17 00:00:00 2001 From: Andrey Konovalov Date: Tue, 28 Nov 2017 15:39:18 +0100 Subject: pkg/report: fix corrupted stack trace detection Look for stack frames in the next 10 lines after 'Call Trace' instead of 3. --- pkg/report/linux.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/report/linux.go') diff --git a/pkg/report/linux.go b/pkg/report/linux.go index 2e29fb1ca..ae66c1b27 100644 --- a/pkg/report/linux.go +++ b/pkg/report/linux.go @@ -365,8 +365,8 @@ func (ctx *linux) isCorrupted(title string, report []byte, format oopsFormat) bo } frames = frames[1:] corrupted := true - // Check that at least one of the next 3 lines contains a frame. - for i := 0; i < 3; i++ { + // Check that at least one of the next 10 lines contains a frame. + for i := 0; i < 10; i++ { if bytes.Contains(frames[i], []byte("(stack is not available)")) || linuxSymbolizeRe.Match(frames[i]) { corrupted = false break -- cgit mrf-deployment