Bug #75744 [Opn]: Sporadic crashes when opcache enabled
| From: | nikic@php.net | Date: | Fri, 29 Dec 2017 17:52:19 +0000 |
| Subject: | Bug #75744 [Opn]: Sporadic crashes when opcache enabled | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-213321@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75744&edit=1
ID: 75744
Updated by: nikic@php.net
Reported by: kochuev at gmail dot com
Summary: Sporadic crashes when opcache enabled
Status: Open
Type: Bug
Package: opcache
Operating System: Oracle Linux
PHP Version: 7.0.26
Block user comment: N
Private report: N
New Comment:
Not seeing anything obvious in these traces. They do not look like something triggered by
protect_memory, so it's probably no simple SHM corruption.
Could it be that you are using a ZTS build of PHP?
Another thing that might or might not work is to run PHP under valgrind (using USE_ZEND_ALLOC=0
ZEND_DONT_UNLOAD_MODULES=1 valgrind php [args]) and see if this produces reliable memory errors.
Previous Comments:
------------------------------------------------------------------------
[2017-12-29 15:07:31] kochuev at gmail dot com
More crashes with opcache.fast_shutdown=0 + opcache.protect_memory=1
Program terminated with signal 11, Segmentation fault.
#0 _zval_dtor_func (p=0x600000001) at /usr/src/debug/php-7.0.25/Zend/zend_variables.c:33
33 if (--GC_REFCOUNT(p)) {
#0 _zval_dtor_func (p=0x600000001) at /usr/src/debug/php-7.0.25/Zend/zend_variables.c:33
#1 0x00005642fb1064f5 in _zval_dtor (zvalue=0x7f0d8de7f660, zvalue=0x7f0d8de7f660) at
/usr/src/debug/php-7.0.25/Zend/zend_variables.h:44
#2 free_zend_constant (zv=<optimized out>) at
/usr/src/debug/php-7.0.25/Zend/zend_constants.c:36
#3 0x00005642fb12af85 in _zend_hash_del_el_ex (prev=<optimized out>, p=<optimized out>,
idx=<optimized out>, ht=<optimized out>) at
/usr/src/debug/php-7.0.25/Zend/zend_hash.c:1025
#4 _zend_hash_del_el (p=0x7f0d92b6b710, idx=2872, ht=0x5642fd0835a0) at
/usr/src/debug/php-7.0.25/Zend/zend_hash.c:1049
#5 zend_hash_reverse_apply (ht=0x5642fd0835a0, apply_func=apply_func@entry=0x5642fb106440
<clean_non_persistent_constant>) at /usr/src/debug/php-7.0.25/Zend/zend_hash.c:1631
#6 0x00005642fb1067c3 in clean_non_persistent_constants () at
/usr/src/debug/php-7.0.25/Zend/zend_constants.c:161
#7 0x00005642fb1087a5 in shutdown_executor () at
/usr/src/debug/php-7.0.25/Zend/zend_execute_API.c:347
#8 0x00005642fb118598 in zend_deactivate () at /usr/src/debug/php-7.0.25/Zend/zend.c:985
#9 0x00005642fb0b7411 in php_request_shutdown (dummy=dummy@entry=0x0) at
/usr/src/debug/php-7.0.25/main/main.c:1856
#10 0x00005642faf57cde in main (argc=<optimized out>, argv=<optimized out>) at
/usr/src/debug/php-7.0.25/sapi/fpm/fpm/fpm_main.c:1995
---
Program terminated with signal 11, Segmentation fault.
#0 php_stream_notification_free (notifier=0xffffffff) at
/usr/src/debug/php-7.0.25/main/streams/streams.c:2211
2211 if (notifier->dtor) {
#0 php_stream_notification_free (notifier=0xffffffff) at
/usr/src/debug/php-7.0.25/main/streams/streams.c:2211
#1 0x00005642fb0d2227 in php_stream_context_free (context=0x7f0d8de7db40) at
/usr/src/debug/php-7.0.25/main/streams/streams.c:2186
#2 0x00005642fb12d5d1 in zend_resource_dtor (res=<optimized out>) at
/usr/src/debug/php-7.0.25/Zend/zend_list.c:76
#3 0x00005642fb12d623 in zend_close_rsrc (zv=<optimized out>) at
/usr/src/debug/php-7.0.25/Zend/zend_list.c:230
#4 0x00005642fb12aeb2 in zend_hash_reverse_apply (ht=0x5642fb518558 <executor_globals+536>,
apply_func=apply_func@entry=0x5642fb12d610 <zend_close_rsrc>) at
/usr/src/debug/php-7.0.25/Zend/zend_hash.c:1628
#5 0x00005642fb12dc0c in zend_close_rsrc_list (ht=<optimized out>) at
/usr/src/debug/php-7.0.25/Zend/zend_list.c:238
#6 0x00005642fb108793 in shutdown_executor () at
/usr/src/debug/php-7.0.25/Zend/zend_execute_API.c:351
#7 0x00005642fb118598 in zend_deactivate () at /usr/src/debug/php-7.0.25/Zend/zend.c:985
#8 0x00005642fb0b7411 in php_request_shutdown (dummy=dummy@entry=0x0) at
/usr/src/debug/php-7.0.25/main/main.c:1856
#9 0x00005642faf57cde in main (argc=<optimized out>, argv=<optimized out>) at
/usr/src/debug/php-7.0.25/sapi/fpm/fpm/fpm_main.c:1995
---
Program terminated with signal 11, Segmentation fault.
#0 zend_object_std_dtor (object=0x7f0d8de80b60) at /usr/src/debug/php-7.0.25/Zend/zend_objects.c:59
59 if (EXPECTED(!(GC_FLAGS(object->properties) & IS_ARRAY_IMMUTABLE))) {
#0 zend_object_std_dtor (object=0x7f0d8de80b60) at /usr/src/debug/php-7.0.25/Zend/zend_objects.c:59
#1 0x00005642fb153c11 in zend_objects_store_del (object=0x7f0d8de80b60) at
/usr/src/debug/php-7.0.25/Zend/zend_objects_API.c:178
#2 0x00005642fb129bc7 in i_zval_ptr_dtor (zval_ptr=0x7f0d8de97568) at
/usr/src/debug/php-7.0.25/Zend/zend_variables.h:58
#3 zend_array_destroy (ht=0x7f0d8de801f8) at /usr/src/debug/php-7.0.25/Zend/zend_hash.c:1334
#4 0x00005642fb14eed4 in i_zval_ptr_dtor (zval_ptr=0x7f0d8de81108) at
/usr/src/debug/php-7.0.25/Zend/zend_variables.h:58
#5 zend_object_std_dtor (object=0x7f0d8de810c0) at /usr/src/debug/php-7.0.25/Zend/zend_objects.c:69
#6 0x00005642fb153c11 in zend_objects_store_del (object=0x7f0d8de810c0) at
/usr/src/debug/php-7.0.25/Zend/zend_objects_API.c:178
#7 0x00005642fb10c140 in i_zval_ptr_dtor (zval_ptr=0x7f0d8de696a0) at
/usr/src/debug/php-7.0.25/Zend/zend_variables.h:58
#8 zend_cleanup_user_class_data (ce=0x7f0d8de0a800) at
/usr/src/debug/php-7.0.25/Zend/zend_opcode.c:167
#9 0x00005642fb108415 in shutdown_executor () at
/usr/src/debug/php-7.0.25/Zend/zend_execute_API.c:336
#10 0x00005642fb118598 in zend_deactivate () at /usr/src/debug/php-7.0.25/Zend/zend.c:985
#11 0x00005642fb0b7411 in php_request_shutdown (dummy=dummy@entry=0x0) at
/usr/src/debug/php-7.0.25/main/main.c:1856
#12 0x00005642faf57cde in main (argc=<optimized out>, argv=<optimized out>) at
/usr/src/debug/php-7.0.25/sapi/fpm/fpm/fpm_main.c:1995
---
Program terminated with signal 11, Segmentation fault.
#0 0xfffffff80000001a in ?? ()
#0 0xfffffff80000001a in ?? ()
#1 0x00005642fb129a4d in zend_hash_destroy (ht=0x7f0d8de7eab8) at
/usr/src/debug/php-7.0.25/Zend/zend_hash.c:1264
#2 0x00005642fb129d19 in zend_array_destroy (ht=0x7f0d8de7eab8) at
/usr/src/debug/php-7.0.25/Zend/zend_hash.c:1324
#3 0x00005642fb129c98 in i_zval_ptr_dtor (zval_ptr=0x7f0d8de6ef60) at
/usr/src/debug/php-7.0.25/Zend/zend_variables.h:58
#4 zend_array_destroy (ht=0x7f0d8de7e150) at /usr/src/debug/php-7.0.25/Zend/zend_hash.c:1338
#5 0x00005642fb14eed4 in i_zval_ptr_dtor (zval_ptr=0x7f0d8de7f118) at
/usr/src/debug/php-7.0.25/Zend/zend_variables.h:58
#6 zend_object_std_dtor (object=0x7f0d8de7f0c0) at /usr/src/debug/php-7.0.25/Zend/zend_objects.c:69
#7 0x00005642fb153c11 in zend_objects_store_del (object=0x7f0d8de7f0c0) at
/usr/src/debug/php-7.0.25/Zend/zend_objects_API.c:178
#8 0x00005642fb10c140 in i_zval_ptr_dtor (zval_ptr=0x7f0d8de6c6a0) at
/usr/src/debug/php-7.0.25/Zend/zend_variables.h:58
#9 zend_cleanup_user_class_data (ce=0x7f0d8de0a800) at
/usr/src/debug/php-7.0.25/Zend/zend_opcode.c:167
#10 0x00005642fb108415 in shutdown_executor () at
/usr/src/debug/php-7.0.25/Zend/zend_execute_API.c:336
#11 0x00005642fb118598 in zend_deactivate () at /usr/src/debug/php-7.0.25/Zend/zend.c:985
#12 0x00005642fb0b7411 in php_request_shutdown (dummy=dummy@entry=0x0) at
/usr/src/debug/php-7.0.25/main/main.c:1856
#13 0x00005642faf57cde in main (argc=<optimized out>, argv=<optimized out>) at
/usr/src/debug/php-7.0.25/sapi/fpm/fpm/fpm_main.c:1995
---
Program terminated with signal 11, Segmentation fault.
#0 0xfffffff80000001a in ?? ()
#0 0xfffffff80000001a in ?? ()
#1 0x00005642fb129a4d in zend_hash_destroy (ht=0x7f0d8de80ab8) at
/usr/src/debug/php-7.0.25/Zend/zend_hash.c:1264
#2 0x00005642fb129d19 in zend_array_destroy (ht=0x7f0d8de80ab8) at
/usr/src/debug/php-7.0.25/Zend/zend_hash.c:1324
#3 0x00005642fb129c98 in i_zval_ptr_dtor (zval_ptr=0x7f0d8de6bf60) at
/usr/src/debug/php-7.0.25/Zend/zend_variables.h:58
#4 zend_array_destroy (ht=0x7f0d8de80150) at /usr/src/debug/php-7.0.25/Zend/zend_hash.c:1338
#5 0x00005642fb14eed4 in i_zval_ptr_dtor (zval_ptr=0x7f0d8de81118) at
/usr/src/debug/php-7.0.25/Zend/zend_variables.h:58
#6 zend_object_std_dtor (object=0x7f0d8de810c0) at /usr/src/debug/php-7.0.25/Zend/zend_objects.c:69
#7 0x00005642fb153c11 in zend_objects_store_del (object=0x7f0d8de810c0) at
/usr/src/debug/php-7.0.25/Zend/zend_objects_API.c:178
#8 0x00005642fb10c140 in i_zval_ptr_dtor (zval_ptr=0x7f0d8de696a0) at
/usr/src/debug/php-7.0.25/Zend/zend_variables.h:58
#9 zend_cleanup_user_class_data (ce=0x7f0d8de0a800) at
/usr/src/debug/php-7.0.25/Zend/zend_opcode.c:167
#10 0x00005642fb108415 in shutdown_executor () at
/usr/src/debug/php-7.0.25/Zend/zend_execute_API.c:336
#11 0x00005642fb118598 in zend_deactivate () at /usr/src/debug/php-7.0.25/Zend/zend.c:985
#12 0x00005642fb0b7411 in php_request_shutdown (dummy=dummy@entry=0x0) at
/usr/src/debug/php-7.0.25/main/main.c:1856
#13 0x00005642faf57cde in main (argc=<optimized out>, argv=<optimized out>) at
/usr/src/debug/php-7.0.25/sapi/fpm/fpm/fpm_main.c:1995
---
Program terminated with signal 11, Segmentation fault.
#0 0xfffffff80000001a in ?? ()
#0 0xfffffff80000001a in ?? ()
#1 0x00005642fb129a4d in zend_hash_destroy (ht=0x7f0d8de80ab8) at
/usr/src/debug/php-7.0.25/Zend/zend_hash.c:1264
#2 0x00005642fb129d19 in zend_array_destroy (ht=0x7f0d8de80ab8) at
/usr/src/debug/php-7.0.25/Zend/zend_hash.c:1324
#3 0x00005642fb129c98 in i_zval_ptr_dtor (zval_ptr=0x7f0d8de6bf60) at
/usr/src/debug/php-7.0.25/Zend/zend_variables.h:58
#4 zend_array_destroy (ht=0x7f0d8de80150) at /usr/src/debug/php-7.0.25/Zend/zend_hash.c:1338
#5 0x00005642fb14eed4 in i_zval_ptr_dtor (zval_ptr=0x7f0d8de81118) at
/usr/src/debug/php-7.0.25/Zend/zend_variables.h:58
#6 zend_object_std_dtor (object=0x7f0d8de810c0) at /usr/src/debug/php-7.0.25/Zend/zend_objects.c:69
#7 0x00005642fb153c11 in zend_objects_store_del (object=0x7f0d8de810c0) at
/usr/src/debug/php-7.0.25/Zend/zend_objects_API.c:178
#8 0x00005642fb10c140 in i_zval_ptr_dtor (zval_ptr=0x7f0d8de696a0) at
/usr/src/debug/php-7.0.25/Zend/zend_variables.h:58
#9 zend_cleanup_user_class_data (ce=0x7f0d8de0a800) at
/usr/src/debug/php-7.0.25/Zend/zend_opcode.c:167
#10 0x00005642fb108415 in shutdown_executor () at
/usr/src/debug/php-7.0.25/Zend/zend_execute_API.c:336
#11 0x00005642fb118598 in zend_deactivate () at /usr/src/debug/php-7.0.25/Zend/zend.c:985
#12 0x00005642fb0b7411 in php_request_shutdown (dummy=dummy@entry=0x0) at
/usr/src/debug/php-7.0.25/main/main.c:1856
#13 0x00005642faf57cde in main (argc=<optimized out>, argv=<optimized out>) at
/usr/src/debug/php-7.0.25/sapi/fpm/fpm/fpm_main.c:1995
---
Program terminated with signal 11, Segmentation fault.
#0 zend_string_release (s=0x6) at /usr/src/debug/php-7.0.25/Zend/zend_string.h:269
269 if (!ZSTR_IS_INTERNED(s)) {
#0 zend_string_release (s=0x6) at /usr/src/debug/php-7.0.25/Zend/zend_string.h:269
#1 free_zend_constant (zv=<optimized out>) at
/usr/src/debug/php-7.0.25/Zend/zend_constants.c:41
#2 0x00005642fb12af85 in _zend_hash_del_el_ex (prev=<optimized out>, p=<optimized out>,
idx=<optimized out>, ht=<optimized out>) at
/usr/src/debug/php-7.0.25/Zend/zend_hash.c:1025
#3 _zend_hash_del_el (p=0x7f0d92b6c650, idx=2994, ht=0x5642fd0835a0) at
/usr/src/debug/php-7.0.25/Zend/zend_hash.c:1049
#4 zend_hash_reverse_apply (ht=0x5642fd0835a0, apply_func=apply_func@entry=0x5642fb106440
<clean_non_persistent_constant>) at /usr/src/debug/php-7.0.25/Zend/zend_hash.c:1631
#5 0x00005642fb1067c3 in clean_non_persistent_constants () at
/usr/src/debug/php-7.0.25/Zend/zend_constants.c:161
#6 0x00005642fb1087a5 in shutdown_executor () at
/usr/src/debug/php-7.0.25/Zend/zend_execute_API.c:347
#7 0x00005642fb118598 in zend_deactivate () at /usr/src/debug/php-7.0.25/Zend/zend.c:985
#8 0x00005642fb0b7411 in php_request_shutdown (dummy=dummy@entry=0x0) at
/usr/src/debug/php-7.0.25/main/main.c:1856
#9 0x00005642faf57cde in main (argc=<optimized out>, argv=<optimized out>) at
/usr/src/debug/php-7.0.25/sapi/fpm/fpm/fpm_main.c:1995
---
Program terminated with signal 11, Segmentation fault.
#0 0x0000001500000001 in ?? ()
#0 0x0000001500000001 in ?? ()
#1 0x00005642fb1100d5 in _zval_get_string_func (op=op@entry=0x7f0d8de130d0) at
/usr/src/debug/php-7.0.25/Zend/zend_operators.c:857
#2 0x00005642fb169d65 in ZEND_FAST_CONCAT_SPEC_TMPVAR_CONST_HANDLER () at
/usr/src/debug/php-7.0.25/Zend/zend_vm_execute.h:42227
#3 0x00005642fb1579eb in execute_ex (ex=<optimized out>) at
/usr/src/debug/php-7.0.25/Zend/zend_vm_execute.h:414
#4 0x00005642fb1a220f in zend_execute (op_array=0x7f0d8de5e0e0, op_array@entry=0x7f0d1ae06b68,
return_value=return_value@entry=0x7f0d8de13030) at
/usr/src/debug/php-7.0.25/Zend/zend_vm_execute.h:458
#5 0x00005642fb1188f3 in zend_execute_scripts (type=type@entry=8, retval=0x7f0d8de13030,
retval@entry=0x0, file_count=file_count@entry=3) at /usr/src/debug/php-7.0.25/Zend/zend.c:1445
#6 0x00005642fb0b88a8 in php_execute_script (primary_file=primary_file@entry=0x7ffdb36cbfc0) at
/usr/src/debug/php-7.0.25/main/main.c:2518
#7 0x00005642faf57c74 in main (argc=<optimized out>, argv=<optimized out>) at
/usr/src/debug/php-7.0.25/sapi/fpm/fpm/fpm_main.c:1967
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=75744
--
Edit this bug report at https://bugs.php.net/bug.php?id=75744&edit=1