Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Fortran CALL segfault

sebastien_caty
Beginner
256 Views
Hi,

I'm trying to compile CMFGEN (http://kookaburra.phyast.pitt.edu/hillier/web/CMFGEN.htm) using IFC 9.0 and while everything compile just fine I'm getting a segfault no matter what I do. Using the debugger it seems the segfault occur on every function CALL within a subroutine (cmfgen_sub.f):

Like this
CALL DIR_ACC_PARS(REC_SIZE,UNIT_SIZE,WORD_SIZE,N_PER_REC)

If I copy the code directly inside however, it works.

But then the next call will cause a segfault
CALL GEN_ASCI_OPEN(LU_SE,'STEQ_VALS','UNKNOWN',' ',' ',IZERO,IOS)

this function is called before by the main program (cmfgen.f) and works fine. But from within cmfgen_sub.f, it doesn't.

Am I missing something??
0 Kudos
0 Replies
Reply