This is an archive of the discontinued LLVM Phabricator instance.

[gn] Make ubsan errors fatal, as in cmake
ClosedPublic

Authored by rnk on May 27 2021, 8:02 PM.

Details

Summary

Apparently ubsan errors are non-fatal by default. If you introduce UB
into LLVM and run the tests, if errors are not fatal, the test will
still produce the expected output and the tests will pass. In order to
make ubsan errors show up as test failures, they have to be made fatal.
Pass the -fno-sanitize-recover=all flag to make it so.

Diff Detail

Event Timeline

rnk requested review of this revision.May 27 2021, 8:02 PM
rnk created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptMay 27 2021, 8:02 PM
aeubanks accepted this revision.May 27 2021, 9:03 PM
This revision is now accepted and ready to land.May 27 2021, 9:03 PM
This revision was landed with ongoing or failed builds.May 28 2021, 8:05 AM
This revision was automatically updated to reflect the committed changes.