Fixed crashes when capturing stacktrace from multiple threads.
This commit is contained in:
@@ -54,7 +54,7 @@ void backtraceErrorCallback(void* data, const char* msg, int /* errnum */)
|
||||
btData.error = msg;
|
||||
}
|
||||
|
||||
backtrace_state* gBacktraceState = nullptr;
|
||||
thread_local backtrace_state* gBacktraceState = nullptr;
|
||||
} // namespace
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user