【问题标题】:Can't get Apache httpd on CentOS to core dump无法让 CentOS 上的 Apache httpd 进行核心转储
【发布时间】:2013-12-13 22:16:52
【问题描述】:

我在error_log 中遇到以下错误,我正在尝试启用核心转储,以便调试此错误并找出原因。

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


我为启用核心转储所采取的步骤

  1. 编辑httpd.conf并添加:CoreDumpDirectory /tmp

  2. ulimit -c unlimited

  3. 编辑/etc/sysctl.conf并添加以下行

  4. 使用sysctl -p重新加载设置


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


但是

到目前为止,这没有任何效果,核心转储仍然没有运行?

我期望看到的是:

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

【问题讨论】:

    标签: linux apache debugging centos


    【解决方案1】:

    CoreDumpDirectory /tmp/apache2-gdb-dump 代替 /tmp 并希望您拥有正确的权限 并重启apache

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-05-12
      • 1970-01-01
      • 2011-05-19
      • 2011-06-09
      • 2018-06-15
      • 1970-01-01
      • 2013-07-24
      相关资源
      最近更新 更多