- Joined
- Apr 5, 2011
- Messages
- 1
- Reaction score
- 0
- Points
- 1
Hi,
I have an old Fortran77 program written by someone else that I have been using for some time without any problems under Unix and my previous MAC (Leopard) with g77 compiler. I recently got a new MAC (Snow Leopard) and installed g77 from hpc. I now get a segmentation fault in the middle of the program. I tried reading on various sites about possible causes and tried to fix it by
- increasing stack size with ulimit or with option -Wl,-stack_size,0x10000000 in the compiler - did not work
- compiling with options like -m32 or -m64 supposing the problem is related to the passage to 64 bit - did not work
- I have also read that it might be an issue related to a timing condition and I should try to slow down my program with print statements ? sounds rather improbable to me
Any suggestions are most welcome!
Many thanks!
I have an old Fortran77 program written by someone else that I have been using for some time without any problems under Unix and my previous MAC (Leopard) with g77 compiler. I recently got a new MAC (Snow Leopard) and installed g77 from hpc. I now get a segmentation fault in the middle of the program. I tried reading on various sites about possible causes and tried to fix it by
- increasing stack size with ulimit or with option -Wl,-stack_size,0x10000000 in the compiler - did not work
- compiling with options like -m32 or -m64 supposing the problem is related to the passage to 64 bit - did not work
- I have also read that it might be an issue related to a timing condition and I should try to slow down my program with print statements ? sounds rather improbable to me
Any suggestions are most welcome!
Many thanks!