mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
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:
committed by
gVisor bot
parent
35a3f462d9
commit
12f74bd6f6
+1
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user