I am having a very strange issue... I have a rather long fortran code with several subroutines, and I have this exact same code in multiple directories on the same sever (I'm 100% it is exactly the same code -- I even copied it over to double check). In one directory, the code is running exactly as expected; however, in another directory I am getting a segmentation fault. I have tracked down to at least two arrays. The indices of both these arrays are being changed to random out of bound integers. The problem is I traced down the place where both of their values change, and it is within a subroutine that neither of these indices were passed into in the first place. I do use implicit declaration and set all variables to zero when compiling (with the gfortran compiler). This definitely seems to be a memory issue, but I can't possibly imagine why it is different in the two directory structures -- any suggestions???