- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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
- Marcas:
- Intel® Fortran Compiler
Link copiado
4 Respostas
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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.
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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.

Responder
Opções do tópico
- Subscrever fonte RSS
- Marcar tópico como novo
- Marcar tópico como lido
- Flutuar este Tópico para o utilizador atual
- Marcador
- Subscrever
- Página amigável para impressora