#1231·sanitizers

asan thread limit

Author: shisuhaoCreated Apr 26, 2020Updated Dec 23, 2025

hello. when use asan I found an error.like this: AddressSanitizer: Thread limit (4194304 threads) exceeded. Dying. then, I want to know, how can I fix it, or can I Modify gcc source code like this? const u32 kMaxNumberOfThreads = (1 << 22); // 4M modify the value of kMaxNumberOfThreads.

Looking forward to your reply!