[PATCH] D47645: [LSan] Report proper error on allocator failures instead of CHECK(0)-ing

Aleksey Shlyapnikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 1 11:18:57 PDT 2018


alekseyshl created this revision.
alekseyshl added a reviewer: eugenis.
Herald added subscribers: Sanitizers, delcypher, mgorny, 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/D47645

Files:
  lib/lsan/CMakeLists.txt
  lib/lsan/lsan_allocator.cc
  lib/lsan/lsan_common.cc
  lib/lsan/lsan_common.h
  lib/lsan/lsan_interceptors.cc
  lib/lsan/lsan_report.cc
  lib/lsan/lsan_report.h
  test/lsan/TestCases/Linux/aligned_alloc-alignment.cc
  test/lsan/TestCases/Posix/lit.local.cfg
  test/lsan/TestCases/Posix/posix_memalign-alignment.cc
  test/lsan/TestCases/allocator_returns_null.cc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47645.149515.patch
Type: text/x-patch
Size: 16530 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180601/2d0e201d/attachment.bin>


More information about the llvm-commits mailing list