diff mbox

libunwind: new pacakge

Message ID 1372260390.2822.5.camel@sven
State Superseded
Headers show

Commit Message

Sven Neumann June 26, 2013, 3:26 p.m. UTC

as we are also using libunwind with buildroot, perhaps I can add some of
our experiences with it...

Plain libunwind-1.1 won't compile on uClibc x86 as it uses setcontext().
This function is not available in uClibc (at least not in the released
versions). I have worked around this by commenting out some code in
libunwind (see attached patch), but this is probably not a good

I've also had a build failure at some point in the tests because there
is code that includes execinfo.h unconditionally.

I've attached the patches that we are using with libunwind. Perhaps they
can be useful for you.

diff mbox


From 3ca58a368f6ec5bee5767df81df36dda5426cce5 Mon Sep 17 00:00:00 2001
From: Sven Neumann <s.neumann@raumfeld.com>
Date: Tue, 9 Oct 2012 12:11:05 +0200
Subject: [PATCH] tests: don't include execinfo.h unconditionally

On some systems (for example uCLibC in certain configurations),
backtrace support is not available.

Signed-off-by: Sven Neumann <s.neumann@raumfeld.com>
 tests/test-coredump-unwind.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tests/test-coredump-unwind.c b/tests/test-coredump-unwind.c
index 5254708..215b308 100644
--- a/tests/test-coredump-unwind.c
+++ b/tests/test-coredump-unwind.c
@@ -57,7 +57,11 @@ 
 #include <grp.h>
 /* For SIGSEGV handler code */
 #include <execinfo.h>
 #include <sys/ucontext.h>
 #include <libunwind-coredump.h>
@@ -238,6 +242,7 @@  void handle_sigsegv(int sig, siginfo_t *info, void *ucontext)
     /* glibc extension */
     void *array[50];
     int size;
@@ -245,6 +250,7 @@  void handle_sigsegv(int sig, siginfo_t *info, void *ucontext)
 #ifdef __linux__
     backtrace_symbols_fd(array, size, 2);