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

Q about debugging hassle

WSinc
New Contributor I
277 Views

I have noticed that when my program crashes, for subscript out of range, for example, I dont get any symbolic information in that particular subroutine.

Also, there is no pointer to the source code where that occurs.

I do get a message in the output pane, though, saying where it occurred at least.

Is there a way around this ?

Otherwise I can debug with symbols as expected.

0 Kudos
2 Replies
Lorri_M_Intel
Employee
277 Views

Any chance you could post a reproducer?  I would not expect that behavior.

          thanks --

                             --Lorri

0 Kudos
jimdempseyatthecove
Honored Contributor III
277 Views

When a subscript out of range is detected, it is (assumption) by way of a call to a "test for subscript out of bounds" routine, which then in turn performs an assert to display the message. It may be the case that the stack frame is down two levels to code that has no debug symbolic information. To get around this, open (or locate) the call stack window, and click on the stack level that contains the statement as mentioned in the error message. If there is no information there, then the debug information was either stripped out by the linker or the routine may have been inlined through optimization.

Jim Dempsey

0 Kudos
Reply