- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear ifort developers
there seems (to my knowledge) nothing wrong in the source code, thus I suspect this to be a compiler bug.
The failing compiling options are -O3 -no-prec-div -xHost -static -heap-arrays
The segmentation fault disappears by adding checks to the problematic routine, e.g.
-CB -O3 -no-prec-div -xHost -static -heap-arrays
or the adding the compiling option -no-ansi-alias.
I find this behaviour somehow odd and I am wondering the following:
1. What can be the source of this problem
2. Is this a compiler problem or a source code problem? And if a source code problem: How can I remove this problem?
The code compiles and runs without problem with sun,pgf and gfortran compilers.
I can give you a copy of the source code if you are interested in exploring the problem further.
Best regards, Halvor
I understood it such that this forum is the place to submit (possible) bug reports?
I have discovered a segmentation fault that occurs when compiling our fortran software with ifort 11.0.081
I have identified at which source line the segmentation fault occurs butthere seems (to my knowledge) nothing wrong in the source code, thus I suspect this to be a compiler bug.
The failing compiling options are -O3 -no-prec-div -xHost -static -heap-arrays
The segmentation fault disappears by adding checks to the problematic routine, e.g.
-CB -O3 -no-prec-div -xHost -static -heap-arrays
or the adding the compiling option -no-ansi-alias.
I find this behaviour somehow odd and I am wondering the following:
1. What can be the source of this problem
2. Is this a compiler problem or a source code problem? And if a source code problem: How can I remove this problem?
The code compiles and runs without problem with sun,pgf and gfortran compilers.
I can give you a copy of the source code if you are interested in exploring the problem further.
Best regards, Halvor
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For a public discussion, you could attach the case here, or submit a private problem report on premier.intel.com.
-no-ansi-alias would tell the compiler not to assume you have followed the Fortran rules against overlapping argument arrays, when one of them is INTENT (INOUT) (default) or (OUT), or overlap between COMMON and arguments. If you did violate that rule, you would require such an option. It would be simply a matter of luck whether such a violation caused problems with another compiler.
-no-ansi-alias would tell the compiler not to assume you have followed the Fortran rules against overlapping argument arrays, when one of them is INTENT (INOUT) (default) or (OUT), or overlap between COMMON and arguments. If you did violate that rule, you would require such an option. It would be simply a matter of luck whether such a violation caused problems with another compiler.
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For a public discussion, you could attach the case here, or submit a private problem report on premier.intel.com.
-no-ansi-alias would tell the compiler not to assume you have followed the Fortran rules against overlapping argument arrays, when one of them is INTENT (INOUT) (default) or (OUT), or overlap between COMMON and arguments. If you did violate that rule, you would require such an option. It would be simply a matter of luck whether such a violation caused problems with another compiler.
-no-ansi-alias would tell the compiler not to assume you have followed the Fortran rules against overlapping argument arrays, when one of them is INTENT (INOUT) (default) or (OUT), or overlap between COMMON and arguments. If you did violate that rule, you would require such an option. It would be simply a matter of luck whether such a violation caused problems with another compiler.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the reply, I figured out the problem with the help of your comments. I was reallocating a data structure inside a subroutine and including it directly from a module with USE
When I send the structure through the subroutine call() instead of via USE everything works fine.
Quoting - tim18
For a public discussion, you could attach the case here, or submit a private problem report on premier.intel.com.
-no-ansi-alias would tell the compiler not to assume you have followed the Fortran rules against overlapping argument arrays, when one of them is INTENT (INOUT) (default) or (OUT), or overlap between COMMON and arguments. If you did violate that rule, you would require such an option. It would be simply a matter of luck whether such a violation caused problems with another compiler.
-no-ansi-alias would tell the compiler not to assume you have followed the Fortran rules against overlapping argument arrays, when one of them is INTENT (INOUT) (default) or (OUT), or overlap between COMMON and arguments. If you did violate that rule, you would require such an option. It would be simply a matter of luck whether such a violation caused problems with another compiler.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page