From b5b63a1dac03cc61a04f2c8cd025a8a8435851ce Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 31 May 2024 10:36:26 +0200 Subject: syz-manager: fix web interface in VM-less mode There is no VM loop an answer reproRequest, so don't wait for it. --- syz-manager/http.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/syz-manager/http.go b/syz-manager/http.go index 3eb674051..60d53430f 100644 --- a/syz-manager/http.go +++ b/syz-manager/http.go @@ -560,9 +560,12 @@ func (mgr *Manager) httpFilterPCs(w http.ResponseWriter, r *http.Request) { func (mgr *Manager) collectCrashes(workdir string) ([]*UICrashType, error) { // Note: mu is not locked here. - reproReply := make(chan map[string]bool) - mgr.reproRequest <- reproReply - repros := <-reproReply + var repros map[string]bool + if !mgr.cfg.VMLess { + reproReply := make(chan map[string]bool) + mgr.reproRequest <- reproReply + repros = <-reproReply + } crashdir := filepath.Join(workdir, "crashes") dirs, err := osutil.ListDir(crashdir) -- cgit mrf-deployment