Index: lib/scudo/scudo_allocator.cpp =================================================================== --- lib/scudo/scudo_allocator.cpp +++ lib/scudo/scudo_allocator.cpp @@ -195,18 +195,19 @@ CHECK(!ScudoInitIsRunning && "Scudo init calls itself!"); ScudoInitIsRunning = true; + CacheBinaryName(); + // Check if hardware CRC32 is supported in the binary and by the platform, if // so, opt for the CRC32 hardware version of the checksum. if (computeHardwareCRC32 && testCPUFeature(CRC32CPUFeature)) atomic_store_relaxed(&HashAlgorithm, CRC32Hardware); initFlags(); - AllocatorOptions Options; Options.setFrom(getFlags(), common_flags()); initScudoInternal(Options); - // TODO(kostyak): determine if MaybeStartBackgroudThread could be of some use. + AndroidLogInit(); ScudoInitIsRunning = false; } Index: lib/scudo/scudo_utils.cpp =================================================================== --- lib/scudo/scudo_utils.cpp +++ lib/scudo/scudo_utils.cpp @@ -77,6 +77,7 @@ __sanitizer::VSNPrintf(Message, sizeof(Message), Format, Args); va_end(Args); RawWrite(Message); + LogMessageOnPrintf(Message); Die(); }