From: d dot ananyev at gmail dot com
Operating system: CentOS release 6.4 (Final)
PHP version: 5.4.14
Package: opcache
Bug Type: Bug
Bug description:SegFault on zend_deactivate (php-fpm)
Description:
------------
Every approximately 30 minutes i got segfaults in php-fpm
Debuginfo gives me the following trace
Core was generated by `php-fpm: pool www
'.
Program terminated with signal 11, Segmentation fault.
#0 _zend_mm_free_int (heap=0x1c39330, p=0x23671b8) at /usr/build/php-
5.4.10/php-5.4.10/Zend/zend_alloc.c:2100
2100 if (ZEND_MM_IS_FREE_BLOCK(next_block)) {
Missing separate debuginfos, use: debuginfo-install
cairo-1.8.8-3.1.el6.x86_64
fftw-3.2.1-3.1.el6.x86_64 lcms-libs-1.19-1.el6.x86_64 libc-client-2007e-
11.el6.x86_64 libidn-1.18-2.el6.x86_64 libmcrypt-2.5.8-9.el6.x86_64
librabbitmq-
0.2-0.1.git2059570.el6.remi.x86_64 libtool-ltdl-2.2.6-15.5.el6.x86_64
sqlite-
3.6.20-1.el6.x86_64 xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
(gdb) bt
#0 _zend_mm_free_int (heap=0x1c39330, p=0x23671b8) at /usr/build/php-
5.4.10/php-5.4.10/Zend/zend_alloc.c:2100
#1 0x00000000007116d7 in _zval_dtor (zval_ptr=0x29076d8) at
/usr/build/php-
5.4.10/php-5.4.10/Zend/zend_variables.h:35
#2 _zval_ptr_dtor (zval_ptr=0x29076d8) at /usr/build/php-5.4.10/php-
5.4.10/Zend/zend_execute_API.c:438
#3 0x00000000007163af in cleanup_user_class_data (pce=<value optimized
out>) at
/usr/build/php-5.4.10/php-5.4.10/Zend/zend_opcode.c:165
#4 zend_cleanup_user_class_data (pce=<value optimized out>) at
/usr/build/php-
5.4.10/php-5.4.10/Zend/zend_opcode.c:198
#5 0x000000000072b944 in zend_hash_reverse_apply (ht=0x1c39c90,
apply_func=0x716340 <zend_cleanup_user_class_data>) at /usr/build/php-
5.4.10/php-5.4.10/Zend/zend_hash.c:799
#6 0x0000000000714156 in shutdown_executor () at
/usr/build/php-5.4.10/php-
5.4.10/Zend/zend_execute_API.c:289
#7 0x000000000071f412 in zend_deactivate () at /usr/build/php-5.4.10/php-
5.4.10/Zend/zend.c:938
#8 0x00000000006c2a3c in php_request_shutdown (dummy=<value optimized
out>) at
/usr/build/php-5.4.10/php-5.4.10/main/main.c:1790
#9 0x00000000007d0d49 in main (argc=<value optimized out>, argv=<value
optimized out>) at
/usr/build/php-5.4.10/php-5.4.10/sapi/fpm/fpm/fpm_main.c:1948
server runs ~ 100 req/sec
it has 8Gb of ram
and 120 fpm workers
la = 0.5
Expected result:
----------------
dont segfault
Actual result:
--------------
[26-Apr-2013 14:30:19] WARNING: [pool www] child 15002 exited on signal 11
(SIGSEGV - core dumped) after 1613.465551 seconds from start
[26-Apr-2013 14:30:19] NOTICE: [pool www] child 1423 started
--
Edit bug report at https://bugs.php.net/bug.php?id=64720&edit=1
--
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=64720&r=trysnapshot54
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=64720&r=trysnapshot53
Try a snapshot (trunk):
https://bugs.php.net/fix.php?id=64720&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=64720&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=64720&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=64720&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=64720&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=64720&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=64720&r=support
Expected behavior: https://bugs.php.net/fix.php?id=64720&r=notwrong
Not enough info:
https://bugs.php.net/fix.php?id=64720&r=notenoughinfo
Submitted twice:
https://bugs.php.net/fix.php?id=64720&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=64720&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64720&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=64720&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=64720&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=64720&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=64720&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=64720&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=64720&r=mysqlcfg