Allocation failures
Allocation failures
Posted Apr 23, 2026 6:09 UTC (Thu) by maniax (subscriber, #4509)Parent article: Using LLMs to find Python C-extension bugs
Maybe this needs explicit clarification, but is a Python program expected to continue working after an allocation failure? What would be the use case for that, and shoudn't it be handled with an abort()?
The kernel is supposed to have failing allocations, but other than that, at least under Linux, an allocation failure is a symptom of a dying system, and aborting the processes seems to be the sanest option. And adding error handling for conditions that are not handle-able is a way to add complexity to probably already complex code base.
