From d439061b9812864a52bb7a3d9458c3a3b80213a6218d8383e2fd77a89eccef0e Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Thu, 7 Jun 2007 11:15:07 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libunwind?expand=0&rev=2 --- libunwind-0.98.5.diff | 42 ++++++++++++++++++++++++++++++++++++++++++ libunwind.changes | 5 +++++ libunwind.spec | 40 +++++++++++++++++++++------------------- 3 files changed, 68 insertions(+), 19 deletions(-) diff --git a/libunwind-0.98.5.diff b/libunwind-0.98.5.diff index b2e6ed3..0b675f5 100644 --- a/libunwind-0.98.5.diff +++ b/libunwind-0.98.5.diff @@ -1,3 +1,36 @@ +--- src/ia64/Gcreate_addr_space.c ++++ src/ia64/Gcreate_addr_space.c +@@ -33,14 +33,7 @@ + #ifdef UNW_LOCAL_ONLY + return NULL; + #else +- unw_addr_space_t as = malloc (sizeof (*as)); +- +- if (!as) +- return NULL; +- +- memset (as, 0, sizeof (*as)); +- +- as->acc = *a; ++ unw_addr_space_t as; + + /* + * IA-64 supports only big or little-endian, not weird stuff like +@@ -51,6 +44,14 @@ + && byte_order != __BIG_ENDIAN) + return NULL; + ++ as = malloc (sizeof (*as)); ++ if (!as) ++ return NULL; ++ ++ memset (as, 0, sizeof (*as)); ++ ++ as->acc = *a; ++ + if (byte_order == 0) + /* use host default: */ + as->big_endian = (__BYTE_ORDER == __BIG_ENDIAN); --- src/x86_64/Gresume.c +++ src/x86_64/Gresume.c @@ -35,6 +35,7 @@ @@ -35,6 +68,15 @@ endif check_SCRIPTS_cdep = run-ptrace-mapper run-ptrace-misc check_PROGRAMS_cdep = Gtest-bt Ltest-bt Gtest-exc Ltest-exc \ +@@ -57,8 +56,6 @@ + noinst_PROGRAMS = $(noinst_PROGRAMS_common) $(noinst_PROGRAMS_cdep) \ + $(noinst_PROGRAMS_arch) + +-Lia64_test_readonly_SOURCES = Lia64-test-readonly.c ia64-test-readonly-asm.S +-Gia64_test_readonly_SOURCES = Gia64-test-readonly.c ia64-test-readonly-asm.S + Lia64_test_stack_SOURCES = Lia64-test-stack.c ia64-test-stack-asm.S \ + ia64-test-stack.h + Gia64_test_stack_SOURCES = Gia64-test-stack.c ia64-test-stack-asm.S \ --- tests/Makefile.in +++ tests/Makefile.in @@ -73,9 +73,6 @@ diff --git a/libunwind.changes b/libunwind.changes index 4e45c4a..caced33 100644 --- a/libunwind.changes +++ b/libunwind.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 6 14:03:41 CEST 2007 - schwab@suse.de + +- Fix memory leak. + ------------------------------------------------------------------- Thu Jan 26 01:59:01 CET 2006 - schwab@suse.de diff --git a/libunwind.spec b/libunwind.spec index e9a0345..9082d57 100644 --- a/libunwind.spec +++ b/libunwind.spec @@ -1,26 +1,26 @@ # # spec file for package libunwind (Version 0.98.5) # -# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # -# Please submit bugfixes or comments via http://bugs.opensuse.org +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild -Name: libunwind -BuildRequires: gcc-c++ -URL: http://www.hpl.hp.com/research/linux/libunwind/ -Summary: Unwind Library -Version: 0.98.5 -Release: 8 -Group: System/Base -License: X11/MIT -Source: libunwind-%{version}.tar.gz -Patch: libunwind-%{version}.diff -BuildRoot: %{_tmppath}/%{name}-%{version}-build +Name: libunwind +BuildRequires: gcc-c++ +URL: http://savannah.nongnu.org/projects/libunwind/ +Summary: Unwind Library +Version: 0.98.5 +Release: 59 +Group: System/Base +License: X11/MIT +Source: libunwind-%{version}.tar.gz +Patch: libunwind-%{version}.diff +BuildRoot: %{_tmppath}/%{name}-%{version}-build ExclusiveArch: %ix86 ia64 x86_64 %description @@ -31,13 +31,13 @@ call chain of a program. Authors: -------- - David Mosberger + David Mosberger %package devel -Summary: Unwind library -Group: System/Libraries -Requires: libunwind = %{version}-%{release} -Provides: libunwind:%{_libdir}/libunwind.so +Summary: Unwind library +Group: System/Libraries +Requires: libunwind = %{version}-%{release} +Provides: libunwind:%{_libdir}/libunwind.so %description devel A portable and efficient C programming interface (API) to determine the @@ -94,7 +94,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libunwind-*.so %doc %{_mandir}/man?/* -%changelog -n libunwind +%changelog +* Wed Jun 06 2007 - schwab@suse.de +- Fix memory leak. * Thu Jan 26 2006 - schwab@suse.de - Run ldconfig. * Wed Jan 25 2006 - mls@suse.de