Tell me one thing, do you have enough memory for the apache process? I am asking becasue erealloc() fails for you. That could be some unfixed memory issue met previously, though. Patch is fixing one issue, but there can still be another one.