Skip to content

Commit

Permalink
Merge pull request ClickHouse#56266 from ClickHouse/fix-segfault-keeper
Browse files Browse the repository at this point in the history
Fix segfault in signal handler for Keeper
  • Loading branch information
antonio2368 authored Nov 3, 2023
2 parents 7828a4b + 33d0974 commit f707702
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Interpreters/Context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3430,7 +3430,8 @@ void Context::initializeTraceCollector()
/// Call after unexpected crash happen.
void Context::handleCrash() const TSA_NO_THREAD_SAFETY_ANALYSIS
{
shared->system_logs->handleCrash();
if (shared->system_logs)
shared->system_logs->handleCrash();
}

bool Context::hasTraceCollector() const
Expand Down

0 comments on commit f707702

Please sign in to comment.