Skip to content

Commit

Permalink
tools/syz-repro: fix the tool
Browse files Browse the repository at this point in the history
We need to call Pool.Loop() to make it boot instances.
  • Loading branch information
a-nogikh committed Jul 15, 2024
1 parent 15b6e76 commit b70dd0c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/syz-repro/repro.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
package main

import (
"context"
"flag"
"fmt"
"os"
Expand Down Expand Up @@ -60,6 +61,10 @@ func main() {
}
pool := vm.NewDispatcher(vmPool, nil)
pool.ReserveForRun(count)
ctx, done := context.WithCancel(context.Background())
go pool.Loop(ctx)
defer done()

res, stats, err := repro.Run(data, cfg, flatrpc.AllFeatures, reporter, pool)
if err != nil {
log.Logf(0, "reproduction failed: %v", err)
Expand Down

0 comments on commit b70dd0c

Please sign in to comment.