proxygen
SmallSigAltStackCrash.cpp File Reference
#include <signal.h>
#include <folly/experimental/symbolizer/SignalHandler.h>

Go to the source code of this file.

Functions

int main ()
 

Function Documentation

int main ( void  )

Definition at line 25 of file SmallSigAltStackCrash.cpp.

References folly::symbolizer::installFatalSignalHandler().

25  {
26  stack_t ss;
27  ss.ss_sp = stack.data();
28  ss.ss_size = stack.size();
29  ss.ss_flags = 0;
30  sigaltstack(&ss, nullptr);
31 
33  __builtin_trap();
34  return 0;
35 }
void installFatalSignalHandler()