diff --git a/compiler-rt/lib/fuzzer/FuzzerDriver.cpp b/compiler-rt/lib/fuzzer/FuzzerDriver.cpp index 3771abf5f532d..bf60606594693 100644 --- a/compiler-rt/lib/fuzzer/FuzzerDriver.cpp +++ b/compiler-rt/lib/fuzzer/FuzzerDriver.cpp @@ -239,6 +239,7 @@ static void WorkerThread(const Command &BaseCmd, std::atomic *Counter, Cmd.combineOutAndErr(); if (Flags.verbosity) { std::string CommandLine = Cmd.toString(); + std::lock_guard Lock(Mu); Printf("%s\n", CommandLine.c_str()); } int ExitCode = ExecuteCommand(Cmd);