public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/97589] New: Segementation fault when allocating coarrays.
@ 2020-10-27 11:58 toon at moene dot org
  2020-10-29 21:17 ` [Bug fortran/97589] " tkoenig at gcc dot gnu.org
                   ` (29 more replies)
  0 siblings, 30 replies; 31+ messages in thread
From: toon at moene dot org @ 2020-10-27 11:58 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 97589
           Summary: Segementation fault when allocating coarrays.
           Product: gcc
           Version: coarray_native
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: toon at moene dot org
  Target Milestone: ---

Created attachment 49446
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49446&action=edit
The failing program.

I compiled the attached program as follows:

~/compilers/install/coarray_native/bin/gfortran -fbacktrace -fcoarray=shared
test-coarrays.f90 -lcaf_shared -lrt -lpthread

and ran it:

(export
LD_LIBRARY_PATH=/home/toon/compilers/install/coarray_native/lib/gcc/x86_64-pc-linux-gnu/11.0.0;
export GFORTRAN_NUM_IMAGES=1; echo ' &config / ' | ./a.out)
Decomposition information on image   1 : there are   1 *   1 slabs; the slab on
this image has  90 *  90 grid cells.

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

Backtrace for this error:
#0  0x7f4af6b41bd0 in ???
#1  0x7f4af6b40e25 in ???
#2  0x7f4af67efcbf in ???
#3  0x7f4af6916e6d in ???
#4  0x7f4af6e264fb in get_memory_by_id_internal
        at /home/toon/compilers/coarray_native/libgfortran/nca/alloc.c:73
#5  0x401f70 in ???
#6  0x403a74 in ???
#7  0x7f4af6e26a7f in image_main_wrapper
        at
/home/toon/compilers/coarray_native/libgfortran/nca/coarraynative.c:83
#8  0x403acb in ???
#9  0x7f4af67dacc9 in ???
#10  0x401189 in ???
#11  0xffffffffffffffff in ???
ERROR: Image 1(0x22dbf4) failed

^ permalink raw reply	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2021-09-09 18:08 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-27 11:58 [Bug fortran/97589] New: Segementation fault when allocating coarrays 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
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

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).