分段错误后核心转储不可读

分段错误后核心转储不可读

我的堆栈上存在以下问题LAMP(hp),有时我会得到Segmentation fault。所以我做了核心转储Debian Squeeze,希望它能告诉我一些事情,但它什么也没告诉我:

Reading symbols from /usr/sbin/apache2...Reading symbols from /usr/lib/debug/usr/sbin/apache2-mpm-prefork...done.
(no debugging symbols found)...done.
Core was generated by `/usr/sbin/apache2 -k start'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007f479782ca9d in ?? ()
(gdb) bt full
#0  0x00007f479782ca9d in ?? ()
No symbol table info available.
#1  0x00007f4700000002 in ?? ()
No symbol table info available.
#2  0x00007f479d2df648 in ?? ()
No symbol table info available.
#3  0x0000000000000001 in ?? ()
No symbol table info available.
#4  0x00007f479788d11c in ?? ()
No symbol table info available.
#5  0x00007f478aebbcf8 in ?? ()
No symbol table info available.
#6  0x00007f479b593488 in ?? ()
No symbol table info available.
#7  0x00007f479b593488 in ?? ()
No symbol table info available.
#8  0x00007f4797f450c0 in ?? ()
No symbol table info available.
#9  0x00007f479d2df648 in ?? ()
No symbol table info available.
#10 x00007f479786f81c in ?? ()
No symbol table info available.
#11 0x00007f479b593488 in ?? ()
No symbol table info available.
#12 0x00007f479786f5b0 in ?? ()
No symbol table info available.
#13 0xfffffffffffffff9 in ?? ()
No symbol table info available.
#14 0x7400737574617473 in ?? ()
No symbol table info available.
#15 0x0000000000007375 in ?? ()
No symbol table info available.
#16 0x0000000000000009 in ?? ()
No symbol table info available.
#17 0x00007f479cfedd10 in ?? ()
No symbol table info available.
#18 0x00007f478c6ee020 in ?? ()
No symbol table info available.
#19 0x00007f479d2df648 in ?? ()
No symbol table info available.
#20 0x0000000000000000 in ?? ()
No symbol table info available.

我应该尝试什么方法来发现问题?

答案1

您应该使用 CFLAGS 集的 -g 选项自行编译 apache。如果您使用任何第三方 apache 模块,那么您也应该使用 -g 选项编译它们。查看此链接了解更多信息

相关内容