aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/report/openbsd.go
diff options
context:
space:
mode:
authorGreg Steuck <greg@nest.cx>2022-08-29 11:29:55 +0200
committerAleksandr Nogikh <wp32pw@gmail.com>2022-08-29 12:35:14 +0200
commitf1bbaaa0bb2a52a3bebb2ac75527a795a8d41a72 (patch)
tree70fc9e3efb986fa162a92fc1c9337c7c5a55d356 /pkg/report/openbsd.go
parent071779164d7640bc97cdb04864e59dbb91db6469 (diff)
pkg/report: use `show panic` output for unscrambled panic message
The original panic: is printed without logging and is often garbled by concurrent printing by another core. OTOH, `show panic` is printed exclusively so we prefer to use that.
Diffstat (limited to 'pkg/report/openbsd.go')
-rw-r--r--pkg/report/openbsd.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/report/openbsd.go b/pkg/report/openbsd.go
index dc2970c76..13e5a5136 100644
--- a/pkg/report/openbsd.go
+++ b/pkg/report/openbsd.go
@@ -40,6 +40,10 @@ var openbsdOopses = append([]*oops{
[]byte("panic:"),
[]oopsFormat{
{
+ title: compile(`\nddb\{\d+\}> show panic(?Us:.*)[*]cpu\d+: ([^\n]+)(?Us:.*)\nddb\{\d+\}> trace`),
+ fmt: "panic: %[1]v",
+ },
+ {
title: compile("panic: kernel diagnostic assertion (.+) failed: file \".*/([^\"]+)"),
fmt: "assert %[1]v failed in %[2]v",
},