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

tracebackqq

Luis_Solis
Beginner
555 Views
Hi

When I try to run the sample

program main
use ifcore
implicit none
CALL TRACEBACKQQ()
end program

I get an error in the traceback call

forrtl: severe (157): Program Exception - access violation
Image PC Routine Line Source
Console_test.exe 0040578F Unknown Unknown Unknown
Console_test.exe 00401037 _MAIN__ 4 Source1.f90
Console_test.exe 004A2053 Unknown Unknown Unknown
Console_test.exe 00447197 Unknown Unknown Unknown
Console_test.exe 0044706F Unknown Unknown Unknown
kernel32.dll 7C817077 Unknown Unknown Unknown

I do not know what I can do to get the expected behavior.

0 Kudos
8 Replies
Steven_L_Intel1
Employee
555 Views
Thanks - I have reported this to the developers. The workaround is to pass the user_exit_code argument, for example:

call tracebackqq(user_exit_code=0)

The issue ID is DPD200158227.
0 Kudos
Luis_Solis
Beginner
555 Views
Thanks for your answer.

This behavior is surprising because with previous versions of the compiler I had no problem using tracebacqq.

tracebackqq(user_exit_code=0) not resolve the error, which remains

Best regards
0 Kudos
Steven_L_Intel1
Employee
555 Views
It did work when I tried it with the argument - and the routine appears to have been broken since at least 11.0.075.

C:\Projects>type t0.f90
USE IFCORE
CALL TRACEBACKQQ(user_exit_code=0)
END
C:\Projects>ifort /traceback t0.f90
Intel Visual Fortran Compiler Professional for applications running on IA-32,
Version 11.1 Build 20100414 Package ID: w_cprof_p_11.1.065
Copyright (C) 1985-2010 Intel Corporation. All rights reserved.

Microsoft Incremental Linker Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.

-out:t0.exe
-subsystem:console
-incremental:no
t0.obj

C:\Projects>t0.exe
Image PC Routine Line Source
t0.exe 0043EB5A Unknown Unknown Unknown
t0.exe 0043BD88 Unknown Unknown Unknown
t0.exe 00405293 Unknown Unknown Unknown
t0.exe 00401044 _MAIN__ 2 t0.f90
t0.exe 0043F153 Unknown Unknown Unknown
t0.exe 00429314 Unknown Unknown Unknown
kernel32.dll 7C817077 Unknown Unknown Unknown

C:\Projects>
0 Kudos
Luis_Solis
Beginner
555 Views
I compiled the program from the command line. Now the call to the subroutine is the expected behavior with different values of user_exit_code (0, >1..), and with and without the string argument.

When the malfunction occurs is when compiling the code in a QuickWin project.

Best regards
0 Kudos
pbkenned1
Employee
555 Views
The tracking number for the QuickWin version of this defect is DPD200158419
0 Kudos
Steven_L_Intel1
Employee
555 Views
I expect the issue I filed, DPD200187643, to be fixed in the next major release. I don't have info yet about the QuickWin variant.
0 Kudos
Boneti__Carlos
Beginner
555 Views

Hi, do you have any news with respect to tracebackqq functionality?

I would expect it to be solved by now, but I have a similar problem:

option 1:

call tracebackqq()

gives:

forrtl: severe (157): Program Exception - access violation

Image PC Routine Line Source

libifcoremd.dll 00BCE1B5 Unknown Unknown Unknown

xyz.dll 774E24BA _DEBUG_ASSERT_MOD 43 debug_assert_mod.f90

PNet.dll 0F28499B _ANOTHERMOD_MO 122 another_mod.f90

... etc ...

(that is, undesirable incorrect execption, but proper stack trace)

However,if I use:

use IFCORE

call tracebackqq(user_exit_code=0)

then, it gives:

Image PC Routine Line Source

libifcoremd.dll 00DC9150 Unknown Unknown Unknown

libifcoremd.dll 00DB1521 Unknown Unknown Unknown

libifcoremd.dll 00DDD292 Unknown Unknown Unknown

Notice that, as desired, I no longer have the access violation bug, however, as I use ifcore, I no longer get the stack trace. This is very annoying, as it seems there is no way to get a stack tracke without terminating the program.

Btw, of course, in both cases, everything is compiled with /traceback.I'm using Intel Visual Fortran 2011, Update 10.

Regards,

Carlos


0 Kudos
Steven_L_Intel1
Employee
555 Views
Carlos,

I tried several variants of the usages you showed and all of them gave me a valid traceback in Update 11. If you are still having problems, please start a new thread and attach a ZIP with a sample program that demonstrates the problem.
0 Kudos
Reply