From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E12C338618C3; Mon, 16 Nov 2020 20:33:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E12C338618C3 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/97589] Segementation fault when allocating coarrays. Date: Mon, 16 Nov 2020 20:33:05 +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: tkoenig at gcc dot gnu.org 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 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: Mon, 16 Nov 2020 20:33:06 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97589 --- Comment #14 from Thomas Koenig --- (In reply to Thomas Koenig from comment #13) > (In reply to Thomas Koenig from comment #12) > > Reduced test case: > >=20 > > program main > > type global_model_state > > real, allocatable :: ps(:) [:] > > end type global_model_state > > type (global_model_state) :: ms_full > > allocate (ms_full % ps(100) [*]) > > ms_full %ps =3D 42. > > end program main >=20 > That one is now fixed, but the original test case still segfaults. ... with 16 images: Decomposition information on image 1 : there are 8 * 2 slabs; the sla= bs are 9 * 35 grid cells in size. Decomposition information on image 13 : there are 8 * 2 slabs; the sla= bs are 9 * 35 grid cells in size. Decomposition information on image 15 : there are 8 * 2 slabs; the sla= bs are 9 * 35 grid cells in size. Decomposition information on image 16 : there are 8 * 2 slabs; the sla= bs are 9 * 35 grid cells in size. Decomposition information on image 6 : there are 8 * 2 slabs; the sla= bs are 9 * 35 grid cells in size. Decomposition information on image 14 : there are 8 * 2 slabs; the sla= bs are 9 * 35 grid cells in size. Decomposition information on image 8 : there are 8 * 2 slabs; the sla= bs are 9 * 35 grid cells in size. Decomposition information on image 2 : there are 8 * 2 slabs; the sla= bs are 9 * 35 grid cells in size. Decomposition information on image 3 : there are 8 * 2 slabs; the sla= bs are 9 * 35 grid cells in size. Decomposition information on image 4 : there are 8 * 2 slabs; the sla= bs are 9 * 35 grid cells in size. Decomposition information on image 11 : there are 8 * 2 slabs; the sla= bs are 9 * 35 grid cells in size. Decomposition information on image 7 : there are 8 * 2 slabs; the sla= bs are 9 * 35 grid cells in size. Decomposition information on image 10 : there are 8 * 2 slabs; the sla= bs are 9 * 35 grid cells in size. Decomposition information on image 5 : there are 8 * 2 slabs; the sla= bs are 9 * 35 grid cells in size. Decomposition information on image 9 : there are 8 * 2 slabs; the sla= bs are 9 * 35 grid cells in size. Decomposition information on image 12 : there are 8 * 2 slabs; the sla= bs are 9 * 35 grid cells in size. Program received signal SIGSEGV: Segmentation fault - invalid memory refere= nce. Backtrace for this error: #0 0x7fb21745659f in ??? at /usr/src/debug/glibc-2.26-lp151.19.19.1.x86_64/signal/../sysdeps/unix/sysv/= linux/x86_64/sigaction.c:0 #1 0x41195b in __types_MOD_global_init at /home/ig25/Krempel/Nico/random_weather.f90:154 #2 0x4148e7 in random_weather at /home/ig25/Krempel/Nico/random_weather.f90:494 #3 0x41576d in image_main_wrapper at ../../../coarray_native/libgfortran/caf_shared/coarraynative.c:1= 83 #4 0x4153d2 in main at /home/ig25/Krempel/Nico/random_weather.f90:413 ERROR: Image 16(0x5a1d) failed=