diff --git a/avoid-exceed-int-range.patch b/avoid-exceed-int-range.patch index c8966990d7317efbdb563b4119a0a54563552af8..4d03938c7ca63d3be5323da523c1566c59922033 100644 --- a/avoid-exceed-int-range.patch +++ b/avoid-exceed-int-range.patch @@ -25,7 +25,7 @@ index c3ce41c..1001fb3 100644 const Entry& e = entries[i]; base::RawPrinter printer(buffer, kBufSize); - printer.Printf("Leak of %d bytes in %d objects allocated from:\n", -+ printer.Printf("Leak of %" PRIuS " bytes in %d objects allocated from:\n", ++ printer.Printf("Leak of %zu bytes in %d objects allocated from:\n", e.bytes, e.count); for (int j = 0; j < e.bucket->depth; j++) { const void* pc = e.bucket->stack[j]; diff --git a/gperftools-2.8.1.tar.gz b/gperftools-2.8.1.tar.gz deleted file mode 100644 index fdbe8019ae600786cb029e5457c7bacf5bedfd10..0000000000000000000000000000000000000000 Binary files a/gperftools-2.8.1.tar.gz and /dev/null differ diff --git a/gperftools-2.9.1.tar.gz b/gperftools-2.9.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..4704041bb969bbc510a81804e27ffae0e63f6eae Binary files /dev/null and b/gperftools-2.9.1.tar.gz differ diff --git a/gperftools.spec b/gperftools.spec index a689126204eda1f6f0ecf9bc54427ce5a1b03eed..e70adf86ba49b55976a76e6b0b75853e7561f3f5 100644 --- a/gperftools.spec +++ b/gperftools.spec @@ -1,6 +1,6 @@ Name: gperftools -Version: 2.8.1 -Release: 4 +Version: 2.9.1 +Release: 1 Summary: high-performance malloc and performance analysis tools License: BSD @@ -9,10 +9,10 @@ Source0: https://github.com/gperftools/gperftools/releases/download/%{name}-%{ve patch1: gperftools-generic-dynamic-tls.patch Patch9000: issue-1122-fix-bus-error-on-aarch64.patch #https://github.com/gperftools/gperftools/issues/1309 -Patch9001: skip-arm-in-stacktrace_unittest.patch +#Patch9001: skip-arm-in-stacktrace_unittest.patch #https://github.com/gperftools/gperftools/issues/890 -Patch9002: skip-heapchecker-in-arm-arch.patch -Patch9003: avoid-exceed-int-range.patch +Patch9001: skip-heapchecker-in-arm-arch.patch +Patch9002: avoid-exceed-int-range.patch BuildRequires: autoconf automake gcc-c++ BuildRequires: libtool libunwind-devel perl-generators @@ -107,6 +107,9 @@ LD_LIBRARY_PATH=./.libs make check %{_mandir}/man1/*.1.gz %changelog +* Mon Nov 29 2021 zhangyiru - 2.9.1-1 +- update to 2.9.1 + * Tue Nov 9 2021 zhangyiru - 2.8.1-4 - avoid exceed int range when use heapchecker diff --git a/skip-arm-in-stacktrace_unittest.patch b/skip-arm-in-stacktrace_unittest.patch index 7c28084204afd5e0ec5534da5af44e75936bd05f..745395383e48836df3aa9ade702cd0dd961e4828 100644 --- a/skip-arm-in-stacktrace_unittest.patch +++ b/skip-arm-in-stacktrace_unittest.patch @@ -1,7 +1,7 @@ -From a4ae4584f8e38fb96ed7adc33231afd19f161e1a Mon Sep 17 00:00:00 2001 +From abf1ed0ce1340320474a4cf3b790b7b741b9a577 Mon Sep 17 00:00:00 2001 From: zhangyiru -Date: Wed, 20 Oct 2021 11:29:09 -0400 -Subject: [PATCH] skip-arm-in-stacktrace_unittest +Date: Mon, 29 Nov 2021 10:35:01 +0800 +Subject: [PATCH] skip stacktrace_unittest in arm the calling of unw_step in arm stacktrace_unittest is incorrect, but the function is not affected, so skip it. @@ -12,10 +12,10 @@ Signed-off-by: zhangyiru 1 file changed, 5 insertions(+) diff --git a/src/tests/stacktrace_unittest.cc b/src/tests/stacktrace_unittest.cc -index 3c9f735..37a90a6 100644 +index e55a632..85c0bcd 100644 --- a/src/tests/stacktrace_unittest.cc +++ b/src/tests/stacktrace_unittest.cc -@@ -188,7 +188,12 @@ void ATTRIBUTE_NOINLINE CheckStackTrace(int i) { +@@ -285,8 +285,13 @@ void ATTRIBUTE_NOINLINE CheckStackTrace(int i) { //-----------------------------------------------------------------------// int main(int argc, char ** argv) { @@ -26,8 +26,9 @@ index 3c9f735..37a90a6 100644 + printf("ARM SKIP\n"); + exit(77); +#endif - return 0; - } + + #if TEST_UCONTEXT_BITS + leaf_capture_fn = CaptureLeafUContext; -- -2.27.0 +1.8.3.1