mirror of
https://github.com/reactos/syzkaller.git
synced 2024-11-27 05:10:43 +00:00
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:
parent
6c7e9d3daa
commit
ec887defaf
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user