From 88f2c543af7e98025c8b7cc7403c25c80086b506bfe39787ed8501717c03d04f Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Wed, 28 Jan 2015 12:14:40 +0000 Subject: [PATCH] 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 \