From d70ffd1a2b542498fa18cc470cc91441dc76f55b Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sat, 7 Apr 2018 15:28:34 +0200 Subject: pkg/report: strip "panic_on_warn set" more aggressively KMSAN reports can be short, but still include full stack. The added test is only 28 lines, so reduce the threshold from 40 to 25 lines. --- pkg/report/linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/report/linux.go') diff --git a/pkg/report/linux.go b/pkg/report/linux.go index 6948c1232..5b3404d19 100644 --- a/pkg/report/linux.go +++ b/pkg/report/linux.go @@ -178,7 +178,7 @@ func (ctx *linux) Parse(output []byte) *Report { skipLine := skipText if bytes.Contains(ln, []byte("Disabling lock debugging due to kernel taint")) { skipLine = true - } else if textLines > 40 && + } else if textLines > 25 && bytes.Contains(ln, []byte("Kernel panic - not syncing")) { // If panic_on_warn set, then we frequently have 2 stacks: // one for the actual report (or maybe even more than one), -- cgit mrf-deployment