- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I compile my program with the following options (I'm confused about the difference btw -g and -debug full, so I include them both):
-warn all -fpp -check all -gen-interfaces -assume realloc_lhs -debug full -O0 -g -FR
When my programming is bad and check bounds tells me so, I get the sort of output copied below (where frealix2 is the program name). My question is: why don't I get an indication of the line / source file where the problem happened?
-warn all -fpp -check all -gen-interfaces -assume realloc_lhs -debug full -O0 -g -FR
When my programming is bad and check bounds tells me so, I get the sort of output copied below (where frealix2 is the program name). My question is: why don't I get an indication of the line / source file where the problem happened?
[shell]forrtl: severe (408): fort: (2): Subscript #1 of the array RVALUE has value 131 which is greater than the upper bound of 130 Image PC Routine Line Source frealix2 00000000005576DD Unknown Unknown Unknown frealix2 00000000005561E5 Unknown Unknown Unknown frealix2 0000000000503599 Unknown Unknown Unknown frealix2 00000000004C01ED Unknown Unknown Unknown frealix2 00000000004C05F2 Unknown Unknown Unknown frealix2 000000000046D28A Unknown Unknown Unknown frealix2 0000000000499CE1 Unknown Unknown Unknown frealix2 00000000004B49C8 Unknown Unknown Unknown frealix2 00000000004B6B06 Unknown Unknown Unknown frealix2 00000000004B665D Unknown Unknown Unknown frealix2 0000000000403AAC Unknown Unknown Unknown libc.so.6 0000003DCE41D974 Unknown Unknown Unknown frealix2 00000000004039A9 Unknown Unknown Unknown[/shell]
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You need -traceback as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - A. Rohou
I compile my program with the following options (I'm confused about the difference btw -g and -debug full, so I include them both):
-warn all -fpp -check all -gen-interfaces -assume realloc_lhs -debug full -O0 -g -FR
When my programming is bad and check bounds tells me so, I get the sort of output copied below (where frealix2 is the program name). My question is: why don't I get an indication of the line / source file where the problem happened?
-warn all -fpp -check all -gen-interfaces -assume realloc_lhs -debug full -O0 -g -FR
When my programming is bad and check bounds tells me so, I get the sort of output copied below (where frealix2 is the program name). My question is: why don't I get an indication of the line / source file where the problem happened?
[shell]forrtl: severe (408): fort: (2): Subscript #1 of the array RVALUE has value 131 which is greater than the upper bound of 130 Image PC Routine Line Source frealix2 00000000005576DD Unknown Unknown Unknown frealix2 00000000005561E5 Unknown Unknown Unknown frealix2 0000000000503599 Unknown Unknown Unknown frealix2 00000000004C01ED Unknown Unknown Unknown frealix2 00000000004C05F2 Unknown Unknown Unknown frealix2 000000000046D28A Unknown Unknown Unknown frealix2 0000000000499CE1 Unknown Unknown Unknown frealix2 00000000004B49C8 Unknown Unknown Unknown frealix2 00000000004B6B06 Unknown Unknown Unknown frealix2 00000000004B665D Unknown Unknown Unknown frealix2 0000000000403AAC Unknown Unknown Unknown libc.so.6 0000003DCE41D974 Unknown Unknown Unknown frealix2 00000000004039A9 Unknown Unknown Unknown[/shell]
You also need to add -traceback
-g is sufficient for a full traceback. -debug full adds much more information to the executable to help with debuggers.
ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks both for the lightning-fast replies!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't think that -g is required for traceback - they use different sets of information.
![](/skins/images/7B0AB6865064EAE32B30EC9A4E94B48A/responsive_peak/images/icon_anonymous_message.png)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page