https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102144
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- This fixes the problem for me: diff --git a/libsanitizer/hwasan/hwasan_thread_list.h b/libsanitizer/hwasan/hwasan_thread_list.h index 15916a802d6..c13c5910b95 100644 --- a/libsanitizer/hwasan/hwasan_thread_list.h +++ b/libsanitizer/hwasan/hwasan_thread_list.h @@ -57,7 +57,7 @@ static uptr RingBufferSize() { // FIXME: increase the limit to 8 once this bug is fixed: // https://bugs.llvm.org/show_bug.cgi?id=39030 for (int shift = 1; shift < 7; ++shift) { - uptr size = 4096 * (1ULL << shift); + uptr size = (64*4096) * (1ULL << shift); if (size >= desired_bytes) return size; } Let me submit a bug upstream.