https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68519
Jorge Bellon <jbellon at bsc dot es> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36824|0 |1 is obsolete| | --- Comment #3 from Jorge Bellon <jbellon at bsc dot es> --- Created attachment 36827 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36827&action=edit source file that reproduces the bug (data race fixed) I've uploaded again the source file with the fixed data race (typo when writting the example, sorry). Now it passes both -fsanitize=thread and -fsanitize=address (but still does not work as expected).