diff --git a/Fix-run-ptrace-mapper-test-case-failed-by-allowing-u.patch b/Fix-run-ptrace-mapper-test-case-failed-by-allowing-u.patch new file mode 100644 index 0000000000000000000000000000000000000000..9268239a3225acedb383604a6a63247d607e687b --- /dev/null +++ b/Fix-run-ptrace-mapper-test-case-failed-by-allowing-u.patch @@ -0,0 +1,28 @@ +From 0224ac01f620ff226bdf877e2b278d20c0fa1b56 Mon Sep 17 00:00:00 2001 +From: chenziyang +Date: Mon, 3 Jul 2023 14:27:47 +0800 +Subject: [PATCH] Fix run-ptrace-mapper test case failed by allowing + unw_get_proc_info() return unsuccessful result. Because it is not an error + unw_get_proc_info() does not return the auxiliary information, so we edit + test case and don't treat it as error. + +--- + tests/test-ptrace.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tests/test-ptrace.c b/tests/test-ptrace.c +index 846bcd8..32f42e8 100644 +--- a/tests/test-ptrace.c ++++ b/tests/test-ptrace.c +@@ -111,7 +111,7 @@ do_backtrace (void) + printf ("%016lx %-32s (sp=%016lx)\n", (long) ip, buf, (long) sp); + } + +- if ((ret = unw_get_proc_info (&c, &pi)) < 0) ++ if ((ret = unw_get_proc_info (&c, &pi)) < 0 && ret != -UNW_ENOINFO) /* It's possible unw_get_proc_info don't return infomation */ + panic ("unw_get_proc_info(ip=0x%lx) failed: ret=%d\n", (long) ip, ret); + else if (verbose) + printf ("\tproc=%016lx-%016lx\n\thandler=%lx lsda=%lx", +-- +2.33.0 + diff --git a/libunwind.spec b/libunwind.spec index f6168fae2f7ff6d4bce6799000bdec10e1636e13..23bf6f823c09fc7f5a6035fefdc5c254394bf072 100644 --- a/libunwind.spec +++ b/libunwind.spec @@ -1,7 +1,7 @@ Name: libunwind Epoch: 2 Version: 1.6.2 -Release: 5 +Release: 6 Summary: Libunwind provides a C ABI to determine the call-chain of a program License: BSD URL: http://savannah.nongnu.org/projects/libunwind @@ -12,6 +12,8 @@ Patch2: backport-check-namespace.sh-adjust-aarch64-symbols.patch Patch3: backport-tests-run-coredump-unwind-Skip-test-if-no-coredump-h.patch Patch4: backport-aarch64-unw_step-validates-address-before-calling-dwarf_get.patch +Patch9000: Fix-run-ptrace-mapper-test-case-failed-by-allowing-u.patch + ExclusiveArch: aarch64 %{ix86} x86_64 BuildRequires: automake libtool autoconf texlive-latex2man gcc-c++ @@ -88,6 +90,12 @@ make check || true %{_mandir}/*/* %changelog +* Mon Jul 03 2023 chenziyang - 2:1.6.2-6 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:fix failed testcase by editing test-ptrace testcase + * Tue Jun 20 2023 wangjiang - 2:1.6.2-5 - Type:bugfix - ID:NA