[Bug sanitizer/55561] TSAN: Fortran/OMP yields false positives

Joost.VandeVondele at mat dot ethz.ch gcc-bugzilla@gcc.gnu.org
Sun Dec 30 14:53:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55561

--- Comment #25 from Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> 2012-12-30 14:52:51 UTC ---
(In reply to comment #24)
> For testing you can comment out first 2 lines of gomp_ptrlock_get(). That
> should fix the race in libgomp. It's not a good fix form performance pov, but
> should be OK for testing.

Thanks.. it turns out that gomp_ptrlock_get is actually used from

gcc/libgomp/config/linux/ptrlock.h:74

on linux...  is it still sufficient to comment the first if condition only and
keep the atomic_compare_exchange, or should one directly have the 'return
gomp_ptrlock_get_slow' ?



More information about the Gcc-bugs mailing list