aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/report/linux.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-12-04 10:53:25 +0100
committerDmitry Vyukov <dvyukov@google.com>2017-12-04 10:53:25 +0100
commitc92879679c05ddf4364d1cd5dea947407f35b2f8 (patch)
treeac1458da91b58a08df598922678aed55ea8c1c22 /pkg/report/linux.go
parentf5e771b2001534be1ba5066cbeefc8e6b77e2739 (diff)
pkg/report: extinguish panics
We see panic during report parsing as in #457. This does not really fix them, but should stop managers crashing. Update #457
Diffstat (limited to 'pkg/report/linux.go')
-rw-r--r--pkg/report/linux.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/report/linux.go b/pkg/report/linux.go
index c64a087e8..56d21cf5b 100644
--- a/pkg/report/linux.go
+++ b/pkg/report/linux.go
@@ -157,6 +157,9 @@ func (ctx *linux) Parse(output []byte) *Report {
return nil
}
title, report, format := extractDescription(ctx.extractConsoleOutput(output[rep.StartPos:]), oops)
+ if title == "" {
+ title, report, format = extractDescription(output[rep.StartPos:], oops)
+ }
rep.Title = title
rep.Corrupted = ctx.isCorrupted(title, report, format)
// Executor PIDs are not interesting.