Red Hat Bugzilla – Bug 1018549
needless libunwind dependency
Last modified: 2014-03-20 21:58:18 EDT
I have found Fedora xorg-x11-server depends on libunwind. There is a longterm plan to obsolete libunwind from Fedora by new elfutils unwinder. But xorg-x11-server does not even need any external (non-glibc) unwinder.
you do only self-backtrace (called local unwinding by libunwind). glibc
backtrace() can do the same. According to the sample backtrace in the patch
above the backtrace addresses there are the same in before/after cases,
libunwind only adds resolving of address -> symbol name there, IIUC.
address -> symbol name resolving can be done with RH-supported elfutils
package, a simple self-backtrace with symbol resolving is for example:
moved upstream https://bugs.freedesktop.org/show_bug.cgi?id=70746
Discussion from upstream ended with:
"That is without fork()+exec() libunwind is currently the best there is for
Closing this for now