This is an archive of the discontinued LLVM Phabricator instance.

Add a copy of missing <ucontext.h> for Android and enable ASan SEGV handler.
ClosedPublic

Authored by eugenis on Feb 10 2014, 3:30 AM.

Details

Summary

This change enables ASan SEGV handler by default on Android (as is already done on other platforms).
It also enables AddressSanitizer.WildAddressAccess on Android, which now passes.

Diff Detail

Event Timeline

Wow.

Just a quick check - why not put this under compiler-rt/SDKs/android?

lib/asan/CMakeLists.txt
28

I'd define the path to additional Android includes in a variable in compiler-rt/CMakeLists.txt and then just use this variable here.

I think SDKs are meant to be included _instead_ of system headers, and this is just a fixup for a missing system header.

eugenis updated this revision to Unknown Object (????).Feb 10 2014, 5:22 AM

Moved header path to compiler_rt/CMakeLists.txt.
Disabled SEGV handler by default, as we seem to have unwinding issues there.

samsonov accepted this revision.Feb 10 2014, 5:27 AM

LGTM. I'm not sure if it's "good" to have third_party sources in compiler-rt repo, but it looks plausible.

eugenis closed this revision.Feb 10 2014, 5:41 AM

Thanks. Committed as r201084.