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

Generating stack trace on demand with programs compiled with ifort on unix

timconnors
Beginner
488 Views

Hi,

I have several times wanted to generate a stack trace on demand (prior to crashing, or just debugging and wanting to see the context of a particular function call).

Since when the program is about to bail out, and I access beyond the end of an array, the internal libraries no doubt, work out what something went wrong, call a routine that prints out the stack trace if there is debugging info, or print out addresses if not, then call the libraries to clean up and exit. What are these internal stack track routines? Can I access them, officially or not? Would intel mind making them publicly accessible as a non-standard extension to the fortran compiler?

Thanks.

0 Kudos
1 Reply
William_H_Intel3
Employee
488 Views

See the Intel Fortran Library documentation for the TRACEBACKQQ routine.

Thanks...Bill

0 Kudos
Reply