Is it allowed to use thread and undefined sanitizers at the same time?
Actually, the question is in the title. It occurred when I used the -fsanitize=thread,undefined option in my project. When running the thread, the sanitizer indicated a race. Next I made a minimal example: