This is an archive of the discontinued LLVM Phabricator instance.

[asan] On OS X, write error reports into Crash Report.
ClosedPublic

Authored by zaks.anna on Nov 18 2015, 3:21 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

zaks.anna updated this revision to Diff 40570.Nov 18 2015, 3:21 PM
zaks.anna retitled this revision from to [asan] On OS X, write error reports into Crash Report..
zaks.anna updated this object.
zaks.anna added reviewers: glider, kubamracek, samsonov.
zaks.anna added a subscriber: llvm-commits.
glider added inline comments.Nov 19 2015, 7:13 AM
lib/sanitizer_common/sanitizer_mac.h
45 ↗(On Diff #40570)
kubamracek added inline comments.Nov 19 2015, 7:55 AM
lib/sanitizer_common/sanitizer_mac.h
45 ↗(On Diff #40570)

That's correct, the iOS Crash Reporter intentionally doesn't include additional application-provided information in the crash logs.

glider added inline comments.Nov 19 2015, 8:09 AM
lib/sanitizer_common/sanitizer_mac.h
45 ↗(On Diff #40570)

So don't we want to hide these bits behind "#if !SANITIZER_IOS" ?

kubamracek added inline comments.Nov 19 2015, 8:35 AM
lib/sanitizer_common/sanitizer_mac.h
45 ↗(On Diff #40570)

The code still works for iOS simulator, and if we keep if unconditionally, then if a future iOS version starts including this in crash logs, we'd automatically benefit from that.

But I'm fine with #if !SANITIZER_IOS && !SANITIZER_IOSSIM, if you prefer that.

glider accepted this revision.Nov 19 2015, 8:39 AM
glider edited edge metadata.
glider added inline comments.
lib/sanitizer_common/sanitizer_mac.h
45 ↗(On Diff #40570)

No, I just was under the impression that we may get linker errors on iOS.
I'm fine with the current implementation.

This revision is now accepted and ready to land.Nov 19 2015, 8:39 AM
This revision was automatically updated to reflect the committed changes.