Apache Coredumps with RUID2
Hi
I'm trying to debug a segmentation fault in Apache but I'm unable to get it to generate a coredump for analysis. I have followed the steps here
/http://sysadmin.carlusgg.com/?p=197 and here
/https://passwd.org/2012/03/apache-httpd-core-dump-instructions but still no luck
This is on CentOS 6.5 with mod_ruid2
-
Good morning, There's a few things needed to get Apache to core dump properly: Add this to httpd.conf: CoreDumpDirectory /tmp/mycoredump
Create this directory, make it owned by nobody and 777 permissions (both might not be required, I just did this to ensure it worked).mkdir -p /tmp/mycoredump && chown nobody. /tmp/mycoredump && chmod 777 /tmp/mycoredump
After doing that, and ensuring that you have unlimited core dump file sizes (ulimit -c unlimited
), restart Apache and it should core dump for you. I hope this helps!0 -
Thanks Jacob, I'll give that a try 0 -
Hi Jacob I'm still not able to get Apache to coredump, any other settings I should check? 0 -
Hi, Are you getting any errors about the core dumps or are they just not being created? 0 -
Just not being created. Sample from error_log [Tue Feb 24 10:18:14.811014 2015] [core:notice] [pid 16437] AH00052: child pid 20273 exit signal Segmentation fault (11) [Tue Feb 24 10:18:14.811096 2015] [core:notice] [pid 16437] AH00052: child pid 22189 exit signal Segmentation fault (11) [Tue Feb 24 10:18:14.811123 2015] [core:notice] [pid 16437] AH00052: child pid 22897 exit signal Segmentation fault (11) [Tue Feb 24 10:18:14.811146 2015] [core:notice] [pid 16437] AH00052: child pid 23622 exit signal Segmentation fault (11) 0 -
Hello, I'd recommend opening a ticket using the links in my signature. Our support team can assist :) 0
Please sign in to leave a comment.
Comments
8 comments