I am using Intel's Fortran compiler to compile a numerical library. Errors were provided within libc.so.6 in the case of the test. When I add Intel's Debugger (IDB) the application runs successfully How do I debug a bug where debugger prevents bugs? Note that the same bug was born with Gaffaran.
I am working in OpenSUSE 11.2 x64.
forrtl: serious (408): fort: (3): In paragraph # 1 of the array, the value of B-534829264 is less than the lower bound of 1 < / P>
The error message is very clear to me, you try to use a non-existent element of an array are doing. I suspect that the value-534829264 is either junk when you use an initial variable to identify the result of the element, or the result of integer arithmetic overflow in the array. Either way, you should switch to the compilation flag to check the orbet's limit and run some tests. I think the code for the intel compiler will be -CB
, but check the documents.
As a part of this program, I can not help a lot because of successfully running in debugger, but probably puts some default values on debugger variables, which does not run the runtime system itself. Or some other factor is fully responsible.
Edit:
Does the run-time system tell you which line of code causes a problem? Some other things to try to diagnose the problem
Also, check that the default integer size is what you expect to be, and, more importantly, what the rest of the code expects.
Comments
Post a Comment