Allocation failures
Allocation failures
Posted Apr 25, 2026 8:55 UTC (Sat) by mb (subscriber, #50428)In reply to: Allocation failures by devdanzin
Parent article: Using LLMs to find Python C-extension bugs
If the one process caused the OOM, the 999 are *not* innocent. They used up all the memory.
The system is designed incorrectly, if this can happen.
OOM is an emergency situation that cannot be handled in a sane way. Even if the one process handles it's NULL pointers correctly, the system's about-to-be OOM state persists and the next request will run into it.
The system is already dead.
The correct handling is to kill processes to free up significant amounts of memory instead of handling the failures that will keep happening.
