Bug #70192 [Com]: Opcache Segmentation error!

From: Date: Tue, 09 Aug 2016 06:38:05 +0000
Subject: Bug #70192 [Com]: Opcache Segmentation error!
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-203104@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70192&edit=1 ID: 70192 Comment by: anime-php-report_my at dena dot jp Reported by: shu dot ko at tis dot co dot jp Summary: Opcache Segmentation error! Status: Feedback Type: Bug Package: opcache Operating System: CentOs6.6 PHP Version: 5.6Git-2015-08-05 (Git) Block user comment: N Private report: N New Comment: Yes, We happened. zend_extension loaded but not enabled to xdebug(dtrace are enabled). we declared php.ini below: zend_extension=opcache.so zend_extension=xdebug.so opcache.enable=1 opcache.memory_consumption=128 opcache.interned_strings_buffer=8 opcache.max_accelerated_files=4000 opcache.fast_shutdown=1 We found a work-around solution. declare to php-fpm.conf below: php_value[opcache.optimization_level] = 0xFFFFFFF0 Previous Comments: ------------------------------------------------------------------------ [2016-08-06 01:34:19] kalle@php.net Does this issue also happen without dtrace and xdebug enabled? ------------------------------------------------------------------------ [2015-11-18 08:26:37] anime-php-report_my at dena dot jp We have similar issue occurred. but happen with php-5.6.11 and php-fpm. After the first segfault, each additional request also results in a segfault. The only solution is to restart PHP-FPM. php configuration: ---- $ php -v PHP 5.6.11 (cli) (built: Jul 22 2015 13:24:20) Copyright (c) 1997-2015 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies with Xdebug v2.3.3, Copyright (c) 2002-2015, by Derick Rethans $ php -i | grep opc | egrep "optim|fast" opcache.fast_shutdown => 1 => 1 opcache.optimization_level => 0xFFFFFFFF => 0xFFFFFFFF back trace: ---- (gdb) bt #0 0x00007fabd35db95e in memcpy () from /lib64/libc.so.6 #1 0x00000000005b8220 in _estrndup () #2 0x00007fabd2456e6b in zend_hash_clone_zval (ht=0x7fabac941a90, source=<value optimized out>, bind=0) at /home/infra/rpmbuild-php56/BUILD/php-5.6.11/ext/opcache/zend_accelerator_util_funcs.c:425 #3 0x00007fabd2456e17 in zend_hash_clone_zval (ht=0x7fabac941960, source=<value optimized out>, bind=0) at /home/infra/rpmbuild-php56/BUILD/php-5.6.11/ext/opcache/zend_accelerator_util_funcs.c:433 #4 0x00007fabd2456e17 in zend_hash_clone_zval (ht=0x7fabac93fc80, source=<value optimized out>, bind=0) at /home/infra/rpmbuild-php56/BUILD/php-5.6.11/ext/opcache/zend_accelerator_util_funcs.c:433 #5 0x00007fabd2457786 in zend_class_copy_ctor (pce=<value optimized out>) at /home/infra/rpmbuild-php56/BUILD/php-5.6.11/ext/opcache/zend_accelerator_util_funcs.c:752 #6 0x00007fabd2456650 in zend_hash_unique_copy (target=0x1d9fc90, source=<value optimized out>, pCopyConstructor=0x7fabd2457320 <zend_class_copy_ctor>, size=8, ignore_dups=0, fail_data=0x7fff29141dc8, conflict_data=0x7fff29141dc0) at /home/infra/rpmbuild-php56/BUILD/php-5.6.11/ext/opcache/zend_accelerator_util_funcs.c:922 #7 0x00007fabd24567cc in zend_accel_class_hash_copy (target=<value optimized out>, source=<value optimized out>, pCopyConstructor=<value optimized out>) at /home/infra/rpmbuild-php56/BUILD/php-5.6.11/ext/opcache/zend_accelerator_util_funcs.c:962 #8 0x00007fabd2457121 in zend_accel_load_script (persistent_script=0x7fabae789690, from_shared_memory=1) at /home/infra/rpmbuild-php56/BUILD/php-5.6.11/ext/opcache/zend_accelerator_util_funcs.c:1009 #9 0x00007fabd24500cf in persistent_compile_file (file_handle=<value optimized out>, type=<value optimized out>) at /home/infra/rpmbuild-php56/BUILD/php-5.6.11/ext/opcache/ZendAccelerator.c:1701 #10 0x00007fabd221acfd in xdebug_compile_file (file_handle=<value optimized out>, type=<value optimized out>) at /home/infra/rpmbuild-php56/BUILD/php56u-pecl-xdebug-2.3.3/NTS/xdebug.c:1826 #11 0x00000000005aeb7e in compile_filename () #12 0x000000000064c17b in ZEND_INCLUDE_OR_EVAL_SPEC_CV_HANDLER () #13 0x000000000064d5a8 in execute_ex () #14 0x00000000005cf1ae in dtrace_execute_ex () #15 0x00007fabd221ba43 in xdebug_execute_ex (execute_data=0x7fabd5ca62e8) at /home/infra/rpmbuild-php56/BUILD/php56u-pecl-xdebug-2.3.3/NTS/xdebug.c:1644 #16 0x000000000065e144 in zend_do_fcall_common_helper_SPEC () #17 0x000000000064d5a8 in execute_ex () #18 0x00000000005cf1ae in dtrace_execute_ex () #19 0x00007fabd221ba43 in xdebug_execute_ex (execute_data=0x7fabd5ca61f0) at /home/infra/rpmbuild-php56/BUILD/php56u-pecl-xdebug-2.3.3/NTS/xdebug.c:1644 #20 0x00000000005d1c13 in zend_call_function () #21 0x00000000005f7aa7 in zend_call_method () #22 0x00000000004eb6d6 in zif_spl_autoload_call () #23 0x00000000005cf079 in dtrace_execute_internal () #24 0x00007fabd221b0b6 in xdebug_execute_internal (current_execute_data=0x7fff291429f0, fci=0x7fff29142b50, return_value_used=1) at /home/infra/rpmbuild-php56/BUILD/php56u-pecl-xdebug-2.3.3/NTS/xdebug.c:1767 #25 0x00000000005d1e14 in zend_call_function () #26 0x00000000005d2125 in zend_lookup_class_ex () #27 0x00000000005d257f in zend_fetch_class_by_name () #28 0x000000000062abdb in ZEND_FETCH_CLASS_SPEC_CONST_HANDLER () #29 0x000000000064d5a8 in execute_ex () #30 0x00000000005cf1ae in dtrace_execute_ex () #31 0x00007fabd221ba43 in xdebug_execute_ex (execute_data=0x7fabd5ca60c8) at /home/infra/rpmbuild-php56/BUILD/php56u-pecl-xdebug-2.3.3/NTS/xdebug.c:1644 #32 0x000000000065e144 in zend_do_fcall_common_helper_SPEC () #33 0x000000000064d5a8 in execute_ex () #34 0x00000000005cf1ae in dtrace_execute_ex () #35 0x00007fabd221ba43 in xdebug_execute_ex (execute_data=0x7fabd5ca5f08) at /home/infra/rpmbuild-php56/BUILD/php56u-pecl-xdebug-2.3.3/NTS/xdebug.c:1644 #36 0x000000000065e144 in zend_do_fcall_common_helper_SPEC () #37 0x000000000064d5a8 in execute_ex () #38 0x00000000005cf1ae in dtrace_execute_ex () #39 0x00007fabd221ba43 in xdebug_execute_ex (execute_data=0x7fabd5ca5b00) at /home/infra/rpmbuild-php56/BUILD/php56u-pecl-xdebug-2.3.3/NTS/xdebug.c:1644 #40 0x000000000065e144 in zend_do_fcall_common_helper_SPEC () #41 0x000000000064d5a8 in execute_ex () #42 0x00000000005cf1ae in dtrace_execute_ex () #43 0x00007fabd221ba43 in xdebug_execute_ex (execute_data=0x7fabd5ca5950) at /home/infra/rpmbuild-php56/BUILD/php56u-pecl-xdebug-2.3.3/NTS/xdebug.c:1644 #44 0x000000000065e144 in zend_do_fcall_common_helper_SPEC () #45 0x000000000064d5a8 in execute_ex () #46 0x00000000005cf1ae in dtrace_execute_ex () #47 0x00007fabd221ba43 in xdebug_execute_ex (execute_data=0x7fabd5ca5800) at /home/infra/rpmbuild-php56/BUILD/php56u-pecl-xdebug-2.3.3/NTS/xdebug.c:1644 #48 0x000000000065e144 in zend_do_fcall_common_helper_SPEC () #49 0x000000000064d5a8 in execute_ex () #50 0x00000000005cf1ae in dtrace_execute_ex () #51 0x00007fabd221ba43 in xdebug_execute_ex (execute_data=0x7fabd5ca5648) at /home/infra/rpmbuild-php56/BUILD/php56u-pecl-xdebug-2.3.3/NTS/xdebug.c:1644 #52 0x000000000065e144 in zend_do_fcall_common_helper_SPEC () #53 0x000000000064d5a8 in execute_ex () #54 0x00000000005cf1ae in dtrace_execute_ex () #55 0x00007fabd221ba43 in xdebug_execute_ex (execute_data=0x7fabd5ca5508) at /home/infra/rpmbuild-php56/BUILD/php56u-pecl-xdebug-2.3.3/NTS/xdebug.c:1644 #56 0x000000000065e144 in zend_do_fcall_common_helper_SPEC () #57 0x000000000064d5a8 in execute_ex () #58 0x00000000005cf1ae in dtrace_execute_ex () #59 0x00007fabd221ba43 in xdebug_execute_ex (execute_data=0x7fabd5ca53f8) at /home/infra/rpmbuild-php56/BUILD/php56u-pecl-xdebug-2.3.3/NTS/xdebug.c:1644 #60 0x000000000065e144 in zend_do_fcall_common_helper_SPEC () #61 0x000000000064d5a8 in execute_ex () #62 0x00000000005cf1ae in dtrace_execute_ex () #63 0x00007fabd221ba43 in xdebug_execute_ex (execute_data=0x7fabd5ca5268) at /home/infra/rpmbuild-php56/BUILD/php56u-pecl-xdebug-2.3.3/NTS/xdebug.c:1644 #64 0x000000000065e144 in zend_do_fcall_common_helper_SPEC () #65 0x000000000064d5a8 in execute_ex () #66 0x00000000005cf1ae in dtrace_execute_ex () #67 0x00007fabd221ba43 in xdebug_execute_ex (execute_data=0x7fabd5ca5128) at /home/infra/rpmbuild-php56/BUILD/php56u-pecl-xdebug-2.3.3/NTS/xdebug.c:1644 #68 0x000000000065e144 in zend_do_fcall_common_helper_SPEC () #69 0x000000000064d5a8 in execute_ex () #70 0x00000000005cf1ae in dtrace_execute_ex () #71 0x00007fabd221ba43 in xdebug_execute_ex (execute_data=0x7fabd5ca4f88) at /home/infra/rpmbuild-php56/BUILD/php56u-pecl-xdebug-2.3.3/NTS/xdebug.c:1644 #72 0x000000000065e144 in zend_do_fcall_common_helper_SPEC () #73 0x000000000064d5a8 in execute_ex () #74 0x00000000005cf1ae in dtrace_execute_ex () #75 0x00007fabd221ba43 in xdebug_execute_ex (execute_data=0x7fabd5ca4e58) at /home/infra/rpmbuild-php56/BUILD/php56u-pecl-xdebug-2.3.3/NTS/xdebug.c:1644 #76 0x000000000065e144 in zend_do_fcall_common_helper_SPEC () #77 0x000000000064d5a8 in execute_ex () #78 0x00000000005cf1ae in dtrace_execute_ex () #79 0x00007fabd221ba43 in xdebug_execute_ex (execute_data=0x7fabd5ca4d50) at /home/infra/rpmbuild-php56/BUILD/php56u-pecl-xdebug-2.3.3/NTS/xdebug.c:1644 #80 0x000000000065e144 in zend_do_fcall_common_helper_SPEC () #81 0x000000000064d5a8 in execute_ex () #82 0x00000000005cf1ae in dtrace_execute_ex () #83 0x00007fabd221ba43 in xdebug_execute_ex (execute_data=0x7fabd5ca4c08) at /home/infra/rpmbuild-php56/BUILD/php56u-pecl-xdebug-2.3.3/NTS/xdebug.c:1644 #84 0x000000000065e144 in zend_do_fcall_common_helper_SPEC () #85 0x000000000064d5a8 in execute_ex () #86 0x00000000005cf1ae in dtrace_execute_ex () #87 0x00007fabd221ba43 in xdebug_execute_ex (execute_data=0x7fabd5ca4af0) at /home/infra/rpmbuild-php56/BUILD/php56u-pecl-xdebug-2.3.3/NTS/xdebug.c:1644 #88 0x000000000065e144 in zend_do_fcall_common_helper_SPEC () #89 0x000000000064d5a8 in execute_ex () #90 0x00000000005cf1ae in dtrace_execute_ex () #91 0x00007fabd221ba43 in xdebug_execute_ex (execute_data=0x7fabd5ca49d8) at /home/infra/rpmbuild-php56/BUILD/php56u-pecl-xdebug-2.3.3/NTS/xdebug.c:1644 #92 0x000000000065e144 in zend_do_fcall_common_helper_SPEC () #93 0x000000000064d5a8 in execute_ex () #94 0x00000000005cf1ae in dtrace_execute_ex () #95 0x00007fabd221ba43 in xdebug_execute_ex (execute_data=0x7fabd5ca48e8) at /home/infra/rpmbuild-php56/BUILD/php56u-pecl-xdebug-2.3.3/NTS/xdebug.c:1644 #96 0x00000000005de8fc in zend_execute_scripts () #97 0x000000000057cf9a in php_execute_script () #98 0x000000000068e227 in main () ------------------------------------------------------------------------ [2015-08-06 02:00:40] amor dot c at qq dot com maybe you need to open debug when you complie php,than "??" can show the detail. ------------------------------------------------------------------------ [2015-08-05 05:13:18] shu dot ko at tis dot co dot jp Description: ------------ I am using opcache, when i do a stress test(peek thughput: 300request/secend)Segmentation(11) error happend. when i set opacahe off, the error do not happen. I got the backtrace infomations, please see fellow. Actual result: -------------- -------------------------------------- core was generated by `/usr/sbin/httpd'. Program terminated with signal 11, Segmentation fault. #0 0x00007fbe4cbb067e in memcpy () from /lib64/libc.so.6 Missing separate debuginfos, use: debuginfo-install httpd-2.2.15-39.el6.centos.x86_64 (gdb) bt #0 0x00007fbe4cbb067e in memcpy () from /lib64/libc.so.6 #1 0x00007fbe48858b90 in _estrndup () from /etc/httpd/modules/libphp5.so #2 0x00007fbe46491e6b in ?? () from /usr/lib64/php/modules/opcache.so #3 0x00007fbe46491e17 in ?? () from /usr/lib64/php/modules/opcache.so #4 0x00007fbe46492786 in ?? () from /usr/lib64/php/modules/opcache.so #5 0x00007fbe46491650 in ?? () from /usr/lib64/php/modules/opcache.so #6 0x00007fbe464917cc in ?? () from /usr/lib64/php/modules/opcache.so #7 0x00007fbe46492121 in ?? () from /usr/lib64/php/modules/opcache.so #8 0x00007fbe4648b0cf in ?? () from /usr/lib64/php/modules/opcache.so #9 0x00007fbe4884f5be in compile_filename () from /etc/httpd/modules/libphp5.so #10 0x00007fbe488ed6e3 in ?? () from /etc/httpd/modules/libphp5.so #11 0x00007fbe488eded8 in execute_ex () from /etc/httpd/modules/libphp5.so #12 0x00007fbe4886fb1e in dtrace_execute_ex () from /etc/httpd/modules/libphp5.so #13 0x00007fbe488ed871 in ?? () from /etc/httpd/modules/libphp5.so #14 0x00007fbe488eded8 in execute_ex () from /etc/httpd/modules/libphp5.so #15 0x00007fbe4886fb1e in dtrace_execute_ex () from /etc/httpd/modules/libphp5.so #16 0x00007fbe488ed871 in ?? () from /etc/httpd/modules/libphp5.so #17 0x00007fbe488eded8 in execute_ex () from /etc/httpd/modules/libphp5.so #18 0x00007fbe4886fb1e in dtrace_execute_ex () from /etc/httpd/modules/libphp5.so #19 0x00007fbe4887f26c in zend_execute_scripts () from /etc/httpd/modules/libphp5.so #20 0x00007fbe4881d9da in php_execute_script () from /etc/httpd/modules/libphp5.so #21 0x00007fbe489257dd in ?? () from /etc/httpd/modules/libphp5.so #22 0x00007fbe4e617cd0 in ap_run_handler () #23 0x00007fbe4e61b58e in ap_invoke_handler () #24 0x00007fbe4e626c50 in ap_process_request () #25 0x00007fbe4e623ac8 in ?? () #26 0x00007fbe4e61f7d8 in ap_run_process_connection () #27 0x00007fbe4e62bad7 in ?? () #28 0x00007fbe4e62bdea in ?? () #29 0x00007fbe4e62ca6c in ap_mpm_run () #30 0x00007fbe4e6039b0 in main () -------------------------------------- ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=70192&edit=1

« previous php.bugs (#203104) next »