summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2014-10-29 12:45:21 +0100
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-10-29 12:45:21 +0100
commit5481fe58198218788b97925ae07d9a37bdff5290 (patch)
tree7590ae7d8e5350f75a78cb3e186630bca6dc77db
parentbf571da68aff4b00c43f22d8237c104fb8d75e4d (diff)
hack
-rw-r--r--debian/patches/backtrace-hack.patch17
-rw-r--r--debian/patches/series1
2 files changed, 18 insertions, 0 deletions
diff --git a/debian/patches/backtrace-hack.patch b/debian/patches/backtrace-hack.patch
new file mode 100644
index 00000000..7a235936
--- /dev/null
+++ b/debian/patches/backtrace-hack.patch
@@ -0,0 +1,17 @@
+diff --git a/libshouldbeinlibc/assert-backtrace.h b/libshouldbeinlibc/assert-backtrace.h
+index 7baf4b3..b6ccccd 100644
+--- a/libshouldbeinlibc/assert-backtrace.h
++++ b/libshouldbeinlibc/assert-backtrace.h
+@@ -57,6 +57,12 @@ __assert_fail_backtrace (const char *__assertion, const char *__file,
+ if (nptrs == 0)
+ error (1, errno, "backtrace");
+
++#ifndef why_doesnt_backtrace_symbols_fd_work
++ int i;
++ for (i = SKIP; i < nptrs; i++)
++ error (0, 0, "%d: %p", i - SKIP, buffer[i]);
++#endif
++
+ backtrace_symbols_fd (&buffer[SKIP], nptrs - SKIP, STDERR_FILENO);
+ fflush (stderr);
+ exit (EXIT_FAILURE);
diff --git a/debian/patches/series b/debian/patches/series
index e0ae6958..9220eb6c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -59,3 +59,4 @@ mach-defpager-protected-payload.patch
startup-avoid-broken-puts.patch
libpager-fixthreads.patch
backtrace.patch
+backtrace-hack.patch