From cafff8b6ce51d6d1fa82eb96612a943db3c03541 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Tue, 16 Nov 2021 10:10:16 +0000 Subject: pkg/report: skip __might_resched frames Not skipping this frame leads to "BUG: sleeping function called from invalid context at" pointing to the wrong function. Fix that and add a report parse test. --- pkg/report/linux.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/report/linux.go') diff --git a/pkg/report/linux.go b/pkg/report/linux.go index a6dd18d71..c22d60452 100644 --- a/pkg/report/linux.go +++ b/pkg/report/linux.go @@ -1164,6 +1164,7 @@ var linuxStackParams = &stackParams{ "logic_in", "logic_out", "^crc\\d+", + "__might_resched", }, corruptedLines: []*regexp.Regexp{ // Fault injection stacks are frequently intermixed with crash reports. -- cgit mrf-deployment