[PATCH] D33784: Bug 33206 - Sanitizer CHECK failed: ((allocated_for_dlsym)) < ((kDlsymAllocPoolSize)) (1036, 1024)) with preload

Maxim Ostapenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 7 11:45:47 PDT 2017


m.ostapenko added inline comments.


================
Comment at: lib/asan/asan_malloc_linux.cc:66
     return AllocateFromLocalPool(size);
+  if (UNLIKELY(!asan_inited))
+    AsanInitFromRtl();
----------------
This code snippet seems to repeat in several places and looks pretty like ENSURE_ASAN_INITED(). Can we use ENSURE_ASAN_INITED() here and below?


https://reviews.llvm.org/D33784





More information about the llvm-commits mailing list