diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-12-13 12:33:17 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-12-13 12:33:17 +0100 |
| commit | ecf8ceeef241d31b45545eb3e08edcb73c079151 (patch) | |
| tree | 6f72a569ab2271e041fd50e501145e108ecd0798 | |
| parent | a553162c82da9391b502c516cf74c8389ba8d1b9 (diff) | |
pkg/report: pkg/report: relaxed gvisor OOM suppressions more
There are more variations of this panic format.
| -rw-r--r-- | pkg/report/gvisor.go | 6 | ||||
| -rw-r--r-- | pkg/report/testdata/gvisor/report/19 | 16 |
2 files changed, 19 insertions, 3 deletions
diff --git a/pkg/report/gvisor.go b/pkg/report/gvisor.go index dab63577b..ec0a494ea 100644 --- a/pkg/report/gvisor.go +++ b/pkg/report/gvisor.go @@ -22,9 +22,9 @@ func ctorGvisor(target *targets.Target, kernelSrc, kernelObj string, suppressions := []string{ "fatal error: runtime: out of memory", "fatal error: runtime: cannot allocate memory", - "panic: ptrace sysemu failed: no such process", // OOM kill - `panic: ptrace set fpregs \(.*\) failed: no such process`, // OOM kill - `panic: ptrace set regs \(.*\) failed: no such process`, // OOM kill + "panic: ptrace sysemu failed: no such process", // OOM kill + `panic: ptrace set fpregs.* failed: no such process`, // OOM kill + `panic: ptrace set regs.* failed: no such process`, // OOM kill "panic: failed to start executor binary", "panic: executor failed: pthread_create failed", "panic: error mapping run data: error mapping runData: cannot allocate memory", diff --git a/pkg/report/testdata/gvisor/report/19 b/pkg/report/testdata/gvisor/report/19 new file mode 100644 index 000000000..dae61562a --- /dev/null +++ b/pkg/report/testdata/gvisor/report/19 @@ -0,0 +1,16 @@ +TITLE: panic: ptrace set regs failed: no such process +SUPPRESSED: Y + +panic: ptrace set regs failed: no such process + +goroutine 195 [running]: +gvisor.googlesource.com/gvisor/pkg/sentry/platform/ptrace.(*thread).syscall(0xc0002c2690, 0xc00052bd98, 0xc00052bed0, 0x5, 0x5) + pkg/sentry/platform/ptrace/subprocess.go:381 +0x576 +gvisor.googlesource.com/gvisor/pkg/sentry/platform/ptrace.(*thread).syscallIgnoreInterrupt(0xc0002c2690, 0xc0002c26a0, 0x38, 0xc00052bed0, 0x5, 0x5, 0xc00014c6b8, 0xc0008716e0, 0xc00052bef8) + pkg/sentry/platform/ptrace/subprocess.go:428 +0xc2 +gvisor.googlesource.com/gvisor/pkg/sentry/platform/ptrace.(*thread).clone(0xc0002c2690, 0xc00052bf58, 0x1, 0x0) + pkg/sentry/platform/ptrace/ptrace_unsafe.go:138 +0xad +gvisor.googlesource.com/gvisor/pkg/sentry/platform/ptrace.newSubprocess.func1(0xc00033c170, 0xc00014c600, 0xc00014c660) + pkg/sentry/platform/ptrace/subprocess.go:163 +0x15f +created by gvisor.googlesource.com/gvisor/pkg/sentry/platform/ptrace.newSubprocess + pkg/sentry/platform/ptrace/subprocess.go:147 +0xd2 |
