This is an archive of the discontinued LLVM Phabricator instance.

Make ubsan respect log_path
ClosedPublic

Authored by hfinkel on Apr 13 2015, 12:43 PM.

Details

Reviewers
samsonov
Summary

As with the other sanitizers, it is desirable to allow ubsan's output to be redirected to somewhere other than stderr (and into per-process log files).

Diff Detail

Event Timeline

hfinkel updated this revision to Diff 23690.Apr 13 2015, 12:43 PM
hfinkel retitled this revision from to Make ubsan respect log_path.
hfinkel updated this object.
hfinkel edited the test plan for this revision. (Show Details)
hfinkel added a reviewer: samsonov.
hfinkel added a subscriber: Unknown Object (MLST).
samsonov added inline comments.Apr 13 2015, 1:05 PM
test/ubsan/TestCases/Misc/log-path_test.cc
2

Please try to cover just the basic functionality in this test case instead of copying the whole test case from ASan test suite. Ideally, we should create a shared test case for all sanitizers under compiler-rt/test/sanitizer_common, but that would require triggering a sanitizer-specific report somehow.

hfinkel updated this revision to Diff 23691.Apr 13 2015, 1:15 PM

Removed testing of invalid paths; that is common code that is covered already by the asan test.

hfinkel added inline comments.Apr 13 2015, 1:16 PM
test/ubsan/TestCases/Misc/log-path_test.cc
2

Sure; I've removed the tests for the invalid paths because that's common code covered by the asan test. I've only left the places where ubsan does something relevant.

samsonov accepted this revision.Apr 13 2015, 1:45 PM
samsonov edited edge metadata.

LGTM

This revision is now accepted and ready to land.Apr 13 2015, 1:45 PM
hfinkel closed this revision.Apr 19 2015, 1:23 PM

r235277, thanks!