diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2024-07-12 13:09:19 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2024-07-15 12:35:21 +0000 |
| commit | b70dd0c87bfef506bde0691d981466e5f537a01d (patch) | |
| tree | 79f9ad87953d436a48c9ed0871d16f312e5781a6 /tools | |
| parent | 15b6e763fde0cbc96e555d975e92532222ecd7ff (diff) | |
tools/syz-repro: fix the tool
We need to call Pool.Loop() to make it boot instances.
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/syz-repro/repro.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/syz-repro/repro.go b/tools/syz-repro/repro.go index 4d0426936..13b9ffa62 100644 --- a/tools/syz-repro/repro.go +++ b/tools/syz-repro/repro.go @@ -4,6 +4,7 @@ package main import ( + "context" "flag" "fmt" "os" @@ -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) |
