vm/gvisor: use new signal-based diagnose

Presumably "debug -stacks" sometimes fails to actually dump stacks (some runtime hangs?).
Use new mechanism that just sends a signal.
This commit is contained in:
Dmitry Vyukov 2018-08-24 16:02:56 -07:00
parent 6c7e9d3daa
commit ec887defaf

View File

@ -188,6 +188,7 @@ func (inst *instance) runscCmd(add ...string) *exec.Cmd {
args := []string{
"-root", inst.rootDir,
"-watchdog-action=panic",
"-panic-signal=12",
"-network=none",
}
if inst.cfg.RunscArgs != "" {
@ -325,7 +326,7 @@ func (inst *instance) guestProxy() (*os.File, error) {
}
func (inst *instance) Diagnose() bool {
osutil.Run(time.Minute, inst.runscCmd("debug", "-stacks", inst.name))
osutil.Run(time.Minute, inst.runscCmd("debug", "-signal=12", inst.name))
return true
}