- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
How long could it take before an update clearing this bug is released?
Thanks for your quick answer,
Franois-Xavier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

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