[FLASH-USERS] Segmentation fault due to POINTER_INTENT_OUT

Yingchao Lu yingchao.lu at gmail.com
Fri Nov 10 23:46:03 EST 2017


This is the whole list of opts.

> ftn --cray-print-opts=all
-I/opt/cray/pe/libsci/17.06.1/INTEL/16.0/x86_64/include
-I/opt/cray/pe/mpt/7.6.0/gni/mpich-intel/16.0/include
-I/opt/cray/rca/2.2.15-6.0.4.1_13.1__g46acb0f.ari/include
-I/opt/cray/alps/6.4.1-6.0.4.0_7.2__g86d0f3d.ari/include
-I/opt/cray/xpmem/2.2.2-6.0.4.0_3.1__g43b0535.ari/include
-I/opt/cray/gni-headers/5.0.11-6.0.4.0_7.2__g7136988.ari/include
-I/opt/cray/pe/pmi/5.0.12/include
-I/opt/cray/ugni/6.0.14-6.0.4.0_14.1__ge7db4a2.ari/include
-I/opt/cray/udreg/2.3.2-6.0.4.0_12.2__g2f9c3ee.ari/include
-I/opt/cray/wlm_detect/1.2.1-6.0.4.0_22.1__gd26a3dc.ari/include
-I/opt/cray/krca/2.2.2-6.0.4.0_5.2__g4614cf3.ari/include
-I/opt/cray-hss-devel/8.0.0/include
-L/opt/cray/pe/libsci/17.06.1/INTEL/16.0/x86_64/lib
-L/opt/cray/dmapp/default/lib64
-L/opt/cray/pe/mpt/7.6.0/gni/mpich-intel/16.0/lib
-L/opt/cray/dmapp/default/lib64
-L/opt/cray/pe/mpt/7.6.0/gni/mpich-intel/16.0/lib
-L/usr/common/software/darshan/3.1.4/lib
-L/opt/cray/rca/2.2.15-6.0.4.1_13.1__g46acb0f.ari/lib64
-L/opt/cray/alps/6.4.1-6.0.4.0_7.2__g86d0f3d.ari/lib64
-L/opt/cray/xpmem/2.2.2-6.0.4.0_3.1__g43b0535.ari/lib64
-L/opt/cray/pe/pmi/5.0.12/lib64
-L/opt/cray/ugni/6.0.14-6.0.4.0_14.1__ge7db4a2.ari/lib64
-L/opt/cray/udreg/2.3.2-6.0.4.0_12.2__g2f9c3ee.ari/lib64
-L/opt/cray/pe/atp/2.1.1/libApp -L/lib64
-L/opt/cray/wlm_detect/1.2.1-6.0.4.0_22.1__gd26a3dc.ari/lib64
-Wl,@/usr/common/software/darshan/3.1.4/share/ld-opts/darshan-base-ld-opts
-lfmpich -lmpichcxx -Wl,--start-group -ldarshan -ldarshan-stubs
-Wl,--end-group -lz -Wl,--no-as-needed,-lAtpSigHandler,-lAtpSigHCommData
-Wl,--undefined=_ATP_Data_Globals -Wl,--undefined=__atpHandlerInstall
-lpthread -lmpichf90_intel -lrt -lugni -lpmi -lm -lpthread -ldl
-lsci_intel_mpi -lsci_intel -lm -ldl -lmpich_intel -lrt -lugni -lpthread
-lpmi -lm -ldl -lpmi -lpthread -lalpslli -lpthread -lwlm_detect -lalpsutil
-lpthread -lrca -lxpmem -lugni -lpthread -ludreg -lsci_intel -lm -lpthread
-ldl -lhugetlbfs

On Fri, Nov 10, 2017 at 1:58 PM, Klaus Weide <klaus at flash.uchicago.edu>
wrote:

> On Thu, 9 Nov 2017, Yingchao Lu wrote:
>
> > Using ftn compiler on cori, segmentation fault is encountered and
> > backtracked to the subroutine in hy_memReleaseBlkPtr.F90.
> >
> ....
> >
> > I solved it by using -DPOINTER_INTENT_OUT=pointer. Does this cause
> problems
> > for any other part of the code?
>
> Hi Yingchao,
>
> You solution is a good one. It should not cause any problems with either
> the current or near-future versions of the code.
>
> The header file "FortranLangFeatures.fh" (included already in releases
> since FLASH 4.2 or so) is used to enable or disable use of a couple of
> compiler features that were introduced officially in Fortran 2003 or 2008,
> but are also implemented by many compilers that don't fully support those
> standards. These features, including using INTENT(OUT) on POINTER variable
> declaration, can help a compiler in making optimization decisions, and can
> help eliminate code errors. None of them are needed for code correctness.
>
> If you can come up with a preprocessor test for detecting your compiler
> that has problems with "POINTER,INTENT(OUT)", along the lines of the tests
> already in Simulation/FortranLangFeatures.fh, you should add it there;
> and I would appreciate a copy so we can make it available in the next code
> release!
>
> Klaus
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20171110/81e2c4be/attachment.htm>


More information about the flash-users mailing list