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