aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2015-12-23 19:09:48 +0100
committerDmitry Vyukov <dvyukov@google.com>2015-12-23 19:09:48 +0100
commit7f3186abbbb6b3cf115bd48f1d597bca058b1ddf (patch)
treefbb74ba61d39781c3a8dd710960f173661e5c07b /tools
parent47e55508d006bacc34583c088c303f4a8fb2efcb (diff)
execprog: detect executor-detected bugs
Diffstat (limited to 'tools')
-rw-r--r--tools/syz-execprog/execprog.go3
1 files changed, 3 insertions, 0 deletions
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)
}