Re: Data race within write intrinsic with output into a character variable

2021-03-10 Thread Tobias Burnus
Hi Martin, On 10.03.21 21:40, mscfd via Fortran wrote: Using helgrind on a simple omp do loop with write to a character variable, I get some possible data races in libgfortran/io/unit.c. [...] Thanks for digging. I have filled https://gcc.gnu.org/PR99529 There global array newunits is alloc

Re: Data race within write intrinsic with output into a character variable

2021-03-10 Thread Kay Diederichs
On 3/10/21 12:35 PM, Martin Stein via Fortran wrote: > 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. T