Apache的核心转储文件(apache core dump files)

2019-10-29 06:20发布

我想读通过GDB Apache的核心转储文件

这是短期输出不完整的输出,但我不能张贴整个输出在这里

# gdb /usr/local/apache/bin/httpd core.27476
GNU gdb (GDB) CentOS (7.0.1-42.el5.centos)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/local/apache/bin/httpd...(no debugging symbols found)...done.
[New Thread 27476]

warning: .dynamic section for "/lib/libssl.so.6" is not at the expected address

warning: difference appears to be caused by prelink, adjusting expectations

warning: .dynamic section for "/lib/libcrypto.so.6" is not at the expected address

warning: difference appears to be caused by prelink, adjusting expectations

warning: .dynamic section for "/lib/librt.so.1" is not at the expected address

warning: difference appears to be caused by prelink, adjusting expectations
Core was generated by `/usr/local/apache/bin/httpd -k start -DSSL'.
Program terminated with signal 11, Segmentation fault.
#0  0xb3986ca8 in ?? ()

我想知道究竟是什么导致这个问题

谢谢

Answer 1:

你要开始与这个文件: http://httpd.apache.org/dev/debugging.html 。

如果你发现这是一个具体的模块- http://www.myiphoneadventure.com/linux-2/debugging-apache-modules-in-linux-with-gdbddd可以提供帮助。

http://www.omh.cc/blog/2008/mar/6/fixing-apache-segmentation-faults-caused-php/记录了几个漂亮的额外的技巧。



文章来源: apache core dump files