[PATCH] D47793: [MSan] Report proper error on allocator failures instead of CHECK(0)-ing
Aleksey Shlyapnikov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 5 11:30:11 PDT 2018
alekseyshl created this revision.
alekseyshl added a reviewer: eugenis.
Herald added subscribers: Sanitizers, delcypher, srhines.
Following up on and complementing https://reviews.llvm.org/D44404.
Currently many allocator specific errors (OOM, for example) are reported as
a text message and CHECK(0) termination, not stack, no details, not too
helpful nor informative. To improve the situation, detailed and
structured errors were defined and reported under the appropriate conditions.
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D47793
Files:
lib/msan/msan.cc
lib/msan/msan.h
lib/msan/msan_allocator.cc
lib/msan/msan_interceptors.cc
lib/msan/msan_linux.cc
lib/msan/msan_new_delete.cc
lib/msan/msan_report.cc
lib/msan/msan_report.h
test/msan/Linux/aligned_alloc-alignment.cc
test/msan/Posix/lit.local.cfg
test/msan/Posix/posix_memalign-alignment.cc
test/msan/allocator_returns_null.cc
test/msan/pvalloc.cc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47793.150014.patch
Type: text/x-patch
Size: 14455 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180605/f18c17ef/attachment.bin>
More information about the llvm-commits
mailing list