apache核心转储文件

时间:2012-07-24 12:30:40

标签: linux apache shell gdb

我正在尝试通过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 ?? ()

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

感谢

1 个答案:

答案 0 :(得分:4)

您想从这份文件开始: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/记录了一些不错的额外技巧。