CoreDumpDirectory isn't working on ubuntu; getting segmentation fault in apache2 error log <p>I am not able to log the apache2 crashes in CoreDumpDirectory on ubuntu 10.10. I am using Django 1.2.3 and apache2 with mod_wsgi. I followed the steps listed in response to <a href="http://stackoverflow.com/questions/2534531/coredumpdirectory-isnt-working-on-ubuntu-getting-segmentation-fault-with-php">this</a> question but to no avail. I added - <code>CoreDumpDirectory /var/cache/apache2/</code><br> at the end of apache2.conf file and then after executing <code>'ulimit -c unlimited'</code>, restarted the apache server. Then I replicated the condition that causes apache error log to show- "<code>child pid 27288 exit signal Segmentation fault (11)</code>" but there is no mention of apache2 logging that crash in CoreDumpDirectory and also there is nothing in /var/cache/apache2.</p> <p>EDIT:</p> <p>I was able to solve this problem. The issue was with PyLucene environment being initialized on the run time. I was executing initvm() call everytime a request comes and it was causing segmentation fault. <a href="http://mail-archives.apache.org/mod_mbox/lucene-pylucene-dev/201008.mbox/%3CAANLkTin0sDK1nkMWUouOX2r9_3Voo=jqtoNds+dimd4W@mail.gmail.com%3E" rel="nofollow">This link</a> directed that I should do it in .wsgi file and after I did that there were no segmentation faults.</p>