{"action":"created","issue":{"url":"https://api.github.com/repos/zendtech/ZendOptimizerPlus/issues/219","labels_url":"https://api.github.com/repos/zendtech/ZendOptimizerPlus/issues/219/labels{/name}","comments_url":"https://api.github.com/repos/zendtech/ZendOptimizerPlus/issues/219/comments","events_url":"https://api.github.com/repos/zendtech/ZendOptimizerPlus/issues/219/events","html_url":"https://github.com/zendtech/ZendOptimizerPlus/issues/219","id":109226359,"number":219,"title":"Opcache crashed with PHP7","user":{"login":"ryukoui","id":11362757,"avatar_url":"https://avatars.githubusercontent.com/u/11362757?v=3","gravatar_id":"","url":"https://api.github.com/users/ryukoui","html_url":"https://github.com/ryukoui","followers_url":"https://api.github.com/users/ryukoui/followers","following_url":"https://api.github.com/users/ryukoui/following{/other_user}","gists_url":"https://api.github.com/users/ryukoui/gists{/gist_id}","starred_url":"https://api.github.com/users/ryukoui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryukoui/subscriptions","organizations_url":"https://api.github.com/users/ryukoui/orgs","repos_url":"https://api.github.com/users/ryukoui/repos","events_url":"https://api.github.com/users/ryukoui/events{/privacy}","received_events_url":"https://api.github.com/users/ryukoui/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-01T04:09:59Z","updated_at":"2015-10-01T10:31:45Z","closed_at":null,"body":"I am testing PHP7 for my web applications.\r\nSome of them are worked fine.But one give me segfault.\r\n\r\nHere is the backtrace below.\r\n```\r\nProgram received signal SIGBUS, Bus error.\r\n0x00007fffe16c1724 in zend_bitset_in (n=4294967290, set=0x7fffe7f39410) at /root/php-src-php-7.0.0RC4/Zend/zend_bitset.h:51\r\n51              return (set[ZEND_BITSET_ELM_NUM(n)] & (Z_UL(1) << ZEND_BITSET_BIT_NUM(n))) != Z_UL(0);\r\n(gdb) bt\r\n#0  0x00007fffe16c1724 in zend_bitset_in (n=4294967290, set=0x7fffe7f39410) at /root/php-src-php-7.0.0RC4/Zend/zend_bitset.h:51\r\n#1  zend_t_usage (block=0x7fffe7f2a050, used_ext=used_ext@entry=0x7fffe7f39fe0, ctx=ctx@entry=0x7fffffffb9f0, op_array=0x7fffe7e6ce08, op_array=0x7fffe7e6ce08, op_array=0x7fffe7e6ce08)\r\n    at /root/php-src-php-7.0.0RC4/ext/opcache/Optimizer/block_pass.c:1819\r\n#2  0x00007fffe16c3802 in optimize_cfg (op_array=op_array@entry=0x7fffe7e6ce08, ctx=ctx@entry=0x7fffffffb9f0) at /root/php-src-php-7.0.0RC4/ext/opcache/Optimizer/block_pass.c:1982\r\n#3  0x00007fffe16bc17b in zend_optimize (ctx=0x7fffffffb9f0, op_array=0x7fffe7e6ce08) at /root/php-src-php-7.0.0RC4/ext/opcache/Optimizer/zend_optimizer.c:471\r\n#4  zend_accel_optimize (op_array=op_array@entry=0x7fffe7e6ce08, ctx=ctx@entry=0x7fffffffb9f0) at /root/php-src-php-7.0.0RC4/ext/opcache/Optimizer/zend_optimizer.c:543\r\n#5  0x00007fffe16bcf03 in zend_accel_script_optimize (script=script@entry=0x7fffe7e6ce00) at /root/php-src-php-7.0.0RC4/ext/opcache/Optimizer/zend_optimizer.c:620\r\n#6  0x00007fffe16adae5 in cache_script_in_shared_memory (from_shared_memory=<synthetic pointer>, key_length=92,\r\n    key=0x7fffe7e59118 \"/var/www/venus_4.0/cache/developdevelopmaster/inotify_daemon/gseleven/web_TEST_mergeconf.inc\", new_persistent_script=0x7fffe7e6ce00)\r\n    at /root/php-src-php-7.0.0RC4/ext/opcache/ZendAccelerator.c:1213\r\n#7  persistent_compile_file (file_handle=<optimized out>, type=2) at /root/php-src-php-7.0.0RC4/ext/opcache/ZendAccelerator.c:1783\r\n#8  0x00007fffeb160765 in ZEND_INCLUDE_OR_EVAL_SPEC_CV_HANDLER () at /root/php-src-php-7.0.0RC4/Zend/zend_vm_execute.h:29148\r\n#9  0x00007fffeb11b44b in execute_ex (ex=<optimized out>) at /root/php-src-php-7.0.0RC4/Zend/zend_vm_execute.h:414\r\n#10 0x00007fffeb1647b7 in zend_execute (op_array=0x7fffe7e76000, op_array@entry=0x7fffcdabebb8, return_value=return_value@entry=0x7fffe7e12700) at /root/php-src-php-7.0.0RC4/Zend/zend_vm_execute.h:458\r\n#11 0x00007fffeb0e04f4 in zend_execute_scripts (type=type@entry=8, retval=0x7fffe7e12700, retval@entry=0x0, file_count=file_count@entry=3) at /root/php-src-php-7.0.0RC4/Zend/zend.c:1428\r\n#12 0x00007fffeb085470 in php_execute_script (primary_file=primary_file@entry=0x7fffffffdf30) at /root/php-src-php-7.0.0RC4/main/main.c:2471\r\n#13 0x00007fffeb1660a2 in php_handler (r=<optimized out>) at /root/php-src-php-7.0.0RC4/sapi/apache2handler/sapi_apache2.c:678\r\n#14 0x0000555555593150 in ap_run_handler ()\r\n#15 0x0000555555593699 in ap_invoke_handler ()\r\n#16 0x00005555555a7a1a in ap_process_async_request ()\r\n#17 0x00005555555a7cf4 in ap_process_request ()\r\n#18 0x00005555555a4682 in ap_process_http_connection ()\r\n#19 0x000055555559c720 in ap_run_process_connection ()\r\n#20 0x00007fffeda1980f in child_main () from /etc/httpd/modules/mod_mpm_prefork.so\r\n#21 0x00007fffeda19a0c in make_child () from /etc/httpd/modules/mod_mpm_prefork.so\r\n#22 0x00007fffeda1a791 in prefork_run () from /etc/httpd/modules/mod_mpm_prefork.so\r\n#23 0x000055555557950e in ap_run_mpm ()\r\n#24 0x0000555555572b36 in main ()\r\n```\r\n\r\nMaybe this is a php7 core problem but I have no idea, so I ask here first.\r\n\r\nHere is the opcache setting\r\n```\r\nzend_extension=/usr/lib64/php/modules/opcache.so\r\nopcache.enable=1\r\nopcache.memory_consumption=128\r\nopcache.interned_strings_buffer=8\r\nopcache.max_accelerated_files=4000\r\nopcache.fast_shutdown=1\r\nopcache.blacklist_filename=/etc/php.d/opcache*.blacklist\r\n```\r\n\r\nSome extra info:\r\n* CentOS Linux release 7.1.1503\r\n* Apache/2.4.6\r\n* PHP 7.0.0RC4\r\n* Zend OPcache v7.0.6-dev\r\n\r\nThis is a very major issue to me so hope this help."},"comment":{"url":"https://api.github.com/repos/zendtech/ZendOptimizerPlus/issues/comments/144689510","html_url":"https://github.com/zendtech/ZendOptimizerPlus/issues/219#issuecomment-144689510","issue_url":"https://api.github.com/repos/zendtech/ZendOptimizerPlus/issues/219","id":144689510,"user":{"login":"dstogov","id":2510034,"avatar_url":"https://avatars.githubusercontent.com/u/2510034?v=3","gravatar_id":"","url":"https://api.github.com/users/dstogov","html_url":"https://github.com/dstogov","followers_url":"https://api.github.com/users/dstogov/followers","following_url":"https://api.github.com/users/dstogov/following{/other_user}","gists_url":"https://api.github.com/users/dstogov/gists{/gist_id}","starred_url":"https://api.github.com/users/dstogov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dstogov/subscriptions","organizations_url":"https://api.github.com/users/dstogov/orgs","repos_url":"https://api.github.com/users/dstogov/repos","events_url":"https://api.github.com/users/dstogov/events{/privacy}","received_events_url":"https://api.github.com/users/dstogov/received_events","type":"User","site_admin":false},"created_at":"2015-10-01T10:31:45Z","updated_at":"2015-10-01T10:31:45Z","body":"Not yet, I forgot star, sorry.\r\n(gdb) print (char*)op_array.filename->val\r\n(gdb) print (char*)op_array.function_name.val\r\nThen I need the source of that function.\r\nyou may email it directly to <dmitry at zend dot com>\r\n\r\n"}}