[rust] rustc OOM can cause permanent problems
If the rust compiler OOMs and is killed it may leave the target directory in an inconsistent state, and all subsequent compilations will fail. We should probably detect this and cleanup if it happens. Could have a tiny test program to check the compiler server health.
do yo uhave the exact error message you got?
the error message is that any subsequent compilation fails with SIGKILL
the error message is that any subsequent compilation fails with SIGKILL
That's weird. That's typically what an oom killer uses. I'd expect the OOM to fail that way, but subsequent compilations to fail some other way.
That's what I have noticed on my machines; if the files are corrupted and the compiler tries to read them, probably anything can happen.