Skip to content
This repository was archived by the owner on Jan 26, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions 3rd_party/include/opentracing/catch2/catch.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6462,7 +6462,7 @@ namespace Catch {
static bool isSet;
static struct sigaction oldSigActions[];// [sizeof(signalDefs) / sizeof(SignalDefs)];
static stack_t oldSigStack;
static char altStackMem[];
static char *altStackMem;

static void handleSignal( int sig );

Expand Down Expand Up @@ -6594,6 +6594,7 @@ namespace Catch {
}

FatalConditionHandler::FatalConditionHandler() {
altStackMem = new(char[SIGSTKSZ]);
isSet = true;
stack_t sigStack;
sigStack.ss_sp = altStackMem;
Expand All @@ -6610,6 +6611,7 @@ namespace Catch {
}

FatalConditionHandler::~FatalConditionHandler() {
delete[] altStackMem;
reset();
}

Expand All @@ -6628,7 +6630,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;

} // namespace Catch

Expand Down