diff options
| -rw-r--r-- | tools/syz-stress/stress.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/syz-stress/stress.go b/tools/syz-stress/stress.go index 10a2785b3..8bd56583a 100644 --- a/tools/syz-stress/stress.go +++ b/tools/syz-stress/stress.go @@ -95,15 +95,15 @@ func execute(pid int, env *ipc.Env, p *prog.Prog) { outMu.Unlock() } - output, _, _, _, _, err := env.Exec(p) + output, _, _, failed, hanged, err := env.Exec(p) if err != nil { fmt.Printf("failed to execute executor: %v\n", err) } - failed := failedRe.Match(output) - if failed { + paniced := failedRe.Match(output) + if failed || hanged || paniced || err != nil { fmt.Printf("PROGRAM:\n%s\n", p.Serialize()) } - if failed || *flagOutput { + if failed || hanged || paniced || err != nil || *flagOutput { os.Stdout.Write(output) } } |
