https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101749
--- Comment #1 from Xi Ruoyao <xry111 at mengyan1223 dot wang> --- I guess it's fixed in trunk by something in 90e46074e6b3561ae7d8ebd205127f286cc0c6b6: @@ -166,9 +158,10 @@ bool SupportsColoredOutput(fd_t fd) { #if !SANITIZER_GO // TODO(glider): different tools may require different altstack size. static uptr GetAltStackSize() { - // SIGSTKSZ is not enough. - static const uptr kAltStackSize = SIGSTKSZ * 4; - return kAltStackSize; + // Note: since GLIBC_2.31, SIGSTKSZ may be a function call, so this may be + // more costly that you think. However GetAltStackSize is only call 2-3 times + // per thread so don't cache the evaluation. + return SIGSTKSZ * 4; } Not tested though.