feldera icon indicating copy to clipboard operation
feldera copied to clipboard

[rust] rustc OOM can cause permanent problems

Open mihaibudiu opened this issue 1 month ago • 4 comments

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.

mihaibudiu avatar Nov 08 '25 23:11 mihaibudiu

do yo uhave the exact error message you got?

gz avatar Nov 10 '25 23:11 gz

the error message is that any subsequent compilation fails with SIGKILL

mihaibudiu avatar Nov 10 '25 23:11 mihaibudiu

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.

blp avatar Nov 13 '25 18:11 blp

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.

mihaibudiu avatar Nov 13 '25 18:11 mihaibudiu