Files
clang-p2996/lldb/tools/lldb-server/LLDBServerUtilities.cpp
Dmitry Vasilyev 93fecc2577 [lldb] Fixed lldb-server crash (TestLogHandler was not thread safe) (#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.
2024-07-31 17:51:06 +04:00

2.7 KiB