Commit f4060b5b authored by Jan Lepper's avatar Jan Lepper

exception handler: force access violation when backtrace thread can't be created

parent 9fe5a7eb
......@@ -284,6 +284,11 @@ void printBacktracePrivate()
LOG_ERROR<<"ERROR: can't create backtrace thread - error code: 0x"<<GetLastError()<<endl;
CloseHandle(currend_thread);
ReleaseMutex(g_target_thread_mutex);
// force access violation which will call vectoredExceptionHandler
int *null_ptr = nullptr;
*null_ptr = 1;
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment