| 1 | diff --git a/src/Common/ExceptionHandler/ExceptionHandler_posix.cpp b/src/Common/ExceptionHandler/ExceptionHandler_posix.cpp
|
| 2 | index 34430e3..35df995 100644
|
| 3 | |
| 4 | |
| 5 | @@ -1,5 +1,5 @@
|
| 6 | #include <signal.h>
|
| 7 | -#include <execinfo.h>
|
| 8 | +//#include <execinfo.h>
|
| 9 | #include <string.h>
|
| 10 | #include <string>
|
| 11 | #include "config/CemuConfig.h"
|
| 12 | @@ -76,10 +76,10 @@ void handlerDumpingSignal(int sig, siginfo_t *info, void *context)
|
| 13 | }
|
| 14 |
|
| 15 | void* backtraceArray[128];
|
| 16 | - size_t size;
|
| 17 | + size_t size = 0;
|
| 18 |
|
| 19 | // get void*'s for all entries on the stack
|
| 20 | - size = backtrace(backtraceArray, 128);
|
| 21 | + //size = backtrace(backtraceArray, 128);
|
| 22 | // replace the deepest entry with the actual crash address
|
| 23 | #if defined(ARCH_X86_64) && BOOST_OS_LINUX > 0
|
| 24 | ucontext_t *uc = (ucontext_t *)context;
|
| 25 | @@ -89,7 +89,7 @@ void handlerDumpingSignal(int sig, siginfo_t *info, void *context)
|
| 26 | CrashLog_WriteLine(fmt::format("Error: signal {}:", sig));
|
| 27 |
|
| 28 | #if BOOST_OS_LINUX
|
| 29 | - char** symbol_trace = backtrace_symbols(backtraceArray, size);
|
| 30 | + char** symbol_trace = NULL;
|
| 31 |
|
| 32 | if (symbol_trace)
|
| 33 | {
|
| 34 | @@ -98,7 +98,7 @@ void handlerDumpingSignal(int sig, siginfo_t *info, void *context)
|
| 35 | }
|
| 36 | else
|
| 37 | {
|
| 38 | - CrashLog_WriteLine("Failed to read backtrace");
|
| 39 | + CrashLog_WriteLine("No backtraces");
|
| 40 | }
|
| 41 | #else
|
| 42 | backtrace_symbols_fd(backtraceArray, size, STDERR_FILENO);
|