- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
Myprogram gets into a crash and the debugger doesn't give any information about the crash. On the black screen I get the error message
forrtl: error (72): floating overflow
Image PC Routine Line Source
inteldev.exe 030FCF26 Unknown Unknown Unknown
In the callstack
IntelDev.exe!_control87(unsigned int newctrl=196608, unsigned int mask=0) + 0x6C
IntelDev.exe!_controlfp(unsigned int newctrl=196608, unsigned int mask=0) + 0x15C
IntelDev.exe!_for__nt_handler_jacket.() + 0x95C
IntelDev.exe!_for__nt_handler_jacket.() + 0x35C
IntelDev.exe!_main() + 0xdeC
IntelDev.exe!mainCRTStartup() Line 259 + 0x19C
kernel32.dll!7c816fd7()
ntdll.dll!7c915b4f()
The debugger opens the file crt0.c which is some kind of C initialization file as far as I can see. Nothing though points to which of my code line caused the crash. This problem started occurring lately for every crash so it's not just a particular code segment that is problematic. I suppose some of the compiler options may be responsible for this. Any ideas for how to fix the problem?
Thanks a lot in advance.
Tihomir
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You probably have also changed the "Floating Point Exception" option from the default of /fpe:3 to /fpe:0 as otherwise you would get "Infinity" in results rather than an overflow error. (Though personally I'd rather see the error.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Steve.
I am running this in Debug mode with these compiler options
/Zi /fpscomp:ioformat /Qauto /module:"$(INTDIR)/" /object:"$(INTDIR)/" /c
I did try /fpe:0 recently but since then I have turned that option off and is now at the default. I also tried adding /fpe:3 to the command line but that didn't fix the problem either.
Thanks
Tihomir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Steve
Actually the raceback was in there. Here again the Compiler command line:
/Zi /Od /fpscomp:ioformat /Qauto /module:"$(INTDIR)/" /object:"$(INTDIR)/" /traceback /c
I am using Visual Studio. I can start the program in the debugger, the program crashes after about 10000 lines of code, butthe debuggerdoesn't say which line. Most of the time this happens when an array has been deallocated and consequently has been accessed.
The compiler version is 9.1.032, the debugger version is 9.1-25.
Thank you.
Tihomir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page