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

Force traceback printing

lccostajr
Beginner
343 Views

Dear all,

Our Fortran/C application is presenting some source of failure we didn't find out yet, returning segmentation fault. However, we are not able to see traceback information on screen (even using -g and -traceback options) . We then added some C signal handling function and we would like to force the program to write to stdout the traceback information.

Is there any Intel function we could call to print traceback information with all symbols and line numbers? Perhaps we can call the very same function used by Intel to print the stack when some source of unhandled problem occurs in any application.

Thanks in advance.

Best regards, Luiz and Marcelo

0 Kudos
2 Replies
Steven_L_Intel1
Employee
343 Views

We provide TRACEBACKQQ to print a traceback at any point in your program. 

0 Kudos
lccostajr
Beginner
343 Views

Thanks for your quick reply Steve

0 Kudos
Reply