It is a bug about to use a memory as a certain cause well.
It is reference what is called arrangement outside.
As a solution, we recommend you the check of memory access with a tool called valgrind.
1. Re-compile of a program
A debugging option is validated and is re-compiled.
In the case of the Intel compiler
Please attach "-g -O0" is no optimizes.
The case of gcc is also the appearance,
2. The check by valgrind
The compiled program is run as follows using valgrid.
valgrind runs the given program,checking a memory error.
Although execution time becomes late, it detects and displays bad reference etc.
If all the displayed error parts are corrected, the error of memory access can be lost.
Execution time becomes long sharply from old.