I sometimes use Mathematica to run very long calculations in the terminal (Debian). To do this I use the command:
math -script (filename)
Now after several hours of running, the kernel just randomly shuts down, without outputting any error message to the terminal. The problem persists in every Mathematica version I have tried: 9.0, 10.0 and 10.1.
Is there a way I can find out what causes the crash? Maybe some logging file or something? I have tried looking through my ~/.Mathematica/Logs folder but it's empty.