The project written in Fortran runs in different machine fine, but when taken to some other Linux machines it does not. It says segmentation fault on one of them, and on the other it says segmentation fault (core dumped). I did gdb of my program, it is very surprising that it points the segfault to the first line in the program where it should print value of a variable kept in module.
I am compiling all of them as follows:
gfortran -mcmodel=large -fPIC -fopenmp -lgfortran ...
Do you know why this might be the case? The gfortran version is 4.7.2 on Ubuntu 12.10.