Changes between Version 5 and Version 6 of Documentation/UserGuide/SegmentationFault
- Timestamp:
- 2020-04-20T10:01:26+02:00 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Documentation/UserGuide/SegmentationFault
v5 v6 1 1 = How to find a segmentation error or a floating invalid error = 2 2 Author: D. Solyga[[BR]] 3 Last revision: J. Ghattas 2020/02/283 Last revision: D. Goll 2020/04/20 4 4 5 5 6 6 == Segmentation errors == 7 7 8 Segmentation errors indicate issues with the memory which are often caused by ill-defined array dimensions. The dimension of your arrays can be checked by changing the settings of the compiler. Note that running the code will take a lot longer! Run the code on a single point test-case to avoid wasting computing resources. Segmentation faults can be trapped directly by the compiler. Check carefully the error messages written by the compiler.8 '''What is it?:''' Segmentation errors indicate issues with the memory which are often caused by ill-defined array dimensions. 9 9 10 See here how to compile in debug mode: wiki:Documentation/UserGuide/CompileMethods 10 '''How to address it:''' The dimension of your arrays can be checked by changing the settings of the compiler. Segmentation faults can be trapped directly by the compiler. Check carefully the error messages written by the compiler. 11 12 13 14 See here how to '''compile in debug mode'''. Note that running the code will take a lot longer! Run the code on a single point test-case '''(ADD LINK TO HOW TO RUN SINGLE PIXEL)''' to avoid wasting computing resources.: wiki:Documentation/UserGuide/CompileMethods 15 16 11 17 12 18 == Floating invalid == 13 If during run time, you got an error saying '''floating invalid...''', compiling with debug options might give more information while running the model again. Hopefully, when you run the model again, you'll get the line number where the model crashed. 19 '''What is it?:''' During an arithmetic operation, the floating-point values used in a calculation were invalid for the type of operation requested or invalid exceptional values. For example, the error can occur if you request a log of the floating-point values 0.0 or a negative number. 14 20 15 Note that the line number given by the compiler corresponds to the preprocessed file. For ORCHIDEE, these files are found in modipsl/modeles/ORCHIDEE/build/ppsrc/. Check these files to know which is the corresponding line.21 '''How to address it:''' If during run time, you got an error saying floating invalid..., compiling with debug options might give more information while running the model again. Hopefully, when you run the model again, you'll get the line number where the model crashed. 16 22 17 See here how to compile in debug mode: wiki:Documentation/UserGuide/CompileMethods 23 Note that the '''line number''' given by the compiler corresponds to the preprocessed file. For ORCHIDEE, these files are found in modipsl/modeles/ORCHIDEE/build/ppsrc/. Check these files to know which is the corresponding line. 18 24 25 See here how to '''compile in debug mode'''. Note that running the code will take a lot longer! Run the code on a single point test-case '''(ADD LINK TO HOW TO RUN SINGLE PIXEL)''' to avoid wasting computing resources: wiki:Documentation/UserGuide/CompileMethods 26