Chris_Laskaris
May 6th, 2014, 06:35 AM
I am trying to compile and run a fortran program. The compilation seems to go successfully, but when I run it, I get the error message:
Segmentation fault (core dumped)
The program in question works for another user who uses Ubuntu (8.04.4) and a similar fortran compiler to mine (ifort 11.0), so I am sure that there isn't a fundamental error in the program. Instead, it seems that there is something in the code which my particular system / fortran compiler does not like. I am using Ubuntu 12.10, and the compiler I am using comes from the free Intel Fortran Composer XE 2013 for Linux package (for non-commercial use). My Intel fortran (ifort) compiler from this package is version 14.0.2.
So, basically, I am using a newer Ubuntu version than my friend, and a newer version / free variant compared to my friend's Intel fortran compiler, and while the program he compiles works for him, it does not work for me.
I am trying to find the source of the error. Based on info I read on this forum in the reply to another user's question, I tried the GDB debugger. However, when I run the program with it, it gives me a very generic error message that doesn't seem to provide any hint on what, exactly, is wrong:
Program received signal SIGSEGV, Segmentation fault.
0x08057b75 in MAIN__ ()
Does anyone know another debugger I could use, or have any general hints on what I might be able to do to try and get this program to work? I am thankful for any help!
Segmentation fault (core dumped)
The program in question works for another user who uses Ubuntu (8.04.4) and a similar fortran compiler to mine (ifort 11.0), so I am sure that there isn't a fundamental error in the program. Instead, it seems that there is something in the code which my particular system / fortran compiler does not like. I am using Ubuntu 12.10, and the compiler I am using comes from the free Intel Fortran Composer XE 2013 for Linux package (for non-commercial use). My Intel fortran (ifort) compiler from this package is version 14.0.2.
So, basically, I am using a newer Ubuntu version than my friend, and a newer version / free variant compared to my friend's Intel fortran compiler, and while the program he compiles works for him, it does not work for me.
I am trying to find the source of the error. Based on info I read on this forum in the reply to another user's question, I tried the GDB debugger. However, when I run the program with it, it gives me a very generic error message that doesn't seem to provide any hint on what, exactly, is wrong:
Program received signal SIGSEGV, Segmentation fault.
0x08057b75 in MAIN__ ()
Does anyone know another debugger I could use, or have any general hints on what I might be able to do to try and get this program to work? I am thankful for any help!