Data race within write intrinsic with output into a character variable

2021-03-10 Thread Martin Stein via Fortran
Hi, I am seeing rare but reproducible memory corruptions which I can trace back to lines like write(out,'(a,i8)') 'short string', k where out is a (sufficiently large) character(len=...) variable and k some small integer. The line itself occurs in a subroutine called from within an openmp reg

Re: [Patch] Fortran: Fix libgfortran I/O race with newunit_free [PR99529]

2021-03-11 Thread Martin Stein via Fortran
I have seen the lock inversion with helgrind as well. Otherwise I have not seen anything more in my real code. I will give the thread sanitizer another try. Problem with both are the huge number of false positives in conjunction with typical openmp code (e.g. master thread allocates a big vector or

Aw: Help with long compile time of all-USE module

2021-05-12 Thread Martin Stein via Fortran
Hi Matthew,   please have a look at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98426 but ignore any patches I have attached there, because they are just wrong. It definitely sound like you hit the same problem. As described there, if you have a lot of symbols within the mod files pulled in by