What are the possible reasons why a kernel exits and the computation simply stops without printing out an error message?
In case the specific scenario is required, it is as follows but perhaps the above question stands on its own --- I have a program (too long to print here, and not sure what the MWE would be) that goes through a loop of files:
1) Read data
OpenRead from a moderately sized file (couple of MB), and then close
Close the file.
2) Perform some operations using read in data, and output
Write the result to a file whose name is indexed by the loop id; close
Close the output file.
After about 1-5% iterations of the loop, the kernel simply exits with no error message. If I restart from the place where it stopped, same thing happens after a while. The output files written in the interim are all okay.
I have checked that the memory usage is minimal (using top on Linux or
MaxMemoryUsed of Mathematica). What I do notice is that about 300+% of CPU is used during the computation, but that probably is innocuous.