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
This commit is contained in:
Michael Pratt
2020-06-01 14:32:19 -07:00
committed by gVisor bot
parent 35a3f462d9
commit 12f74bd6f6
+1 -1
View File
@@ -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)