Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[lldb] Fixed lldb-server crash (TestLogHandler was not thread safe) (l…
…lvm#101326) Host::LaunchProcess() requires to SetMonitorProcessCallback. This callback is called from the child process monitor thread. We cannot control this thread anyway. lldb-server may crash if there is a logging around this callback because TestLogHandler is not thread safe. I faced this issue debugging 100 simultaneous child processes. Note StreamLogHandler::Emit() in lldb/source/Utility/Log.cpp already contains the similar mutex.
- Loading branch information