modular Smoke kdeui
util/backtrace.cpp
Sat Apr 3 19:29:08 CEST 2010 Tobias Rautenkranz <tobias@rautenkranz.ch>
* modular Smoke kdeui
--- old-kde.ui/util/backtrace.cpp 2014-10-30 07:22:33.000000000 +0100
+++ new-kde.ui/util/backtrace.cpp 1970-01-01 01:00:00.000000000 +0100
@@ -1,27 +0,0 @@
-#include <QDebug>
-
-#define BT_EXPORT __attribute__((visibility("default")))
-
-extern "C" {
-/** Overwrites backtrace_symbols in execinfo.h and does nothing.
- * Work around segfault in:
- * ~KIconLoader()
- * kRealBacktrace(int)
- * backtrace_symbols
- *
- * ~KIconLoader() is called at exit when an KApplication has been constructed.
- * Somehow a negative number is pased as size to backtrace_symbols:
- * void* trace[256];
- * backtrace_symbols(trace, -1219315128); // => SIGSEGV
- * and segfaults in sysdeps/generic/elf/backtracesyms.c:65
- */
-BT_EXPORT char**
-backtrace_symbols(void* const* buffer, int size)
-{
- qDebug() << "libcl-smoke-disable-backtrace: backtrace_symbols workaround\n"
- << "\tbuffer: " << buffer << "size: " << size;
- return NULL;
-}
-
-// overwriting backtrace(void** buffer, int size) does not work!?
-}