Fortran CALL segfault

Fortran CALL segfault

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??

1 contenuto / 0 nuovi
Per informazioni complete sulle ottimizzazioni del compilatore, consultare l'Avviso sull'ottimizzazione