Skip to content
Snippets Groups Projects
Commit ec3d7cdc authored by Cedric CAFFY's avatar Cedric CAFFY Committed by Julien Leduc
Browse files

Locked the entire Backtrace's constructor. It may solve the segfault in the ::backtrace_symbols

parent 699f7b1e
Branches
Tags
No related merge requests found
......@@ -117,7 +117,6 @@ cta::exception::Backtrace::Backtrace(bool fake): m_trace() {
void * array[200];
g_lock.lock();
size_t depth = ::backtrace(array, sizeof(array)/sizeof(void*));
g_lock.unlock();
char ** strings = ::backtrace_symbols(array, depth);
if (!strings)
......@@ -158,6 +157,7 @@ cta::exception::Backtrace::Backtrace(bool fake): m_trace() {
}
free (strings);
}
g_lock.unlock();
}
/* Implementation of the singleton lock */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment