diff options
Diffstat (limited to 'pkg/report/linux.go')
| -rw-r--r-- | pkg/report/linux.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/report/linux.go b/pkg/report/linux.go index e46a34a91..69e674836 100644 --- a/pkg/report/linux.go +++ b/pkg/report/linux.go @@ -155,6 +155,8 @@ func ctorLinux(cfg *config) (reporterImpl, []string, error) { const contextConsole = "console" +var linuxPanickedRe = regexp.MustCompile(`Kernel panic - not syncing`) + func (ctx *linux) ContainsCrash(output []byte) bool { return containsCrash(output, linuxOopses, ctx.ignores) } @@ -196,6 +198,7 @@ func (ctx *linux) Parse(output []byte) *Report { if !rep.Corrupted { rep.Corrupted, rep.CorruptedReason = isCorrupted(title, report, format) } + rep.Panicked = linuxPanickedRe.Match(output) if rep.CorruptedReason == corruptedNoFrames && context != contextConsole && !questionable { // We used to look at questionable frame with the following incentive: // """ |
