mirror of
https://github.com/intel/llvm.git
synced 2026-01-14 03:50:17 +08:00
<rdar://problem/13521159>
LLDB is crashing when logging is enabled from lldb-perf-clang. This has to do with the global destructor chain as the process and its threads are being torn down. All logging channels now make one and only one instance that is kept in a global pointer which is never freed. This guarantees that logging can correctly continue as the process tears itself down. llvm-svn: 178191
This commit is contained in:
@@ -84,7 +84,7 @@ ThreadPlanBase::ShouldStop (Event *event_ptr)
|
||||
m_stop_vote = eVoteYes;
|
||||
m_run_vote = eVoteYes;
|
||||
|
||||
LogSP log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_STEP));
|
||||
Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_STEP));
|
||||
|
||||
StopInfoSP stop_info_sp = GetPrivateStopReason();
|
||||
if (stop_info_sp)
|
||||
|
||||
Reference in New Issue
Block a user