Index: lib/scudo/scudo_allocator.cpp =================================================================== --- lib/scudo/scudo_allocator.cpp +++ lib/scudo/scudo_allocator.cpp @@ -300,6 +300,8 @@ FallbackQuarantineCache(LINKER_INITIALIZED) {} void init(const AllocatorOptions &Options) { + CacheBinaryName(); + AndroidLogInit(); // Verify that the header offset field can hold the maximum offset. In the // case of the Secondary allocator, it takes care of alignment and the // offset will always be 0. In the case of the Primary, the worst case Index: lib/scudo/scudo_utils.cpp =================================================================== --- lib/scudo/scudo_utils.cpp +++ lib/scudo/scudo_utils.cpp @@ -45,6 +45,8 @@ __sanitizer::VSNPrintf(Message, sizeof(Message), Format, Args); va_end(Args); RawWrite(Message); + RemoveANSIEscapeSequencesFromString(Message); + LogMessageOnPrintf(Message); Die(); }