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

Debug assertion failed (Mac to windows)

rouzour
Beginner
1,590 Views

Hi,

I have a code written in Mac Fortran. Now I am going to run it in windows Fortran. After rebuilding there is no error but at the beginning of debugging I receive this message

Debug Assertion Failed!

Program... test.exe

File: ...winsig.c

Expression: ("invalid signal or error",0)

For information on how your program can cause an assertion failure, see the visual C++ documentation on asserts.

(press retry to debug the application)

---------------------------------------------------

Any idea how to solve it?

Thanks,Rouzbeh

0 Kudos
2 Replies
jimdempseyatthecove
Honored Contributor III
1,590 Views


You are receiving an error in the C Runtime Library used by Fortran.
(file name is winsig.c, located in the {VS}\VC\crt\src folder)

Assuming you are running the Debug Build...

Click on the Retry button in the pop-up window.

This should show you the location in winsig.c where the error occured. You might be able to ascertain the cause by examining the C code. If you need to checkout your Fortran code, use the call stack window to locate the caller. The call stack may or may not show the fortran statement that made the call. If the call stack does not show your Fortran code, then try Step-Out (Shift-F11) until you see the Fortran call. Note, you may get multiple errors inside the C runtime library, in which case you repeat this process. If you cannot step out to the Fortran statement, then you may need to insert trace statements on each call to C runtime library routines (that would be calling awinsig function).

Jim Dempsey

0 Kudos
Steven_L_Intel1
Employee
1,590 Views
I generally find that this message means that a Fortran error has been raised, but the display of that error is in the console window that is hidden behind the Visual Studio window. Look in the Windows taskbar to see if there is a console window and bring it to the front.
0 Kudos
Reply