lys0212linux 发表于 2012-12-14 17:01

莫名其妙的php-fpm segfault

最近新上一台服务器用来做web,配置,软件安装等等跟现在生产环境是一样的。上线不久发现/var/log/messages出现php-fpm段错误的日志:
Dec 14 16:57:15 localhost kernel: php-fpm: segfault at 3701788 ip 00000000007e10b1 sp 00007fff7c27f2c0 error 4 in php-fpm
Dec 14 16:57:16 localhost abrt: Saved core dump of pid 32231 (/web/software/php/sbin/php-fpm) to /var/spool/abrt/ccpp-2012-12-14-16:57:15-32231 (279961600 bytes)
Dec 14 16:57:16 localhost abrtd: Directory 'ccpp-2012-12-14-16:57:15-32231' creation detected
Dec 14 16:57:16 localhost abrtd: Executable '/web/software/php/sbin/php-fpm' doesn't belong to any package
Dec 14 16:57:16 localhost abrtd: 'post-create' on '/var/spool/abrt/ccpp-2012-12-14-16:57:15-32231' exited with 1
Dec 14 16:57:16 localhost abrtd: Corrupted or bad directory /var/spool/abrt/ccpp-2012-12-14-16:57:15-32231, deleting
后来经过排查,发现这个错误只发生在一个页面上,但是,这个页面没有什么特别的,而且在其它生产机器运行的好好的。
究竟是什么导致的呢?
下面给出core dump的信息:
# gdb php -c core.32270
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-56.el6)
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/php...(no debugging symbols found)...done.

warning: core file may not match specified executable file.

Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Core was generated by `php-fpm: pool www                                                             '.
Program terminated with signal 11, Segmentation fault.
#00x00000000007e10b1 in zend_mm_free_cache ()
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.80.el6.x86_64
(gdb) bt
#00x00000000007e10b1 in zend_mm_free_cache ()
#10x00007fca780e53e8 in ?? ()
#20x0000000001b5c978 in ?? ()
#30x00000000007fca4f in zend_error_noreturn ()
#40x0000000000000002 in ?? ()
#50x0000000001c1b060 in ?? ()
#60x00000000007a86af in virtual_stat ()
#70x00007fff7c27f580 in ?? ()
#80x6961625f6473732f in ?? ()
#90x2f7068702f696163 in ?? ()
#10 0x507463656a6f7270 in ?? ()
#11 0x6975626f6a2f5048 in ?? ()
#12 0x732f7070612f3456 in ?? ()
#13 0x2f626f6a2f657469 in ?? ()
#14 0x7068702e6f666e69 in ?? ()
#15 0x0070007068007000 in ?? ()
#16 0x000000007068702e in ?? ()
#17 0x0000000000000000 in ?? ()
(gdb)

bs 发表于 2012-12-14 23:07

可能是PHP第三方扩展造成的问题

evera8080 发表于 2013-09-22 17:06

我也被这样的问题困扰,楼主找到问题了么
页: [1]
查看完整版本: 莫名其妙的php-fpm segfault