Open ryukoui opened 9 years ago
This looks like some problem in opcache optimizer. Can you check what file/function caused a crash and send it to me. (You'll need to print "(char_)oparray.filenam->val" and "(char)op_array.function_name.val" from the upper frame.
Thanks for your reply @dstogov
I am not sure I did the right operation and got the right value, because I am not familiar with gdb debug. This is my answer below.
(gdb) frame 1
#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)
at /root/php-src-php-7.0.0RC4/ext/opcache/Optimizer/block_pass.c:1819
1819 T_USAGE(opline->op1);
(gdb) print (char)op_array.filename->val
$1 = 24 '\030'
(gdb) print (char)op_array.function_name.val
$2 = 24 '\030'
Sorry about my bad english by the way. Hope this help.
Not yet, I forgot star, sorry.
(gdb) print (char_)oparray.filename->val
(gdb) print (char)op_array.function_name.val
Then I need the source of that function.
you may email it directly to
(gdb) print (char*)op_array.filename->val
(gdb) print (char*)op_array.function_name.val
You didn't forget the star, Markdown dropped it ;)
Thanks for your infomation @dstogov @nikic Now I know what I am doing.
I got the filename but no function_name instead of the message below.
$11 = 0x18 <Address 0x18 out of bounds>
There are no custom function in that file. That file is a configuration file which had been automatically generated by merge several files. There are only define functions and small logic like if statements.
I will email you @dstogov that file, but I cannot send you the original one. Because there are really critical infos about security inside, so I deleted those. But don't worry, this one will crash in the same way as the original one.
Hi, This is the file in question.
I really appreciate for your help.
2015-10-01 20:50 GMT+09:00 Nikita Popov notifications@github.com:
(gdb) print (char_)oparray.filename->val (gdb) print (char)op_array.function_name.val
You didn't forget the star, Markdown dropped it ;)
— Reply to this email directly or view it on GitHub https://github.com/zendtech/ZendOptimizerPlus/issues/219#issuecomment-144705328 .
I am testing PHP7 for my web applications. Some of them are worked fine.But one give me segfault.
Here is the backtrace below.
Maybe this is a php7 core problem but I have no idea, so I ask here first.
Here is the opcache setting
Some extra info:
This is a very major issue to me so hope this help.