Hi Dmitry, We do have a new issue and we think it might be a limitation from TSAN. Find attached a test program that we believe is correct. You can compile it with `gcc -fsanitize=thread test.c -pthread'.