aboutsummaryrefslogtreecommitdiffstats
path: root/vm/gvisor
diff options
context:
space:
mode:
Diffstat (limited to 'vm/gvisor')
-rw-r--r--vm/gvisor/gvisor.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/vm/gvisor/gvisor.go b/vm/gvisor/gvisor.go
index e1e18b98a..6ae6151b6 100644
--- a/vm/gvisor/gvisor.go
+++ b/vm/gvisor/gvisor.go
@@ -190,7 +190,6 @@ func (inst *instance) runscCmd(add ...string) *exec.Cmd {
args := []string{
"-root", inst.rootDir,
"-watchdog-action=panic",
- "-trace-signal=12",
"-network=none",
"-debug",
}
@@ -328,8 +327,11 @@ func (inst *instance) guestProxy() (*os.File, error) {
}
func (inst *instance) Diagnose() ([]byte, bool) {
- osutil.Run(time.Minute, inst.runscCmd("debug", "-signal=12", inst.name))
- return nil, true
+ b, err := osutil.Run(time.Minute, inst.runscCmd("debug", "-stacks", inst.name))
+ if err != nil {
+ b = append(b, []byte(fmt.Sprintf("\n\nError collecting stacks: %v", err))...)
+ }
+ return b, false
}
func init() {