Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Fortran Segmentation fault only on Snow Leopard
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="goldfish37" data-source="post: 1214402" data-attributes="member: 197501"><p>Hi,</p><p></p><p>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 </p><p></p><p>- increasing stack size with ulimit or with option -Wl,-stack_size,0x10000000 in the compiler - did not work</p><p></p><p>- compiling with options like -m32 or -m64 supposing the problem is related to the passage to 64 bit - did not work</p><p></p><p>- 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</p><p></p><p> Any suggestions are most welcome!</p><p></p><p> Many thanks!</p></blockquote><p></p>
[QUOTE="goldfish37, post: 1214402, member: 197501"] 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! [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Fortran Segmentation fault only on Snow Leopard
Top