[PATCH] D35421: [scudo] Support log_to_syslog in dieWithMessage

Kostya Kortchinsky via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 16 10:58:36 PDT 2017


cryptoad abandoned this revision.
cryptoad added a comment.

As it turns out, Android's syslog does malloc(), so it can lead to hairy behaviors in init (and probably others).
Explore the following as an alternative:

  #define error_log(format, ...)  \
      async_safe_format_log(ANDROID_LOG_ERROR, "libc", (format), ##__VA_ARGS__ )
  #define info_log(format, ...)  \
      async_safe_format_log(ANDROID_LOG_INFO, "libc", (format), ##__VA_ARGS__ )


https://reviews.llvm.org/D35421





More information about the llvm-commits mailing list