From 7f3186abbbb6b3cf115bd48f1d597bca058b1ddf Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 23 Dec 2015 19:09:48 +0100 Subject: execprog: detect executor-detected bugs --- tools/syz-execprog/execprog.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools') diff --git a/tools/syz-execprog/execprog.go b/tools/syz-execprog/execprog.go index b12f052b1..b8dd6ee9a 100644 --- a/tools/syz-execprog/execprog.go +++ b/tools/syz-execprog/execprog.go @@ -108,6 +108,9 @@ func main() { } p := progs[idx%len(progs)] output, strace, cov, _, failed, hanged, err := env.Exec(p) + if failed { + fmt.Printf("BUG: executor-detected bug:\n%s", output) + } if *flagDebug || err != nil { fmt.Printf("result: failed=%v hanged=%v err=%v\n\n%s", failed, hanged, err, output) } -- cgit mrf-deployment