Skip to content

Commit

Permalink
pkg/report: ignore "ddb.onpanic" on netbsd
Browse files Browse the repository at this point in the history
  • Loading branch information
dvyukov committed Oct 26, 2020
1 parent f74d734 commit d46bc75
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/report/netbsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ var netbsdOopses = append([]*oops{
fmt: "UBSan: Undefined Behavior in %[1]v",
},
},
[]*regexp.Regexp{},
[]*regexp.Regexp{
compile(`ddb\.onpanic:`),
},
},
{
[]byte("UBSan:"),
Expand Down
1 change: 1 addition & 0 deletions pkg/report/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,7 @@ var commonOopses = []*oops{
compile("_panic:"),
// Android prints this sometimes during boot.
compile("xlog_status:"),
compile(`ddb\.onpanic:`),
},
},
}
14 changes: 14 additions & 0 deletions pkg/report/testdata/netbsd/report/14
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

/dev/rdk0: MARKING FILE SYSTEM CLEAN
swapctl: setting dump device to /dev/dk1
swapctl: adding /dev/dk1 as swap device at priority 0
Starting file system checks:
Loaded entropy from /var/db/entropy-file.
Setting tty flags.
Setting sysctl variables:
ddb.onpanic: 1 -> 1
ddb.commandonenter: trace;show registers -> "show registers;bt;show panic;ps;show all locks;show all pages;show all pools"
ddb.lines: 24 -> 0
ddb.maxwidth: 80 -> 0
Starting network.
IPv6 mode: host

0 comments on commit d46bc75

Please sign in to comment.