Edit report at https://bugs.php.net/bug.php?id=63785&edit=1
ID: 63785 User updated by: lys0212 at qq dot com Reported by: lys0212 at qq dot com Summary: php-fpm segfault Status: Open Type: Bug Package: FPM related Operating System: RHEL6.3 -PHP Version: 5.3.19 +PHP Version: 5.3.16 Block user comment: N Private report: N New Comment: [New Thread 16205] 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 0x000000000081ba4a in php_stat (filename=Cannot access memory at address 0xffffffffffffed84 ) at /root/php-5.3.16/ext/standard/filestat.c:861 861 php_error_docref(NULL TSRMLS_CC, E_WARNING, "%sstat failed for %s", IS_LINK_OPERATION(type) ? "L" : "", filename); Missing separate debuginfos, use: debuginfo-install php-cli-5.3.3-3.el6_2.8.x86_64 (gdb) bt #0 0x000000000081ba4a in php_stat (filename=Cannot access memory at address 0xffffffffffffed84 ) at /root/php-5.3.16/ext/standard/filestat.c:861 Cannot access memory at address 0x4 Previous Comments: ------------------------------------------------------------------------ [2012-12-17 09:15:23] lys0212 at qq dot com [root@localhost core]# gdb php -c core-php-fpm.16205 GNU gdb (GDB) Red Hat Enterprise Linux (7.2-56.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/bin/php...(no debugging symbols found)...done. warning: core file may not match specified executable file. [New Thread 16205] 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 0x000000000081ba4a in zval_mark_grey () Missing separate debuginfos, use: debuginfo-install php-cli-5.3.3-3.el6_2.8.x86_64 (gdb) bt #0 0x000000000081ba4a in zval_mark_grey () #1 0x000000000081ce07 in zend_closure_write_property () #2 0x0000000000000030 in ?? () #3 0x00000000007e060a in zend_mm_free_cache () #4 0x00000000007e060a in zend_mm_free_cache () #5 0x00007fff6c771e40 in ?? () #6 0x0000000000000001 in ?? () #7 0x7ca82b1131a2610d in ?? () #8 0x0000000000dba270 in ?? () #9 0x0000000000000000 in ?? () (gdb) ------------------------------------------------------------------------ [2012-12-17 06:28:38] ahar...@php.net Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. Specifically, we're going to need a backtrace with debug information, I think. ------------------------------------------------------------------------ [2012-12-17 06:14:02] lys0212 at qq dot com Description: ------------ Recently, the new a server used to make web, configuration, software installation, etc. And now the production environment is the same. On-line soon found that /var/log/messages appear PHP-FPM segment error log ------------------------------------------------------------------------ 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 -------------------------------------------------------------- Then after punch, find this mistake occur only in a page, the page, but nothing special, but also in other production machine work well. What is the cause? The following is core dump information: [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) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=63785&edit=1