From 76357d6f894431c00cc09cfc9e7474701a4b822a Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 28 Nov 2019 14:07:19 +0100 Subject: pkg/report: update UBSAN report parsing Update #1523 --- pkg/report/linux.go | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'pkg/report/linux.go') diff --git a/pkg/report/linux.go b/pkg/report/linux.go index dae7adbd9..73a0b5b1a 100644 --- a/pkg/report/linux.go +++ b/pkg/report/linux.go @@ -1534,8 +1534,16 @@ var linuxOopses = append([]*oops{ []byte("UBSAN:"), []oopsFormat{ { - title: compile("UBSAN: (.*)"), - fmt: "UBSAN: %[1]v", + title: compile("UBSAN:"), + report: compile("UBSAN: Undefined behaviour in"), + fmt: "UBSAN: undefined-behaviour in %[1]v", + stack: &stackFmt{ + parts: []*regexp.Regexp{ + compile("Call Trace:"), + parseStackTrace, + }, + skip: []string{"ubsan", "overflow"}, + }, }, }, []*regexp.Regexp{}, -- cgit mrf-deployment