https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113005
--- Comment #12 from Lipeng Zhu <lipeng.zhu at intel dot com> --- (In reply to Lipeng Zhu from comment #9) > Since I still can't reproduce the failure on my side :(, just curious, will > the new added 'rwlock' test cases failed on mutex lock? OK, I rerun these rwlock* test cases on mutex lock, it reported the similar error: $ export OMP_NUM_THREADS=1024 && time ./rwlock_1.exe At line 28 of file /home/lipzhu/codes/gcc/libgomp/testsuite/libgomp.fortran/rwlock_1.f90 (unit = 1017, file = '***_tst.dat') Fortran runtime error: End of file STOP 2 At line 17 of file /home/lipzhu/codes/gcc/libgomp/testsuite/libgomp.fortran/rwlock_1.f90 (unit = 587) Internal Error: Unit number changed Error termination. Backtrace: At line 17 of file /home/lipzhu/codes/gcc/libgomp/testsuite/libgomp.fortran/rwlock_1.f90 (unit = 732) Internal Error: Unit number changed Error termination. Backtrace: At line 17 of file /home/lipzhu/codes/gcc/libgomp/testsuite/libgomp.fortran/rwlock_1.f90 (unit = 963) At line 17 of file /home/lipzhu/codes/gcc/libgomp/testsuite/libgomp.fortran/rwlock_1.f90 (unit = 980) Internal Error: Unit number changed Internal Error: Unit number changed Error termination. Backtrace: Error termination. Backtrace: At line 17 of file /home/lipzhu/codes/gcc/libgomp/testsuite/libgomp.fortran/rwlock_1.f90 (unit = 421) Internal Error: Unit number changed Error termination. Backtrace: #0 0x7ff587881223 in already_open #0 0x7ff587881223 in already_open #0 0x7ff587881223 in already_open at ../../../libgfortran/io/open.c:742 at ../../../libgfortran/io/open.c:742 at ../../../libgfortran/io/open.c:742 #1 0x400def in ??? #1 0x400def in ??? #1 0x400def in ??? #0 0x7ff587881223 in already_open at ../../../libgfortran/io/open.c:742 #1 0x400def in ??? #0 0x7ff587881223 in already_open at ../../../libgfortran/io/open.c:742 #1 0x400def in ??? #2 0x7ff586e21d2d in gomp_thread_start at ../../../libgomp/team.c:129 #3 0x7ff5866081c9 in ??? #2 0x7ff586e21d2d in gomp_thread_start at ../../../libgomp/team.c:129 #3 0x7ff5866081c9 in ??? #4 0x7ff586239e72 in ??? #4 0x7ff586239e72 in ??? #5 0xffffffffffffffff in ??? #5 0xffffffffffffffff in ??? #2 0x7ff586e21d2d in gomp_thread_start at ../../../libgomp/team.c:129 #3 0x7ff5866081c9 in ??? #4 0x7ff586239e72 in ??? #2 0x7ff586e21d2d in gomp_thread_start #5 0xffffffffffffffff in ??? at ../../../libgomp/team.c:129 #3 0x7ff5866081c9 in ??? #4 0x7ff586239e72 in ??? #5 0xffffffffffffffff in ??? #2 0x7ff586e21d2d in gomp_thread_start at ../../../libgomp/team.c:129 #3 0x7ff5866081c9 in ??? #4 0x7ff586239e72 in ??? #5 0xffffffffffffffff in ???