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

求助 nginx+php php崩溃产生core文件

不知道发在这里合不合适,各位高人见谅
情况是这样的,web服务器的 /var/log/messages日志里出现如下log
Sep 22 16:32:48 abc abrt: saved core dump of pid 9300 (/usr/local/php/sbin/php-fpm) to /var/spool/abrt/ccpp-2013-09-22-16:32:48-9300.new/coredump (28389376 bytes)
Sep 22 16:32:48 abc abrtd: Directory 'ccpp-2013-09-22-16:32:48-9300' creation detected
Sep 22 16:32:49 abc abrtd: Executable '/usr/local/php/sbin/php-fpm' doesn't belong to any package
Sep 22 16:32:49 abc abrtd: Corrupted or bad dump /var/spool/abrt/ccpp-2013-09-22-16:32:48-9300 (res:2), deleting

core dump的信息:

GNU gdb (GDB) Red Hat Enterprise Linux (7.2-50.el6)
Copyright (C) 2010 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 "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/local/php/sbin/php-fpm...done.

Missing separate debuginfo for /usr/local/lib/libmcrypt.so.4
Try: yum --disablerepo='*' --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/03/fb179bd959ad3ae29e1b29a28fe62aeeb10687
Missing separate debuginfo for /usr/local/lib/libpng.so.3
Try: yum --disablerepo='*' --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/df/f1cd8146becbbbba80965ee93ae26733879276
Missing separate debuginfo for /usr/local/lib/libjpeg.so.62
Try: yum --disablerepo='*' --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/98/1beebe61f6502eb10effafdefd58b4c14e934c
Missing separate debuginfo for /usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/redis.so
Try: yum --disablerepo='*' --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/4c/9aa061f34819b4c05506e274bf33a18eb23897
Missing separate debuginfo for /usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/mysqli.so
Try: yum --disablerepo='*' --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/3b/618daaeaf8c85c16e485935b7f50cf1d5e722a
Missing separate debuginfo for /usr/local/mysql/lib/libmysqlclient.so.18
Try: yum --disablerepo='*' --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/0a/6ec8a940e648888e46b0d0f43750711a36d356
Missing separate debuginfo for
Try: yum --disablerepo='*' --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/3b/5709b4dddefce3dd0b4bae733298285d52c602
Reading symbols from /lib64/libcrypt.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib64/libcrypt.so.1
Reading symbols from /lib64/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib64/libz.so.1
Reading symbols from /lib64/librt.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib64/librt.so.1
Reading symbols from /usr/local/lib/libmcrypt.so.4...done.
Loaded symbols for /usr/local/lib/libmcrypt.so.4
Reading symbols from /usr/lib64/libfreetype.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libfreetype.so.6
Reading symbols from /usr/local/lib/libpng.so.3...done.
Loaded symbols for /usr/local/lib/libpng.so.3
Reading symbols from /lib64/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib64/libm.so.6
Reading symbols from /usr/local/lib/libjpeg.so.62...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libjpeg.so.62
Reading symbols from /usr/lib64/libcurl.so.4...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libcurl.so.4
Reading symbols from /lib64/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/libdl.so.2
Reading symbols from /lib64/libnsl.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib64/libnsl.so.1
Reading symbols from /usr/lib64/libxml2.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libxml2.so.2
Reading symbols from /usr/lib64/libssl.so.10...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libssl.so.10
Reading symbols from /usr/lib64/libcrypto.so.10...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libcrypto.so.10
Reading symbols from /lib64/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib64/libc.so.6
Reading symbols from /lib64/libresolv.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/libresolv.so.2
Reading symbols from /lib64/libfreebl3.so...(no debugging symbols found)...done.
Loaded symbols for /lib64/libfreebl3.so
Reading symbols from /lib64/libpthread.so.0...(no debugging symbols found)...done.

Loaded symbols for /lib64/libpthread.so.0
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
Reading symbols from /lib64/libidn.so.11...(no debugging symbols found)...done.
Loaded symbols for /lib64/libidn.so.11
Reading symbols from /lib64/libldap-2.4.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/libldap-2.4.so.2
Reading symbols from /lib64/libgssapi_krb5.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/libgssapi_krb5.so.2
Reading symbols from /lib64/libkrb5.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib64/libkrb5.so.3
Reading symbols from /lib64/libk5crypto.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib64/libk5crypto.so.3
Reading symbols from /lib64/libcom_err.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/libcom_err.so.2
Reading symbols from /usr/lib64/libssl3.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libssl3.so
Reading symbols from /usr/lib64/libsmime3.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libsmime3.so
Reading symbols from /usr/lib64/libnss3.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libnss3.so
Reading symbols from /usr/lib64/libnssutil3.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libnssutil3.so
Reading symbols from /lib64/libplds4.so...(no debugging symbols found)...done.
Loaded symbols for /lib64/libplds4.so
Reading symbols from /lib64/libplc4.so...(no debugging symbols found)...done.
Loaded symbols for /lib64/libplc4.so
Reading symbols from /lib64/libnspr4.so...(no debugging symbols found)...done.
Loaded symbols for /lib64/libnspr4.so
Reading symbols from /usr/lib64/libssh2.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libssh2.so.1
Reading symbols from /lib64/liblber-2.4.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/liblber-2.4.so.2
Reading symbols from /usr/lib64/libsasl2.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libsasl2.so.2
Reading symbols from /lib64/libkrb5support.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib64/libkrb5support.so.0
Reading symbols from /lib64/libkeyutils.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib64/libkeyutils.so.1
Reading symbols from /lib64/libselinux.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib64/libselinux.so.1
Reading symbols from /usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/redis.so...done.
Loaded symbols for /usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/redis.so
Reading symbols from /usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/mysqli.so...done.
Loaded symbols for /usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/mysqli.so
Reading symbols from /usr/local/mysql/lib/libmysqlclient.so.18...done.
Loaded symbols for /usr/local/mysql/lib/libmysqlclient.so.18
Reading symbols from /usr/lib64/libstdc++.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libstdc++.so.6
Reading symbols from /lib64/libgcc_s.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib64/libgcc_s.so.1
Reading symbols from /lib64/libnss_files.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/libnss_files.so.2
Reading symbols from /usr/lib64/gconv/GBK.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/gconv/GBK.so
Reading symbols from /lib64/libnss_dns.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/libnss_dns.so.2
Core was generated by `php-fpm: pool www          '.
Program terminated with signal 7, Bus error.
#0lex_scan (zendlval=0x7fff6630e8e8) at Zend/zend_language_scanner.c:2253
2253                  switch (yych) {
Missing separate debuginfos, use: debuginfo-install cyrus-sasl-lib-2.1.23-13.el6.x86_64 freetype-2.3.11-6.el6_2.9.x86_64 glibc-2.12-1.47.el6_2.12.x86_64 keyutils-libs-1.4-3.el6.x86_64 krb5-libs-1.9-22.el6_2.1.x86_64 libcom_err-1.41.12-11.el6.x86_64 libcurl-7.19.7-26.el6_2.4.x86_64 libgcc-4.4.6-4.el6.x86_64 libidn-1.18-2.el6.x86_64 libselinux-2.0.94-5.2.el6.x86_64 libssh2-1.2.2-7.el6_2.3.x86_64 libstdc++-4.4.6-4.el6.x86_64 libxml2-2.7.6-4.el6_2.4.x86_64 nspr-4.8.9-3.el6_2.x86_64 nss-3.13.1-7.el6_2.x86_64 nss-softokn-freebl-3.12.9-11.el6.x86_64 nss-util-3.13.1-3.el6_2.x86_64 openldap-2.4.23-20.el6.x86_64 openssl-1.0.0-20.el6_2.5.x86_64 zlib-1.2.3-27.el6.x86_64
(gdb) bt
#0lex_scan (zendlval=0x7fff6630e8e8) at Zend/zend_language_scanner.c:2253
#10x000000000074a3e0 in zendlex (zendlval=0x7fff6630e8e0) at /usr/local/src/php-5.4.0/Zend/zend_compile.c:6627
#20x0000000000732722 in zendparse () at /usr/local/src/php-5.4.0/Zend/zend_language_parser.c:3430
#30x000000000073f59c in compile_file (file_handle=0x7fff6630ec20, type=2) at Zend/zend_language_scanner.l:579
#40x00000000005df5aa in phar_compile_file (file_handle=0x7fff6630ec20, type=2)
    at /usr/local/src/php-5.4.0/ext/phar/phar.c:3391
#50x000000000073ed0b in compile_filename (type=2, filename=0x7fba4f82fe28) at Zend/zend_language_scanner.l:622
#60x00000000007b1d2b in ZEND_INCLUDE_OR_EVAL_SPEC_TMP_HANDLER (execute_data=0x7fba4f82e5e0)
    at /usr/local/src/php-5.4.0/Zend/zend_vm_execute.h:6929
#70x00000000007ce940 in execute (op_array=0x1ac78d0) at /usr/local/src/php-5.4.0/Zend/zend_vm_execute.h:410
#80x00000000007691ca in zend_execute_scripts (type=8, retval=0x0, file_count=3)
    at /usr/local/src/php-5.4.0/Zend/zend.c:1272
#90x000000000070f3ae in php_execute_script (primary_file=0x7fff66313540)
    at /usr/local/src/php-5.4.0/main/main.c:2473
#10 0x0000000000816c42 in main (argc=1333976168, argv=0x0)
    at /usr/local/src/php-5.4.0/sapi/fpm/fpm/fpm_main.c:1856


我实在是不知其然,更不知其所以然了,度娘n久无果,只好来发帖求助了

evera8080 发表于 2013-09-23 15:37

木有人碰到过累死的问题么?

ganjiangpeng068 发表于 2013-09-24 16:33

我也碰到这个问题,你的问题解决了么?????

evera8080 发表于 2013-09-26 14:22

能力有限 最终不能确定问题根本,网上资料显示貌似是php的bug
详情见
https://bugs.php.net/bug.php?id=52752
页: [1]
查看完整版本: 求助 nginx+php php崩溃产生core文件