Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
4 Views

no traceback after calling abort

Jump to solution

I'd like for the traceback information to be printed when I call abort in my code, but it doesn't seem to be doing this.  From what I've read, it seems like calling abort should print a stack trace.  Is there something else I need to do to get this to work?  Thanks!

I've compiled with the following options using both ifort versions 11.1.046 and 2013.0.079:

-FR -assume byterecl -g -debug all -traceback

all it prints is

abort: Fortran Abort Called

 

0 Kudos

Accepted Solutions
Highlighted
4 Views

A traceback is provided only

Jump to solution

A traceback is provided only when an exception is raised or the Fortran run-time system detects an error condition. Calling abort simply exits the application with no chance for the traceback to be issued.  You can call TRACEBACKQQ (USE IFCORE to declare it) to get a traceback at any point.

Retired 12/31/2016

View solution in original post

0 Kudos
2 Replies
Highlighted
5 Views

A traceback is provided only

Jump to solution

A traceback is provided only when an exception is raised or the Fortran run-time system detects an error condition. Calling abort simply exits the application with no chance for the traceback to be issued.  You can call TRACEBACKQQ (USE IFCORE to declare it) to get a traceback at any point.

Retired 12/31/2016

View solution in original post

0 Kudos
Highlighted
Beginner
4 Views

That works, thanks!

Jump to solution

That works, thanks!

0 Kudos