I follow a similar approach. Valgrind is a must. Just using malloc()+memset(,0,) in release, to override someway the Linux OOM killer.<p>In starvation, malloc+memset &quot;usually&quot; results in a malloc() failure, instead of the process being silently killed by the OOM killer.