diff --git a/src/Common/ExceptionHandler/ExceptionHandler_posix.cpp b/src/Common/ExceptionHandler/ExceptionHandler_posix.cpp index 34430e3..35df995 100644 --- a/src/Common/ExceptionHandler/ExceptionHandler_posix.cpp +++ b/src/Common/ExceptionHandler/ExceptionHandler_posix.cpp @@ -1,5 +1,5 @@ #include -#include +//#include #include #include #include "config/CemuConfig.h" @@ -76,10 +76,10 @@ void handlerDumpingSignal(int sig, siginfo_t *info, void *context) } void* backtraceArray[128]; - size_t size; + size_t size = 0; // get void*'s for all entries on the stack - size = backtrace(backtraceArray, 128); + //size = backtrace(backtraceArray, 128); // replace the deepest entry with the actual crash address #if defined(ARCH_X86_64) && BOOST_OS_LINUX > 0 ucontext_t *uc = (ucontext_t *)context; @@ -89,7 +89,7 @@ void handlerDumpingSignal(int sig, siginfo_t *info, void *context) CrashLog_WriteLine(fmt::format("Error: signal {}:", sig)); #if BOOST_OS_LINUX - char** symbol_trace = backtrace_symbols(backtraceArray, size); + char** symbol_trace = NULL; if (symbol_trace) { @@ -98,7 +98,7 @@ void handlerDumpingSignal(int sig, siginfo_t *info, void *context) } else { - CrashLog_WriteLine("Failed to read backtrace"); + CrashLog_WriteLine("No backtraces"); } #else backtrace_symbols_fd(backtraceArray, size, STDERR_FILENO);