From c92879679c05ddf4364d1cd5dea947407f35b2f8 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 4 Dec 2017 10:53:25 +0100 Subject: 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 --- pkg/report/linux.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pkg/report/linux.go') 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. -- cgit mrf-deployment