Don't use llvm::EnablePrettyStackTrace on macOS.

LLDB.framework gets loaded into Xcode and other 
frameworks, and this is inserting a signal handler into
the process even when lldb isn't used.  I have a bunch
of reports of this SignalHandler blowing out the stack,
which renders crash reports for the crash useless.

And in any case libraries really shouldn't be installing
signal handlers.

I only turned this off for APPLE platforms, I'll let
the maintainers of other platforms decide what policy
they want to have w.r.t. this.

llvm-svn: 319598
This commit is contained in:
Jim Ingham 2017-12-02 00:11:18 +00:00
parent 1541c37cb9
commit 2f1cb7ed82
1 changed files with 2 additions and 0 deletions

View File

@ -69,7 +69,9 @@ void SystemInitializerCommon::Initialize() {
}
#endif
#if not defined(__APPLE__)
llvm::EnablePrettyStackTrace();
#endif
Log::Initialize();
HostInfo::Initialize();
static Timer::Category func_cat(LLVM_PRETTY_FUNCTION);