From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B54D73858C56; Mon, 22 Jan 2024 01:02:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B54D73858C56 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705885356; bh=RjCV30pSOjNjP5LVhrg1er6HFl6Ppj4vJe905PFLsmw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=QmdR4YefOpb83F3sVi1WEUvcarIFBbywN3HHH+m35AHtf8obhEanhRS7TNg4V0Pkt 7gxI4grcVZdMm4OX2vQqIYAOh/BHrwqvYYK2buoL2mUzNhlwmznVI8YnDcdNSV+4r9 YSykEtxsf1YwyY+tzH2XoAJ7Ykb7d1lPTJpotDt4= From: "lipeng.zhu at intel dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/113005] 'libgomp.fortran/rwlock_1.f90', 'libgomp.fortran/rwlock_3.f90' execution test timeouts Date: Mon, 22 Jan 2024 01:02:35 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: testsuite-fail X-Bugzilla-Severity: normal X-Bugzilla-Who: lipeng.zhu at intel dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D113005 --- Comment #14 from Lipeng Zhu --- (In reply to Lipeng Zhu from comment #13) > OK, I think I find the root cause of this error, when thread number great= er > than 1000, the file_name =3D 1000_tst.dat, character(11) will overflow. T= his > will generate the same file_name like ***_tst.dat.=20 >=20 > diff --git a/libgomp/testsuite/libgomp.fortran/rwlock_1.f90 > b/libgomp/testsuite/libgomp.fortran/rwlock_1.f90 > index f90ecbeb00f..1c271ae031d 100644 > --- a/libgomp/testsuite/libgomp.fortran/rwlock_1.f90 > +++ b/libgomp/testsuite/libgomp.fortran/rwlock_1.f90 > @@ -7,13 +7,12 @@ program main > use omp_lib > implicit none > integer:: unit_number, v1, v2, i > - character(11) :: file_name > + character(16) :: file_name > character(3) :: async =3D "no" > !$omp parallel private (unit_number, v1, v2, file_name, async, i) > do i =3D 0, 100 > unit_number =3D 10 + omp_get_thread_num () > - write (file_name, "(I3, A)") unit_number, "_tst.dat" > - file_name =3D adjustl(file_name) > + write (file_name, "(I5.5, A)") unit_number, "_tst.dat" > open (unit_number, file=3Dfile_name, asynchronous=3D"yes") > ! call inquire with file parameter to test find_file in unix.c > inquire (file=3Dfile_name, asynchronous=3Dasync) Hi Thomas, Can you help to verify if this draft patch will fix the error on your side?=