Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions source/common/signal/signal_action.cc
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,16 @@ void SignalAction::sigHandler(int sig, siginfo_t* info, void* context) {
}

void SignalAction::installSigHandlers() {
// sigaltstack and backtrace() are incompatible on Apple platforms
// https://reviews.llvm.org/D28265
#if !defined(__APPLE__)
stack_t stack;
stack.ss_sp = altstack_ + guard_size_; // Guard page at one end ...
stack.ss_size = altstack_size_; // ... guard page at the other
stack.ss_flags = 0;

RELEASE_ASSERT(sigaltstack(&stack, &previous_altstack_) == 0, "");
#endif

// Make sure VersionInfo::version() is initialized so we don't allocate std::string in signal
// handlers.
Expand Down
1 change: 1 addition & 0 deletions tools/spelling/spelling_dictionary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1088,6 +1088,7 @@ setsockopt
sig
sigaction
sigactions
sigaltstack
siginfo
signalstack
siloed
Expand Down