- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a problem with a program which, when compiled with ifort, throws a 'segmentation fault' when running under fedora (tried 16 and 22) but not when running under Ubuntu (14.04) or CentOS (6). the same program compiled with Lahey LF64 or gfortran runs o.k. on all platforms (but I would like the better performance ifort gives me). I have compiled all three compiler versions with array bound and other error checking switched on and not been able to identify any errors; I've also tried different ifort versions (13.0.1.117 and 15.02.164) but nothing seems to make any difference. I have traced the error to be occurring at a subroutine call (printed out screen messages just before the call & as the 1st statement in the subroutine - the latter didn't show up) and double-checked that all parameters passed are o.k.
my questions: has anybody encountered something like this? any suggestions what else I might try to resolve this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You may already aware of the article about Determining Root Cause of Segmentation Faults SIGSEGV or SIGBUS errors. From what you described perhaps it relates to a large array temporary. There are two useful references at the bottom of the article worthy of review also.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You may already aware of the article about Determining Root Cause of Segmentation Faults SIGSEGV or SIGBUS errors. From what you described perhaps it relates to a large array temporary. There are two useful references at the bottom of the article worthy of review also.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thanks for the link! that is an informative article. adding -heap-arrays did help me out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You're welcome. Glad to hear it was helpful.
![](/skins/images/B7BA37F9CE4B52FF7CAE1FB0388839C8/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page