From 88f2c543af7e98025c8b7cc7403c25c80086b506bfe39787ed8501717c03d04f Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Wed, 28 Jan 2015 12:14:40 +0000 Subject: [PATCH 1/5] Accepting request 282995 from home:dimstar:sigsegv - Add libsigsegv-kernel-3.18.2.patch: Since kernel 3.18.2, a stack overflow gives a SIGBUS, no longer SIGSEGV. quite urgent, as this is a ring package currently breaking all stagings, as it does not cope with kernel 3.18.3 as-is. OBS-URL: https://build.opensuse.org/request/show/282995 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libsigsegv?expand=0&rev=8 --- libsigsegv-kernel-3.18.2.patch | 29 +++++++++++++++++++++++++++++ libsigsegv.changes | 6 ++++++ libsigsegv.spec | 4 +++- 3 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 libsigsegv-kernel-3.18.2.patch diff --git a/libsigsegv-kernel-3.18.2.patch b/libsigsegv-kernel-3.18.2.patch new file mode 100644 index 0000000..8aba274 --- /dev/null +++ b/libsigsegv-kernel-3.18.2.patch @@ -0,0 +1,29 @@ +Index: libsigsegv-2.10/src/Makefile.am +=================================================================== +--- libsigsegv-2.10.orig/src/Makefile.am ++++ libsigsegv-2.10/src/Makefile.am +@@ -57,7 +57,7 @@ noinst_HEADERS = \ + fault-solaris.h fault-solaris-i386.h fault-solaris-sparc.h \ + machfault.h machfault-macos.h \ + signals.h signals-bsd.h signals-hpux.h signals-hurd.h signals-macos.h \ +- leave.h \ ++ signals-linux.h leave.h \ + stackvma.h + + EXTRA_DIST = \ +Index: libsigsegv-2.10/src/signals.h +=================================================================== +--- libsigsegv-2.10.orig/src/signals.h ++++ libsigsegv-2.10/src/signals.h +@@ -1,4 +1,4 @@ +-/* List of signals. Generic Unix version. ++/* List of signals. Hurd version. + Copyright (C) 2002 Bruno Haible + + This program is free software; you can redistribute it and/or modify +@@ -18,4 +18,4 @@ + /* List of signals that are sent when an invalid virtual memory address + is accessed, or when the stack overflows. */ + #define SIGSEGV_FOR_ALL_SIGNALS(var,body) \ +- { int var; var = SIGSEGV; { body } } ++ { int var; var = SIGSEGV; { body } var = SIGBUS; { body } } diff --git a/libsigsegv.changes b/libsigsegv.changes index c53c820..07d3408 100644 --- a/libsigsegv.changes +++ b/libsigsegv.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jan 27 13:20:19 UTC 2015 - dimstar@opensuse.org + +- Add libsigsegv-kernel-3.18.2.patch: Since kernel 3.18.2, a stack + overflow gives a SIGBUS, no longer SIGSEGV. + ------------------------------------------------------------------- Wed Jul 3 12:36:56 UTC 2013 - schwab@suse.de diff --git a/libsigsegv.spec b/libsigsegv.spec index 5f343cc..1116fd8 100644 --- a/libsigsegv.spec +++ b/libsigsegv.spec @@ -1,7 +1,7 @@ # # spec file for package libsigsegv # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -33,6 +33,7 @@ License: GPL-2.0+ Group: System/Libraries Url: http://libsigsegv.sourceforge.net/ Source: ftp://ftp.gnu.org/pub/gnu/libsigsegv/libsigsegv-%{version}.tar.gz +Patch0: libsigsegv-kernel-3.18.2.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -70,6 +71,7 @@ available. %prep %setup -q +%patch0 -p1 %build %configure \ From 5d3814c5d79a2cb1a024b81dd671635789e0506537142cfa4f9faa73d5f65c45 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Fri, 6 Feb 2015 10:41:13 +0000 Subject: [PATCH 2/5] Accepting request 284271 from devel:libraries:c_c++ Revert this change - the kernel has been fixed and this change was, in anticipation to that, ultimately not accepted in Factory OBS-URL: https://build.opensuse.org/request/show/284271 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libsigsegv?expand=0&rev=9 --- libsigsegv-kernel-3.18.2.patch | 29 ----------------------------- libsigsegv.changes | 6 ------ libsigsegv.spec | 4 +--- 3 files changed, 1 insertion(+), 38 deletions(-) delete mode 100644 libsigsegv-kernel-3.18.2.patch diff --git a/libsigsegv-kernel-3.18.2.patch b/libsigsegv-kernel-3.18.2.patch deleted file mode 100644 index 8aba274..0000000 --- a/libsigsegv-kernel-3.18.2.patch +++ /dev/null @@ -1,29 +0,0 @@ -Index: libsigsegv-2.10/src/Makefile.am -=================================================================== ---- libsigsegv-2.10.orig/src/Makefile.am -+++ libsigsegv-2.10/src/Makefile.am -@@ -57,7 +57,7 @@ noinst_HEADERS = \ - fault-solaris.h fault-solaris-i386.h fault-solaris-sparc.h \ - machfault.h machfault-macos.h \ - signals.h signals-bsd.h signals-hpux.h signals-hurd.h signals-macos.h \ -- leave.h \ -+ signals-linux.h leave.h \ - stackvma.h - - EXTRA_DIST = \ -Index: libsigsegv-2.10/src/signals.h -=================================================================== ---- libsigsegv-2.10.orig/src/signals.h -+++ libsigsegv-2.10/src/signals.h -@@ -1,4 +1,4 @@ --/* List of signals. Generic Unix version. -+/* List of signals. Hurd version. - Copyright (C) 2002 Bruno Haible - - This program is free software; you can redistribute it and/or modify -@@ -18,4 +18,4 @@ - /* List of signals that are sent when an invalid virtual memory address - is accessed, or when the stack overflows. */ - #define SIGSEGV_FOR_ALL_SIGNALS(var,body) \ -- { int var; var = SIGSEGV; { body } } -+ { int var; var = SIGSEGV; { body } var = SIGBUS; { body } } diff --git a/libsigsegv.changes b/libsigsegv.changes index 07d3408..c53c820 100644 --- a/libsigsegv.changes +++ b/libsigsegv.changes @@ -1,9 +1,3 @@ -------------------------------------------------------------------- -Tue Jan 27 13:20:19 UTC 2015 - dimstar@opensuse.org - -- Add libsigsegv-kernel-3.18.2.patch: Since kernel 3.18.2, a stack - overflow gives a SIGBUS, no longer SIGSEGV. - ------------------------------------------------------------------- Wed Jul 3 12:36:56 UTC 2013 - schwab@suse.de diff --git a/libsigsegv.spec b/libsigsegv.spec index 1116fd8..5f343cc 100644 --- a/libsigsegv.spec +++ b/libsigsegv.spec @@ -1,7 +1,7 @@ # # spec file for package libsigsegv # -# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -33,7 +33,6 @@ License: GPL-2.0+ Group: System/Libraries Url: http://libsigsegv.sourceforge.net/ Source: ftp://ftp.gnu.org/pub/gnu/libsigsegv/libsigsegv-%{version}.tar.gz -Patch0: libsigsegv-kernel-3.18.2.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -71,7 +70,6 @@ available. %prep %setup -q -%patch0 -p1 %build %configure \ From 10fe9f6a573464f10f975d7c6a5bad8fdf24601a97aceae8207919d1bdc666af Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Wed, 22 Feb 2017 07:30:56 +0000 Subject: [PATCH 3/5] . OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libsigsegv?expand=0&rev=10 --- libsigsegv-2.11.tar.gz | 3 +++ libsigsegv.changes | 15 ++++++++++++++- libsigsegv.spec | 6 +++--- 3 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 libsigsegv-2.11.tar.gz diff --git a/libsigsegv-2.11.tar.gz b/libsigsegv-2.11.tar.gz new file mode 100644 index 0000000..c7059b5 --- /dev/null +++ b/libsigsegv-2.11.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dd7c2eb2ef6c47189406d562c1dc0f96f2fc808036834d596075d58377e37a18 +size 448744 diff --git a/libsigsegv.changes b/libsigsegv.changes index c53c820..a11372a 100644 --- a/libsigsegv.changes +++ b/libsigsegv.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Wed Feb 22 07:29:42 UTC 2017 - werner@suse.de + +- Update to version 2.11 + * Added support for catching stack overflow on Linux/SPARC. + * Provide a correct value for SIGSTKSZ on 64-bit AIX and on HP-UX. The one + defined by these systems is too small. + * Updated build infrastructure. + * Compilation now requires the include file. Platforms which + don't have this include file (such as IRIX) are no longer supported. + * NOTE: Support for Cygwin and native Windows is currently not up-to-date. +- Update URL that is use https://www.gnu.org/software/libsigsegv/ + ------------------------------------------------------------------- Wed Jul 3 12:36:56 UTC 2013 - schwab@suse.de @@ -7,7 +20,7 @@ Wed Jul 3 12:36:56 UTC 2013 - schwab@suse.de ------------------------------------------------------------------- Wed May 8 13:09:02 UTC 2013 - werner@suse.de -- Update tp version 2.10 +- Update to version 2.10 - Adopt patch fix-build-in-qemu.patch ------------------------------------------------------------------- diff --git a/libsigsegv.spec b/libsigsegv.spec index 5f343cc..5df1ede 100644 --- a/libsigsegv.spec +++ b/libsigsegv.spec @@ -1,7 +1,7 @@ # # spec file for package libsigsegv # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,12 +26,12 @@ BuildRequires: glibc-devel BuildRequires: libtool BuildRequires: make BuildRequires: pkgconfig -Version: 2.10 +Version: 2.11 Release: 0 Summary: Library for Handling Page Faults in User Mode License: GPL-2.0+ Group: System/Libraries -Url: http://libsigsegv.sourceforge.net/ +Url: https://www.gnu.org/software/libsigsegv/ Source: ftp://ftp.gnu.org/pub/gnu/libsigsegv/libsigsegv-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build From 7be31c0810f239e9831e54f4996c04dc9fc93cfb7671354cbabb7cc80f98ccb8 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Wed, 22 Feb 2017 07:31:29 +0000 Subject: [PATCH 4/5] . OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libsigsegv?expand=0&rev=11 --- libsigsegv-2.10.tar.gz | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 libsigsegv-2.10.tar.gz diff --git a/libsigsegv-2.10.tar.gz b/libsigsegv-2.10.tar.gz deleted file mode 100644 index c166a7d..0000000 --- a/libsigsegv-2.10.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8460a4a3dd4954c3d96d7a4f5dd5bc4d9b76f5754196aa245287553b26d2199a -size 402279 From b2c298a526b1c9c2108c641d125bddf381ca054a818d7cbf726ca7f435407060 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Wed, 22 Feb 2017 08:42:20 +0000 Subject: [PATCH 5/5] . OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libsigsegv?expand=0&rev=12 --- libsigsegv.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libsigsegv.spec b/libsigsegv.spec index 5df1ede..0f59890 100644 --- a/libsigsegv.spec +++ b/libsigsegv.spec @@ -84,9 +84,10 @@ make %{?_smp_mflags} %check %if 0%{?qemu_user_space_build:1} # qemu does not support stack overflows well ;) -export XFAIL_TESTS="stackoverflow1 stackoverflow2" -%endif +%__make check TESTS='sigsegv1 sigsegv2 sigsegv3' +%else %__make check +%endif %post -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig