[patch 4/4 v2] unwinder: The unwinder (x86* only)

Jan Kratochvil jan.kratochvil at redhat.com
Thu Jun 13 14:57:47 UTC 2013


On Thu, 13 Jun 2013 16:41:55 +0200, Mark Wielaard wrote:
> But on rhel6.4 it does fail because nm tests/backtrace-child|grep -w jmp
> is empty, and so you get:
> 
> FAIL: run-backtrace.sh (exit: 1)
> ================================
> 
> backtrace: /home/mark/src/elfutils/tests/backtrace.c:439: selfdump: Assertion `symi < nsym' failed.
> /home/mark/src/elfutils/tests/test-subr.sh: line 84: 17144 Aborted                 (core dumped) LD_LIBRARY_PATH="${built_library_path}${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" $VALGRIND_CMD "$@"
> 
> I seem to need to build with CFLAGS="-g -O0" to keep the jmp function
> around. Then backtrace-child seems to succeed, but backtrace-child-biarch
> fails with:

OK, with CentOS-6.3 && -O2 build I also get FAIL.

This is because you broke it.

commit f4e6062e0e4eb89e349458802b40e7315e514fd6
Author: Mark Wielaard <mjw at redhat.com>
    GCC version check attributes, noclone was introduced with GCC 4.5

+#define NO_INLINE_CLONE __attribute__ ((noinline, noclone))
+#define NO_INLINE_CLONE __attribute__ ((noinline))
-static __attribute__ ((noinline, noclone, used)) void
+static NO_INLINE_CLONE void


Thanks,
Jan


More information about the elfutils-devel mailing list