Patch for non-constant SIGSTKSZ
This commit is contained in:
parent
ea655ab264
commit
485535026f
43
for-non-constant-SIGSTKSZ.patch
Normal file
43
for-non-constant-SIGSTKSZ.patch
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
From 7d07d0587ba62ffb44112fbde8ccd189542f0099 Mon Sep 17 00:00:00 2001
|
||||||
|
From: wang_yue111 <648774160@qq.com>
|
||||||
|
Date: Tue, 10 Aug 2021 11:26:13 +0800
|
||||||
|
Subject: [PATCH] Patch for non-constant SIGSTKSZ
|
||||||
|
|
||||||
|
---
|
||||||
|
tests/include/catch.hpp | 6 +++---
|
||||||
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/tests/include/catch.hpp b/tests/include/catch.hpp
|
||||||
|
index f619f23..9b342ec 100644
|
||||||
|
--- a/tests/include/catch.hpp
|
||||||
|
+++ b/tests/include/catch.hpp
|
||||||
|
@@ -6540,7 +6540,7 @@ namespace Catch {
|
||||||
|
static bool isSet;
|
||||||
|
static struct sigaction oldSigActions [sizeof(signalDefs)/sizeof(SignalDefs)];
|
||||||
|
static stack_t oldSigStack;
|
||||||
|
- static char altStackMem[SIGSTKSZ];
|
||||||
|
+ static char altStackMem[32768];
|
||||||
|
|
||||||
|
static void handleSignal( int sig ) {
|
||||||
|
std::string name = "<unknown signal>";
|
||||||
|
@@ -6560,7 +6560,7 @@ namespace Catch {
|
||||||
|
isSet = true;
|
||||||
|
stack_t sigStack;
|
||||||
|
sigStack.ss_sp = altStackMem;
|
||||||
|
- sigStack.ss_size = SIGSTKSZ;
|
||||||
|
+ sigStack.ss_size = 32768;
|
||||||
|
sigStack.ss_flags = 0;
|
||||||
|
sigaltstack(&sigStack, &oldSigStack);
|
||||||
|
struct sigaction sa = { 0 };
|
||||||
|
@@ -6591,7 +6591,7 @@ namespace Catch {
|
||||||
|
bool FatalConditionHandler::isSet = false;
|
||||||
|
struct sigaction FatalConditionHandler::oldSigActions[sizeof(signalDefs)/sizeof(SignalDefs)] = {};
|
||||||
|
stack_t FatalConditionHandler::oldSigStack = {};
|
||||||
|
- char FatalConditionHandler::altStackMem[SIGSTKSZ] = {};
|
||||||
|
+ char FatalConditionHandler::altStackMem[32768] = {};
|
||||||
|
|
||||||
|
} // namespace Catch
|
||||||
|
|
||||||
|
--
|
||||||
|
2.23.0
|
||||||
|
|
||||||
@ -11,12 +11,13 @@
|
|||||||
|
|
||||||
Name: qpid-proton
|
Name: qpid-proton
|
||||||
Version: 0.31.0
|
Version: 0.31.0
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: A high performance and lightweight library for messaging applications
|
Summary: A high performance and lightweight library for messaging applications
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
URL: http://qpid.apache.org/proton/
|
URL: http://qpid.apache.org/proton/
|
||||||
Source0: https://github.com/apache/qpid-proton/archive/0.31.0.tar.gz
|
Source0: https://github.com/apache/qpid-proton/archive/0.31.0.tar.gz
|
||||||
Patch0000: proton.patch
|
Patch0000: proton.patch
|
||||||
|
Patch0001: for-non-constant-SIGSTKSZ.patch
|
||||||
|
|
||||||
BuildRequires: gcc gcc-c++ cmake swig pkgconfig doxygen libuuid-devel openssl-devel
|
BuildRequires: gcc gcc-c++ cmake swig pkgconfig doxygen libuuid-devel openssl-devel
|
||||||
BuildRequires: python3-devel python3-sphinx glibc-headers cyrus-sasl-devel jsoncpp-devel
|
BuildRequires: python3-devel python3-sphinx glibc-headers cyrus-sasl-devel jsoncpp-devel
|
||||||
@ -176,6 +177,9 @@ done
|
|||||||
%doc %{_datadir}/proton/tests
|
%doc %{_datadir}/proton/tests
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Aug 10 2021 wangyue <wangyue92@huawei.com> - 0.31.0-2
|
||||||
|
- Patch for non-constant SIGSTKSZ
|
||||||
|
|
||||||
* Tue Jun 2 2020 leiju <leiju4@huawei.com> - 0.31.0-1
|
* Tue Jun 2 2020 leiju <leiju4@huawei.com> - 0.31.0-1
|
||||||
- Update to 0.31.0
|
- Update to 0.31.0
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user