This is an archive of the discontinued LLVM Phabricator instance.

[sanitizers] Avoid using -fomit-frame-pointer on Darwin
ClosedPublic

Authored by kubamracek on Mar 26 2017, 2:28 PM.

Details

Summary

On Darwin, we're having multiple issues with using -fomit-frame-pointer in the AddressSanitizer and ThreadSanitizer runtimes, so we're actually not using -fomit-frame-pointer in the our builds of the sanitizer dylibs. This patch just pushes our internal change upstream.

The issues are usually with debuggers, profilers and other tools that unwind the stack (crash reporter), which are often simply not able to get a stack trace. And crashlogs that don't contain a stack trace are a huge problem.

Diff Detail

Repository
rL LLVM

Event Timeline

kubamracek created this revision.Mar 26 2017, 2:28 PM
dvyukov accepted this revision.Mar 27 2017, 6:56 AM
This revision is now accepted and ready to land.Mar 27 2017, 6:56 AM
filcab accepted this revision.Mar 27 2017, 8:01 AM

Hopefully this will allow us to turn on -Werror on the sanitizers when building them for iOS/OS X (ARM targets don't support -fomit-frame-pointer).

This revision was automatically updated to reflect the committed changes.