diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2015-12-07 17:12:41 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2015-12-17 14:38:46 +0100 |
| commit | db6bf8626d1bdb3122b4d352470cf4c67ab24ae8 (patch) | |
| tree | 8e6d772c47af1d02bd3d6b092b07f1b466b987ab | |
| parent | d3c088db4a54da1c40ceeb976e1702b8bcf2f777 (diff) | |
detect UBSAN error reports
| -rw-r--r-- | vm/kvm/kvm.go | 2 | ||||
| -rw-r--r-- | vm/qemu/qemu.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/vm/kvm/kvm.go b/vm/kvm/kvm.go index 2b76c9b13..2b10f1eaa 100644 --- a/vm/kvm/kvm.go +++ b/vm/kvm/kvm.go @@ -242,7 +242,7 @@ func (inst *Instance) Run() { lastOutput := time.Now() lastOutputLen := 0 matchPos := 0 - crashRe := regexp.MustCompile("\\[ cut here \\]|Kernel panic| BUG: | WARNING: | INFO: |unable to handle kernel NULL pointer dereference|general protection fault") + crashRe := regexp.MustCompile("\\[ cut here \\]|Kernel panic| BUG: | WARNING: | INFO: |unable to handle kernel NULL pointer dereference|general protection fault|UBSAN:") const contextSize = 64 << 10 for range time.NewTicker(5 * time.Second).C { outputMu.Lock() diff --git a/vm/qemu/qemu.go b/vm/qemu/qemu.go index fcc838662..2e72cf352 100644 --- a/vm/qemu/qemu.go +++ b/vm/qemu/qemu.go @@ -279,7 +279,7 @@ func (inst *Instance) Run() { lastOutput := time.Now() lastOutputLen := 0 matchPos := 0 - crashRe := regexp.MustCompile("\\[ cut here \\]|Kernel panic| BUG: | WARNING: | INFO: |unable to handle kernel NULL pointer dereference|general protection fault") + crashRe := regexp.MustCompile("\\[ cut here \\]|Kernel panic| BUG: | WARNING: | INFO: |unable to handle kernel NULL pointer dereference|general protection fault|UBSAN:") const ( beforeContext = 256 << 10 afterContext = 64 << 10 |
