mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-13 03:42:37 +01:00
36 lines
874 B
Diff
36 lines
874 B
Diff
--- a/radiantcore/log/SegFaultHandler.cpp
|
|
+++ b/radiantcore/log/SegFaultHandler.cpp
|
|
@@ -3,7 +3,6 @@
|
|
#include "itextstream.h"
|
|
|
|
#ifdef POSIX
|
|
-#include <execinfo.h>
|
|
#include <signal.h>
|
|
#endif
|
|
|
|
@@ -21,24 +21,6 @@
|
|
#ifdef POSIX
|
|
rError() << "SIGSEGV signal caught: " << sig << std::endl;
|
|
std::cerr << "SIGSEGV signal caught: " << sig << std::endl;
|
|
-
|
|
- void* buffer[100];
|
|
- int numAddresses = backtrace(buffer, sizeof(buffer));
|
|
- char** strings = backtrace_symbols(buffer, numAddresses);
|
|
-
|
|
- if (strings == nullptr)
|
|
- {
|
|
- std::cerr << "backtrace() returned nullptr" << std::endl;
|
|
- exit(EXIT_FAILURE);
|
|
- }
|
|
-
|
|
- for (int j = 0; j < numAddresses; j++)
|
|
- {
|
|
- rError() << j << ": " << strings[j] << std::endl;
|
|
- std::cerr << j << ": " << strings[j] << std::endl;
|
|
- }
|
|
-
|
|
- free(strings);
|
|
exit(1);
|
|
#endif
|
|
}
|
|
|