public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla@gcc.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	[thread overview]
Message-ID: <bug-97589-4-pm2jNOnOMX@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-97589-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97589

--- Comment #14 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
(In reply to Thomas Koenig from comment #13)
> (In reply to Thomas Koenig from comment #12)
> > Reduced test case:
> > 
> > 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 = 42.
> > end program main
> 
> 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 slabs
are   9 *  35 grid cells in size.
Decomposition information on image  13 : there are   8 *   2 slabs; the slabs
are   9 *  35 grid cells in size.
Decomposition information on image  15 : there are   8 *   2 slabs; the slabs
are   9 *  35 grid cells in size.
Decomposition information on image  16 : there are   8 *   2 slabs; the slabs
are   9 *  35 grid cells in size.
Decomposition information on image   6 : there are   8 *   2 slabs; the slabs
are   9 *  35 grid cells in size.
Decomposition information on image  14 : there are   8 *   2 slabs; the slabs
are   9 *  35 grid cells in size.
Decomposition information on image   8 : there are   8 *   2 slabs; the slabs
are   9 *  35 grid cells in size.
Decomposition information on image   2 : there are   8 *   2 slabs; the slabs
are   9 *  35 grid cells in size.
Decomposition information on image   3 : there are   8 *   2 slabs; the slabs
are   9 *  35 grid cells in size.
Decomposition information on image   4 : there are   8 *   2 slabs; the slabs
are   9 *  35 grid cells in size.
Decomposition information on image  11 : there are   8 *   2 slabs; the slabs
are   9 *  35 grid cells in size.
Decomposition information on image   7 : there are   8 *   2 slabs; the slabs
are   9 *  35 grid cells in size.
Decomposition information on image  10 : there are   8 *   2 slabs; the slabs
are   9 *  35 grid cells in size.
Decomposition information on image   5 : there are   8 *   2 slabs; the slabs
are   9 *  35 grid cells in size.
Decomposition information on image   9 : there are   8 *   2 slabs; the slabs
are   9 *  35 grid cells in size.
Decomposition information on image  12 : there are   8 *   2 slabs; the slabs
are   9 *  35 grid cells in size.

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

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:183
#4  0x4153d2 in main
        at /home/ig25/Krempel/Nico/random_weather.f90:413
ERROR: Image 16(0x5a1d) failed

  parent reply	other threads:[~2020-11-16 20:33 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-27 11:58 [Bug fortran/97589] New: " toon at moene dot org
2020-10-29 21:17 ` [Bug fortran/97589] " tkoenig at gcc dot gnu.org
2020-10-29 21:24 ` tkoenig at gcc dot gnu.org
2020-11-08 12:00 ` tkoenig at gcc dot gnu.org
2020-11-09 20:39 ` tkoenig at gcc dot gnu.org
2020-11-09 20:48 ` tkoenig at gcc dot gnu.org
2020-11-09 21:43 ` tkoenig at gcc dot gnu.org
2020-11-10  8:03 ` toon at moene dot org
2020-11-10  9:02 ` tkoenig at gcc dot gnu.org
2020-11-14 14:53 ` toon at moene dot org
2020-11-15 11:43 ` tkoenig at gcc dot gnu.org
2020-11-15 18:30 ` toon at moene dot org
2020-11-16 18:50 ` tkoenig at gcc dot gnu.org
2020-11-16 20:27 ` tkoenig at gcc dot gnu.org
2020-11-16 20:33 ` tkoenig at gcc dot gnu.org [this message]
2020-11-16 21:15 ` tkoenig at gcc dot gnu.org
2020-11-16 21:15 ` tkoenig at gcc dot gnu.org
2020-11-17 13:18 ` tkoenig at gcc dot gnu.org
2020-11-22 13:20 ` tkoenig at gcc dot gnu.org
2020-11-22 18:10 ` toon at moene dot org
2020-11-22 19:10 ` toon at moene dot org
2020-11-22 20:27 ` tkoenig at gcc dot gnu.org
2020-11-26 22:41 ` tkoenig at gcc dot gnu.org
2020-11-27  8:34 ` toon at moene dot org
2020-11-27 14:35 ` toon at moene dot org
2020-11-27 17:52 ` toon at moene dot org
2020-11-28 17:16 ` tkoenig at gcc dot gnu.org
2020-11-28 20:12 ` toon at moene dot org
2021-09-08 20:05 ` anlauf at gcc dot gnu.org
2021-09-09  7:01 ` toon at moene dot org
2021-09-09 18:08 ` anlauf at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-97589-4-pm2jNOnOMX@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).