Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

ifort 8.1 segfault

fxcoudert
Beginner
834 Views
Hi all,

I have a piece of code that compiles but gives a segfault at run-time. It doesn't seem to be related to the usual stack size problem.

[code attached, 28 lines, minimal testcase as far as I can reduce it; compiled with ifort -C -g, Package ID: l_fc_pu_8.1.021]

It runs perfectly with ifc and any other F90 compiler I could lay my hands on. Debugging indicates the segfault occurs when the program as attained the last level of recursion (the tenth, actually), just before the end of the recursive function.

Thanks in advance for your help,
Franois-Xavier
0 Kudos
4 Replies
Steven_L_Intel1
Employee
834 Views
Please report all suspected compiler bugs to Intel Premier Support.
0 Kudos
Steven_L_Intel1
Employee
834 Views
It's a compiler bug - the compiler is not allocating a stack temporary for the result variable of the recursive function.
I suggest you report this to Intel Premier Support - please ask that the issue be assigned to Steve Lionel.
0 Kudos
fxcoudert
Beginner
834 Views
I reported it in Intel Premier Support as issue #277463 (https://premier.intel.com/IssueDetail.aspx?IssueID=277463). I hope I did it right, though, since it's not all clear to me how this system works.

How long could it take before an update clearing this bug is released?

Thanks for your quick answer,
Franois-Xavier
0 Kudos
Steven_L_Intel1
Employee
834 Views
You did it right - thanks.
I don't know how long it will take to fix this problem. I will inform you through Premier Support when the bug is fixed.
0 Kudos
Reply