From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 17C29386F02A; Sun, 22 Nov 2020 19:10:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 17C29386F02A From: "toon at moene dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/97589] Segementation fault when allocating coarrays. Date: Sun, 22 Nov 2020 19:10:26 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: coarray_native X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: toon at moene dot org X-Bugzilla-Status: WAITING 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Nov 2020 19:10:27 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97589 --- Comment #20 from Toon Moene --- Example of the problem described in the last comment: (export LD_LIBRARY_PATH=3D/home/toon/compilers/install/coarray_native/lib/gcc/x86_6= 4-pc-linux-gnu/11.0.0; export GFORTRAN_NUM_IMAGES=3D28; echo ' &config nxglobal=3D936, nyglobal=3D= 770, nzglobal=3D60 / ' | ./a.out) Decomposition information on image 1 : there are 4 * 7 slabs; the sla= bs are 234 * 110 grid cells in size. Decomposition information on image 6 : there are 4 * 7 slabs; the sla= bs are 18 * 10 grid cells in size. Decomposition information on image 9 : there are 4 * 7 slabs; the sla= bs are 234 * 110 grid cells in size. Decomposition information on image 24 : there are 4 * 7 slabs; the sla= bs are 18 * 10 grid cells in size. Decomposition information on image 23 : there are 4 * 7 slabs; the sla= bs are 18 * 10 grid cells in size. Decomposition information on image 2 : there are 4 * 7 slabs; the sla= bs are 234 * 110 grid cells in size. Decomposition information on image 22 : there are 4 * 7 slabs; the sla= bs are 234 * 110 grid cells in size. Decomposition information on image 16 : there are 4 * 7 slabs; the sla= bs are 18 * 10 grid cells in size. Decomposition information on image 21 : there are 4 * 7 slabs; the sla= bs are 234 * 110 grid cells in size. Decomposition information on image 12 : there are 4 * 7 slabs; the sla= bs are 234 * 110 grid cells in size. Decomposition information on image 8 : there are 4 * 7 slabs; the sla= bs are 234 * 110 grid cells in size. Decomposition information on image 26 : there are 4 * 7 slabs; the sla= bs are 234 * 110 grid cells in size. Decomposition information on image 14 : there are 4 * 7 slabs; the sla= bs are 18 * 10 grid cells in size. Decomposition information on image 5 : there are 4 * 7 slabs; the sla= bs are 234 * 110 grid cells in size. Decomposition information on image 15 : there are 4 * 7 slabs; the sla= bs are 18 * 10 grid cells in size. Decomposition information on image 3 : there are 4 * 7 slabs; the sla= bs are 234 * 110 grid cells in size. Decomposition information on image 19 : there are 4 * 7 slabs; the sla= bs are 18 * 10 grid cells in size. Decomposition information on image 27 : there are 4 * 7 slabs; the sla= bs are 234 * 110 grid cells in size. Decomposition information on image 10 : there are 4 * 7 slabs; the sla= bs are 234 * 110 grid cells in size. Decomposition information on image 7 : there are 4 * 7 slabs; the sla= bs are 18 * 10 grid cells in size. Decomposition information on image 25 : there are 4 * 7 slabs; the sla= bs are 18 * 10 grid cells in size. Decomposition information on image 11 : there are 4 * 7 slabs; the sla= bs are 18 * 10 grid cells in size. Decomposition information on image 4 : there are 4 * 7 slabs; the sla= bs are 234 * 110 grid cells in size. Decomposition information on image 13 : there are 4 * 7 slabs; the sla= bs are 18 * 10 grid cells in size. Decomposition information on image 20 : there are 4 * 7 slabs; the sla= bs are 234 * 110 grid cells in size. Decomposition information on image 17 : there are 4 * 7 slabs; the sla= bs are 234 * 110 grid cells in size. Decomposition information on image 18 : there are 4 * 7 slabs; the sla= bs are 234 * 110 grid cells in size. Decomposition information on image 28 : there are 4 * 7 slabs; the sla= bs are 234 * 110 grid cells in size. Size mismatch for coarray allocation id 0x419400: found =3D 2882880 !=3D si= ze =3D 20160 Size mismatch for coarray allocation id 0x419400: found =3D 2882880 !=3D si= ze =3D 20160 ERROR: Image 28(0x1e0a22) failed BTW, I cannot replicate this reliably, so it is probably timing related ...=