diff options
author | Michael Pratt <mpratt@google.com> | 2020-06-01 14:31:06 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-06-01 14:32:19 -0700 |
commit | 12f74bd6f6208f87c857da4adddeb0c32f15e893 (patch) | |
tree | fccc30d83f07bc227398743d4460b9ba0b3e581e /runsc | |
parent | 35a3f462d9ccc5237f0200fcbeafaebb110b5134 (diff) |
Include runtime goroutines in panics
SetTraceback("all") does not include all goroutines in panics (you didn't think
it was that simple, did you?). It includes all _user_ goroutines; those started
by the runtime (such as GC workers) are excluded.
Switch to "system" to additionally include runtime goroutines, which are useful
to track down bugs in the runtime itself.
PiperOrigin-RevId: 314204473
Diffstat (limited to 'runsc')
-rw-r--r-- | runsc/cmd/boot.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runsc/cmd/boot.go b/runsc/cmd/boot.go index 4c2ac6ff0..01204ab4d 100644 --- a/runsc/cmd/boot.go +++ b/runsc/cmd/boot.go @@ -136,7 +136,7 @@ func (b *Boot) Execute(_ context.Context, f *flag.FlagSet, args ...interface{}) } // Ensure that if there is a panic, all goroutine stacks are printed. - debug.SetTraceback("all") + debug.SetTraceback("system") conf := args[0].(*boot.Config) |