| 1 | Drop backtracing feature, as it is implemented using using glibc specific
|
| 2 | features.
|
| 3 |
|
| 4 | |
| 5 | |
| 6 | @@ -1,6 +1,5 @@
|
| 7 | #include <cstring>
|
| 8 | #include <errno.h>
|
| 9 | -#include <execinfo.h>
|
| 10 | #include <fcntl.h>
|
| 11 | #include <inttypes.h>
|
| 12 | #include <unistd.h>
|
| 13 | @@ -68,18 +67,7 @@
|
| 14 | TFE_System::logWrite(LOG_ERROR, "CrashHandler", "faulting address %p", siginfo->si_addr);
|
| 15 | }
|
| 16 |
|
| 17 | - // backtrace() can also segfault; purposefully ignore SEGV before calling it.
|
| 18 | - signal(SIGSEGV, SIG_IGN);
|
| 19 | - entries = backtrace(buf, 512);
|
| 20 | - if (entries) {
|
| 21 | - ents = backtrace_symbols(buf, entries);
|
| 22 | - TFE_System::logWrite(LOG_ERROR, "CrashHandler", "Backtrace %d:", entries);
|
| 23 | - for (i = 0; i < entries; i++) {
|
| 24 | - TFE_System::logWrite(LOG_ERROR, "CrashHandler", "%03d %s", i, ents[i]);
|
| 25 | - }
|
| 26 | - } else {
|
| 27 | - TFE_System::logWrite(LOG_ERROR, "CrashHandler", "no backtrace possible");
|
| 28 | - }
|
| 29 | + TFE_System::logWrite(LOG_ERROR, "CrashHandler", "no backtrace possible");
|
| 30 |
|
| 31 | // for certain signals, the default handler will create
|
| 32 | // a coredump if enabled by administrator.
|