This is an archive of the discontinued LLVM Phabricator instance.

Change `asan/TestCases/Darwin/malloc_zone-protected.cpp` to call abort so that it **always crashes**.
ClosedPublic

Authored by delcypher on Dec 16 2019, 2:26 PM.

Details

Summary

This is needed because on some platforms we can't install signal
handlers and so the application just traps (i.e. crashes) rather than being intercepted
by ASan's signal handler which in the default Darwin config doesn't
exit with a crashing exit code.

rdar://problem/57984547

Diff Detail

Event Timeline

delcypher created this revision.Dec 16 2019, 2:26 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald Transcript
Herald added a subscriber: Restricted Project. · View Herald Transcript
yln accepted this revision.Dec 16 2019, 3:49 PM
This revision is now accepted and ready to land.Dec 16 2019, 3:49 PM
This revision was automatically updated to reflect the committed changes.