免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 12439 | 回复: 2
打印 上一主题 下一主题

莫名其妙的php-fpm segfault [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-12-14 17:01 |只看该作者 |倒序浏览
最近新上一台服务器用来做web,配置,软件安装等等跟现在生产环境是一样的。上线不久发现/var/log/messages出现php-fpm段错误的日志:
Dec 14 16:57:15 localhost kernel: php-fpm[32231]: segfault at 3701788 ip 00000000007e10b1 sp 00007fff7c27f2c0 error 4 in php-fpm[400000+a5c000]
Dec 14 16:57:16 localhost abrt[2735]: 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的信息:
[root@localhost job]# 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.
[New Thread 32270]
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.
#0  0x00000000007e10b1 in zend_mm_free_cache ()
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.80.el6.x86_64
(gdb) bt
#0  0x00000000007e10b1 in zend_mm_free_cache ()
#1  0x00007fca780e53e8 in ?? ()
#2  0x0000000001b5c978 in ?? ()
#3  0x00000000007fca4f in zend_error_noreturn ()
#4  0x0000000000000002 in ?? ()
#5  0x0000000001c1b060 in ?? ()
#6  0x00000000007a86af in virtual_stat ()
#7  0x00007fff7c27f580 in ?? ()
#8  0x6961625f6473732f in ?? ()
#9  0x2f7068702f696163 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)

论坛徽章:
0
2 [报告]
发表于 2012-12-14 23:07 |只看该作者
可能是PHP第三方扩展造成的问题

论坛徽章:
0
3 [报告]
发表于 2013-09-22 17:06 |只看该作者
我也被这样的问题困扰,楼主找到问题了么
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP