I am profiling a program compiled with gcc 6.1 with -fsanitize=address option. The program is multi-threaded with clean exits for each thread (with pthread_exit).
Address Sanitizer fails with the message: ==16800==AddressSanitizer: Thread limit (4194304 threads) exceeded. Dying.
The thread count makes no sense (there is no way I am allocating that many threads). Is there a way I can instrument AddressSanitizer to see where and how the threads are being created?