简体   繁体   中英

Can't get Apache httpd on CentOS to core dump

I've been experiencing the following error flooding my error_log and I'm trying to enable core dumps so that I can debug this error and find the cause.

[core:notice] [pid 32710] AH00052: child pid 32759 exit signal Segmentation fault (11)


Steps I've taken to enable core dumps

  1. Edited httpd.conf and added: CoreDumpDirectory /tmp

  2. Ran ulimit -c unlimited

  3. Edited /etc/sysctl.conf and added the lines below

  4. Reloaded the settings using sysctl -p


kernel.core_uses_pid = 1
kernel.core_pattern = /tmp
fs.suid_dumpable = 2


However

So far this has had no effect and core dumps still do not run?

What I expect is to see is:

[core:notice] [pid 2921] AH00051: child pid 18853 exit signal Segmentation fault (11), possible coredump in /tmp

CoretumpDirectory / tmp的/ tmp / apache2-gdb-dump insttead并希望您具有正确的权限并重新启动apache

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM