php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70023 PHP SegFaults when optimization pass 1 is enabled
Submitted: 2015-07-08 14:15 UTC Modified: 2015-07-31 14:12 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: FractalizeR at yandex dot ru Assigned:
Status: Open Package: opcache
PHP Version: 5.6.10 OS: CentOS 7
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: FractalizeR at yandex dot ru
New email:
PHP Version: OS:

 

 [2015-07-08 14:15 UTC] FractalizeR at yandex dot ru
Description:
------------
When at least optimization pass 1 (bit 0 of opcache.optimization_level) is enabled in Zend Optimizer, PHP 5.6.10 segfaults on some yet unknown piece of my PHP code with the following backtrace. I still cannot locate the responsible piece of my code, which leads to crash (I use Laravel framework and project codebase is not small).

Is there any way to figure out PHP script backtrace when segfault happened?

Segfault seem to happen only when I run several requests to the same page in parallel (at least two) because php segfaults only with "ab -n 120 -c 2" and DOES NOT segfault with "ab -n 120 -c 1".

PHP distribution belongs to REMI repository.

[vagrant@localhost ~]$ sudo gdb /usr/sbin/php-fpm /var/lib/coredumps/core-php-fpm-sig11-user1001-group1001-pid6209-time1436363572
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-64.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/sbin/php-fpm...Reading symbols from /usr/lib/debug/usr/sbin/php-fpm.debug...done.
done.
[New LWP 6209]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `php-fpm: pool exchange         '.
Program terminated with signal 11, Segmentation fault.
#0  gc_remove_from_buffer (root=0x4) at /usr/src/debug/php-5.6.10/Zend/zend_gc.h:189
189		root->next->prev = root->prev;
(gdb) bt
#0  gc_remove_from_buffer (root=0x4) at /usr/src/debug/php-5.6.10/Zend/zend_gc.h:189
#1  gc_remove_zval_from_buffer (zv=zv@entry=0x7fdc931c37b0) at /usr/src/debug/php-5.6.10/Zend/zend_gc.c:260
#2  0x00007fdcba4d40f8 in i_zval_ptr_dtor (zval_ptr=0x7fdc931c37b0) at /usr/src/debug/php-5.6.10/Zend/zend_execute.h:78
#3  _zval_ptr_dtor (zval_ptr=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_execute_API.c:424
#4  0x00007fdcba4f3c18 in zend_hash_destroy (ht=0x7fdcbc734400) at /usr/src/debug/php-5.6.10/Zend/zend_hash.c:548
#5  0x00007fdcba4e43e3 in _zval_dtor_func (zvalue=0x7fdcbc729ff8) at /usr/src/debug/php-5.6.10/Zend/zend_variables.c:45
#6  0x00007fdcba58df78 in _zval_dtor (zvalue=0x7fdcbc729ff8) at /usr/src/debug/php-5.6.10/Zend/zend_variables.h:35
#7  i_zval_ptr_dtor (zval_ptr=0x7fdcbc729ff8) at /usr/src/debug/php-5.6.10/Zend/zend_execute.h:79
#8  zend_vm_stack_clear_multiple (nested=0) at /usr/src/debug/php-5.6.10/Zend/zend_execute.h:308
#9  zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:650
#10 0x00007fdcba522168 in execute_ex (execute_data=0x7fdcba253c68) at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:363
#11 0x00007fdcba4d3e79 in dtrace_execute_ex (execute_data=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:73
#12 0x00007fdcba4d5c63 in zend_call_function (fci=fci@entry=0x7ffff8ce45c0, fci_cache=<optimized out>, fci_cache@entry=0x7ffff8ce4590)
    at /usr/src/debug/php-5.6.10/Zend/zend_execute_API.c:829
#13 0x00007fdcba41fff3 in zif_call_user_func_array (ht=<optimized out>, return_value=0x7fdcbc734210, 
    return_value_ptr=<optimized out>, this_ptr=<optimized out>, return_value_used=<optimized out>)
    at /usr/src/debug/php-5.6.10/ext/standard/basic_functions.c:4784
#14 0x00007fdcba4d3f9b in dtrace_execute_internal (execute_data_ptr=<optimized out>, fci=<optimized out>, 
    return_value_used=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:97
#15 0x00007fdcba58df58 in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>)
    at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:560
#16 0x00007fdcba522168 in execute_ex (execute_data=0x7fdcba253ac0) at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:363
#17 0x00007fdcba4d3e79 in dtrace_execute_ex (execute_data=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:73
#18 0x00007fdcba58e409 in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>)
    at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:592
#19 0x00007fdcba522168 in execute_ex (execute_data=0x7fdcba253980) at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:363
#20 0x00007fdcba4d3e79 in dtrace_execute_ex (execute_data=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:73
#21 0x00007fdcba58e409 in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>)
    at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:592
#22 0x00007fdcba522168 in execute_ex (execute_data=0x7fdcba253810) at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:363
#23 0x00007fdcba4d3e79 in dtrace_execute_ex (execute_data=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:73
#24 0x00007fdcba4d5c63 in zend_call_function (fci=fci@entry=0x7ffff8ce4c80, fci_cache=<optimized out>, fci_cache@entry=0x7ffff8ce4c50)
    at /usr/src/debug/php-5.6.10/Zend/zend_execute_API.c:829
#25 0x00007fdcba41feaa in zif_call_user_func (ht=<optimized out>, return_value=0x7fdcbc734458, return_value_ptr=<optimized out>, 
    this_ptr=<optimized out>, return_value_used=<optimized out>) at /usr/src/debug/php-5.6.10/ext/standard/basic_functions.c:4759
#26 0x00007fdcba4d3f9b in dtrace_execute_internal (execute_data_ptr=<optimized out>, fci=<optimized out>, 
    return_value_used=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:97
#27 0x00007fdcba58df58 in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>)

    at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:560
#28 0x00007fdcba522168 in execute_ex (execute_data=0x7fdcba2536e0) at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:363
#29 0x00007fdcba4d3e79 in dtrace_execute_ex (execute_data=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:73
#30 0x00007fdcba4d5c63 in zend_call_function (fci=fci@entry=0x7ffff8ce5040, fci_cache=<optimized out>, fci_cache@entry=0x7ffff8ce5010)
    at /usr/src/debug/php-5.6.10/Zend/zend_execute_API.c:829
#31 0x00007fdcba41feaa in zif_call_user_func (ht=<optimized out>, return_value=0x7fdcbc7345a8, return_value_ptr=<optimized out>, 
    this_ptr=<optimized out>, return_value_used=<optimized out>) at /usr/src/debug/php-5.6.10/ext/standard/basic_functions.c:4759
#32 0x00007fdcba4d3f9b in dtrace_execute_internal (execute_data_ptr=<optimized out>, fci=<optimized out>, 
    return_value_used=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:97
#33 0x00007fdcba58df58 in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>)
    at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:560
#34 0x00007fdcba522168 in execute_ex (execute_data=0x7fdcba253560) at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:363
#35 0x00007fdcba4d3e79 in dtrace_execute_ex (execute_data=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:73
#36 0x00007fdcba58e409 in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>)
    at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:592
#37 0x00007fdcba522168 in execute_ex (execute_data=0x7fdcba253408) at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:363
#38 0x00007fdcba4d3e79 in dtrace_execute_ex (execute_data=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:73
#39 0x00007fdcba58e409 in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>)
    at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:592
#40 0x00007fdcba522168 in execute_ex (execute_data=0x7fdcba253278) at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:363
#41 0x00007fdcba4d3e79 in dtrace_execute_ex (execute_data=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:73
#42 0x00007fdcba58e409 in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>)
    at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:592
#43 0x00007fdcba522168 in execute_ex (execute_data=0x7fdcba253118) at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:363
#44 0x00007fdcba4d3e79 in dtrace_execute_ex (execute_data=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:73
#45 0x00007fdcba58e409 in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>)
    at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:592
#46 0x00007fdcba522168 in execute_ex (execute_data=0x7fdcba252fe0) at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:363
#47 0x00007fdcba4d3e79 in dtrace_execute_ex (execute_data=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:73
#48 0x00007fdcba58e409 in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>)
    at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:592
#49 0x00007fdcba522168 in execute_ex (execute_data=0x7fdcba252e80) at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:363
#50 0x00007fdcba4d3e79 in dtrace_execute_ex (execute_data=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:73
#51 0x00007fdcba4d5c63 in zend_call_function (fci=fci@entry=0x7ffff8ce5b80, fci_cache=<optimized out>, fci_cache@entry=0x7ffff8ce5b50)
    at /usr/src/debug/php-5.6.10/Zend/zend_execute_API.c:829
#52 0x00007fdcba41feaa in zif_call_user_func (ht=<optimized out>, return_value=0x7fdcbc729f38, return_value_ptr=<optimized out>, 
    this_ptr=<optimized out>, return_value_used=<optimized out>) at /usr/src/debug/php-5.6.10/ext/standard/basic_functions.c:4759
#53 0x00007fdcba4d3f9b in dtrace_execute_internal (execute_data_ptr=<optimized out>, fci=<optimized out>, 

    return_value_used=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:97
#54 0x00007fdcba58df58 in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>)
    at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:560
#55 0x00007fdcba522168 in execute_ex (execute_data=0x7fdcba252d50) at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:363
#56 0x00007fdcba4d3e79 in dtrace_execute_ex (execute_data=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:73
#57 0x00007fdcba4d5c63 in zend_call_function (fci=fci@entry=0x7ffff8ce5f40, fci_cache=<optimized out>, fci_cache@entry=0x7ffff8ce5f10)
    at /usr/src/debug/php-5.6.10/Zend/zend_execute_API.c:829
#58 0x00007fdcba41feaa in zif_call_user_func (ht=<optimized out>, return_value=0x7fdcbc729ed8, return_value_ptr=<optimized out>, 
    this_ptr=<optimized out>, return_value_used=<optimized out>) at /usr/src/debug/php-5.6.10/ext/standard/basic_functions.c:4759
#59 0x00007fdcba4d3f9b in dtrace_execute_internal (execute_data_ptr=<optimized out>, fci=<optimized out>, 
    return_value_used=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:97
#60 0x00007fdcba58df58 in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>)
    at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:560
#61 0x00007fdcba522168 in execute_ex (execute_data=0x7fdcba252bd0) at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:363
#62 0x00007fdcba4d3e79 in dtrace_execute_ex (execute_data=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:73
#63 0x00007fdcba58e409 in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>)
    at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:592
#64 0x00007fdcba522168 in execute_ex (execute_data=0x7fdcba252a98) at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:363
#65 0x00007fdcba4d3e79 in dtrace_execute_ex (execute_data=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:73
#66 0x00007fdcba58e409 in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>)
    at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:592
#67 0x00007fdcba522168 in execute_ex (execute_data=0x7fdcba252948) at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:363
#68 0x00007fdcba4d3e79 in dtrace_execute_ex (execute_data=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:73
#69 0x00007fdcba58e409 in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>)
    at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:592
#70 0x00007fdcba522168 in execute_ex (execute_data=0x7fdcba252830) at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:363
#71 0x00007fdcba4d3e79 in dtrace_execute_ex (execute_data=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:73
#72 0x00007fdcba58e409 in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>)
    at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:592
#73 0x00007fdcba522168 in execute_ex (execute_data=0x7fdcba252728) at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:363
#74 0x00007fdcba4d3e79 in dtrace_execute_ex (execute_data=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:73
#75 0x00007fdcba4d5c63 in zend_call_function (fci=fci@entry=0x7ffff8ce6900, fci_cache=<optimized out>, fci_cache@entry=0x7ffff8ce68d0)
    at /usr/src/debug/php-5.6.10/Zend/zend_execute_API.c:829
#76 0x00007fdcba41feaa in zif_call_user_func (ht=<optimized out>, return_value=0x7fdcbc6fca10, return_value_ptr=<optimized out>, 
    this_ptr=<optimized out>, return_value_used=<optimized out>) at /usr/src/debug/php-5.6.10/ext/standard/basic_functions.c:4759
#77 0x00007fdcba4d3f9b in dtrace_execute_internal (execute_data_ptr=<optimized out>, fci=<optimized out>, 
    return_value_used=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:97
#78 0x00007fdcba58df58 in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>)

    at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:560
#79 0x00007fdcba522168 in execute_ex (execute_data=0x7fdcba252618) at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:363
#80 0x00007fdcba4d3e79 in dtrace_execute_ex (execute_data=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:73
#81 0x00007fdcba58e409 in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>)
    at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:592
#82 0x00007fdcba522168 in execute_ex (execute_data=0x7fdcba252500) at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:363
#83 0x00007fdcba4d3e79 in dtrace_execute_ex (execute_data=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:73
#84 0x00007fdcba4d5c63 in zend_call_function (fci=fci@entry=0x7ffff8ce6e40, fci_cache=<optimized out>, fci_cache@entry=0x7ffff8ce6e10)
    at /usr/src/debug/php-5.6.10/Zend/zend_execute_API.c:829
#85 0x00007fdcba41fff3 in zif_call_user_func_array (ht=<optimized out>, return_value=0x7fdcbc6fbdf0, 
    return_value_ptr=<optimized out>, this_ptr=<optimized out>, return_value_used=<optimized out>)
    at /usr/src/debug/php-5.6.10/ext/standard/basic_functions.c:4784
#86 0x00007fdcba4d3f9b in dtrace_execute_internal (execute_data_ptr=<optimized out>, fci=<optimized out>, 
    return_value_used=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:97
#87 0x00007fdcba58df58 in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>)
    at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:560
#88 0x00007fdcba522168 in execute_ex (execute_data=0x7fdcba252398) at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:363
#89 0x00007fdcba4d3e79 in dtrace_execute_ex (execute_data=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:73
#90 0x00007fdcba58e409 in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>)
    at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:592
#91 0x00007fdcba522168 in execute_ex (execute_data=0x7fdcba252250) at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:363
#92 0x00007fdcba4d3e79 in dtrace_execute_ex (execute_data=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:73
#93 0x00007fdcba4d5c63 in zend_call_function (fci=fci@entry=0x7ffff8ce7380, fci_cache=<optimized out>, fci_cache@entry=0x7ffff8ce7350)
    at /usr/src/debug/php-5.6.10/Zend/zend_execute_API.c:829
#94 0x00007fdcba41fff3 in zif_call_user_func_array (ht=<optimized out>, return_value=0x7fdcbc6f9360, 
    return_value_ptr=<optimized out>, this_ptr=<optimized out>, return_value_used=<optimized out>)
    at /usr/src/debug/php-5.6.10/ext/standard/basic_functions.c:4784
#95 0x00007fdcba4d3f9b in dtrace_execute_internal (execute_data_ptr=<optimized out>, fci=<optimized out>, 
    return_value_used=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:97
#96 0x00007fdcba58df58 in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>)
    at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:560
#97 0x00007fdcba522168 in execute_ex (execute_data=0x7fdcba2520c8) at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:363
#98 0x00007fdcba4d3e79 in dtrace_execute_ex (execute_data=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:73
#99 0x00007fdcba58e409 in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>)
    at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:592
#100 0x00007fdcba522168 in execute_ex (execute_data=0x7fdcba251f68) at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:363
#101 0x00007fdcba4d3e79 in dtrace_execute_ex (execute_data=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:73
#102 0x00007fdcba58e409 in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>)

    at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:592
#103 0x00007fdcba522168 in execute_ex (execute_data=0x7fdcba251e48) at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:363
#104 0x00007fdcba4d3e79 in dtrace_execute_ex (execute_data=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:73
#105 0x00007fdcba4d5c63 in zend_call_function (fci=fci@entry=0x7ffff8ce7a40, fci_cache=<optimized out>, 
    fci_cache@entry=0x7ffff8ce7a10) at /usr/src/debug/php-5.6.10/Zend/zend_execute_API.c:829
#106 0x00007fdcba41fff3 in zif_call_user_func_array (ht=<optimized out>, return_value=0x7fdcbc6f9400, 
    return_value_ptr=<optimized out>, this_ptr=<optimized out>, return_value_used=<optimized out>)
    at /usr/src/debug/php-5.6.10/ext/standard/basic_functions.c:4784
#107 0x00007fdcba4d3f9b in dtrace_execute_internal (execute_data_ptr=<optimized out>, fci=<optimized out>, 
    return_value_used=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:97
#108 0x00007fdcba58df58 in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>)
    at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:560
#109 0x00007fdcba522168 in execute_ex (execute_data=0x7fdcba251ce0) at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:363
#110 0x00007fdcba4d3e79 in dtrace_execute_ex (execute_data=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:73
#111 0x00007fdcba58e409 in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>)
    at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:592
#112 0x00007fdcba522168 in execute_ex (execute_data=0x7fdcba251b88) at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:363
#113 0x00007fdcba4d3e79 in dtrace_execute_ex (execute_data=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:73
#114 0x00007fdcba4d5c63 in zend_call_function (fci=fci@entry=0x7ffff8ce7f80, fci_cache=<optimized out>, 
    fci_cache@entry=0x7ffff8ce7f50) at /usr/src/debug/php-5.6.10/Zend/zend_execute_API.c:829
#115 0x00007fdcba41fff3 in zif_call_user_func_array (ht=<optimized out>, return_value=0x7fdcbc6f7530, 
    return_value_ptr=<optimized out>, this_ptr=<optimized out>, return_value_used=<optimized out>)
    at /usr/src/debug/php-5.6.10/ext/standard/basic_functions.c:4784
#116 0x00007fdcba4d3f9b in dtrace_execute_internal (execute_data_ptr=<optimized out>, fci=<optimized out>, 
    return_value_used=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:97
#117 0x00007fdcba58df58 in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>)
    at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:560
#118 0x00007fdcba522168 in execute_ex (execute_data=0x7fdcba251a00) at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:363
#119 0x00007fdcba4d3e79 in dtrace_execute_ex (execute_data=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:73
#120 0x00007fdcba58e409 in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>)
    at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:592
#121 0x00007fdcba522168 in execute_ex (execute_data=0x7fdcba2518a8) at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:363
#122 0x00007fdcba4d3e79 in dtrace_execute_ex (execute_data=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:73
#123 0x00007fdcba4d5c63 in zend_call_function (fci=fci@entry=0x7ffff8ce84c0, fci_cache=<optimized out>, 
    fci_cache@entry=0x7ffff8ce8490) at /usr/src/debug/php-5.6.10/Zend/zend_execute_API.c:829
#124 0x00007fdcba41fff3 in zif_call_user_func_array (ht=<optimized out>, return_value=0x7fdcbc6aea30, 
    return_value_ptr=<optimized out>, this_ptr=<optimized out>, return_value_used=<optimized out>)
    at /usr/src/debug/php-5.6.10/ext/standard/basic_functions.c:4784

#125 0x00007fdcba4d3f9b in dtrace_execute_internal (execute_data_ptr=<optimized out>, fci=<optimized out>, 
    return_value_used=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:97
#126 0x00007fdcba58df58 in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>)
    at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:560
#127 0x00007fdcba522168 in execute_ex (execute_data=0x7fdcba251720) at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:363
#128 0x00007fdcba4d3e79 in dtrace_execute_ex (execute_data=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:73
#129 0x00007fdcba58e409 in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>)
    at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:592
#130 0x00007fdcba522168 in execute_ex (execute_data=0x7fdcba2515e8) at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:363
#131 0x00007fdcba4d3e79 in dtrace_execute_ex (execute_data=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:73
#132 0x00007fdcba4d5c63 in zend_call_function (fci=fci@entry=0x7ffff8ce8a00, fci_cache=<optimized out>, 
    fci_cache@entry=0x7ffff8ce89d0) at /usr/src/debug/php-5.6.10/Zend/zend_execute_API.c:829
#133 0x00007fdcba41fff3 in zif_call_user_func_array (ht=<optimized out>, return_value=0x7fdcbc6ae038, 
    return_value_ptr=<optimized out>, this_ptr=<optimized out>, return_value_used=<optimized out>)
    at /usr/src/debug/php-5.6.10/ext/standard/basic_functions.c:4784
#134 0x00007fdcba4d3f9b in dtrace_execute_internal (execute_data_ptr=<optimized out>, fci=<optimized out>, 
    return_value_used=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:97
#135 0x00007fdcba58df58 in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>)
    at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:560
#136 0x00007fdcba522168 in execute_ex (execute_data=0x7fdcba251460) at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:363
#137 0x00007fdcba4d3e79 in dtrace_execute_ex (execute_data=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:73
#138 0x00007fdcba4d5c63 in zend_call_function (fci=fci@entry=0x7ffff8ce8dc0, fci_cache=<optimized out>, 
    fci_cache@entry=0x7ffff8ce8d90) at /usr/src/debug/php-5.6.10/Zend/zend_execute_API.c:829
#139 0x00007fdcba41feaa in zif_call_user_func (ht=<optimized out>, return_value=0x7fdcbc6ac3c8, return_value_ptr=<optimized out>, 
    this_ptr=<optimized out>, return_value_used=<optimized out>) at /usr/src/debug/php-5.6.10/ext/standard/basic_functions.c:4759
#140 0x00007fdcba4d3f9b in dtrace_execute_internal (execute_data_ptr=<optimized out>, fci=<optimized out>, 
    return_value_used=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:97
#141 0x00007fdcba58df58 in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>)
    at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:560
#142 0x00007fdcba522168 in execute_ex (execute_data=0x7fdcba2512c0) at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:363
#143 0x00007fdcba4d3e79 in dtrace_execute_ex (execute_data=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:73
#144 0x00007fdcba58e409 in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>)
    at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:592
#145 0x00007fdcba522168 in execute_ex (execute_data=0x7fdcba251188) at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:363
#146 0x00007fdcba4d3e79 in dtrace_execute_ex (execute_data=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:73
#147 0x00007fdcba58e409 in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>)
    at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:592
#148 0x00007fdcba522168 in execute_ex (execute_data=0x7fdcba251040) at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:363

#149 0x00007fdcba4d3e79 in dtrace_execute_ex (execute_data=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:73
#150 0x00007fdcba58e409 in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>)
    at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:592
#151 0x00007fdcba522168 in execute_ex (execute_data=0x7fdcba250f08) at /usr/src/debug/php-5.6.10/Zend/zend_vm_execute.h:363
#152 0x00007fdcba4d3e79 in dtrace_execute_ex (execute_data=<optimized out>) at /usr/src/debug/php-5.6.10/Zend/zend_dtrace.c:73
#153 0x00007fdcba4e6f0b in zend_execute_scripts (type=type@entry=8, retval=retval@entry=0x0, file_count=file_count@entry=3)
    at /usr/src/debug/php-5.6.10/Zend/zend.c:1341
#154 0x00007fdcba482232 in php_execute_script (primary_file=primary_file@entry=0x7ffff8ceb970)
    at /usr/src/debug/php-5.6.10/main/main.c:2597
#155 0x00007fdcba365a4b in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/php-5.6.10/sapi/fpm/fpm/fpm_main.c:1964



PHP Modules: bcmath, bz2, calendar, Core, ctype, curl, date, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, intl, json, libxml, mbstring, mcrypt, mhash, openssl, pcntl, pcre, PDO, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, readline, Reflection, session, shmop, SimpleXML, sockets, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, Zend OPcache, zip, zlib


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-07-13 08:33 UTC] laruence@php.net
-Status: Open +Status: Feedback
 [2015-07-13 08:33 UTC] laruence@php.net
try:
gdb> source php-src/.gdbini
gdb> zbacktrace
 [2015-07-14 07:28 UTC] FractalizeR at yandex dot ru
-Status: Feedback +Status: Open
 [2015-07-14 07:28 UTC] FractalizeR at yandex dot ru
PHP stack trace shows very simple line as a last in the backtrace:

(gdb) source /home/vagrant/php-5.6.10/.gdbinit
(gdb) zbacktrace
[0x7f7ac2c33c68] getView() /var/www/exchange/src/UI/Controller/User/Order/OrderController.php:363 
[0x7fffe0efe170] FH\Exchange\UI\Controller\User\Order\OrderController->getView("26826", object[0x7f7ac5f3a620]) 
[0x7f7ac2c33ac0] call_user_func_array(array(2)[0x7f7ac5ee41a8], array(2)[0x7f7ac5ee1ae8]) /var/www/exchange/vendor/laravel/framework/src/Illuminate/Routing/Controller.php:256 
[0x7f7ac2c33980] Illuminate\Routing\Controller->callAction("getView", array(2)[0x7f7ac5f30900]) /var/www/exchange/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:164 

The line in question is:

$order = $this->orders->getOrder($orderId, self::DEPS_ORDER_VIEW);

$orders are declared as:

    /**
     * @var OrderServiceInterface
     */
    protected $orders;

and injected into controller constructor by Laravel using service container.

getOrder() is declared as

public function getOrder($orderId, array $include = [], $cacheTitle = '');

$cacheTitle parameter is unused in the code. Declaration is the same on the interface and on the class.

I have this crash both on my Vagrant dev environment and on production.
 [2015-07-14 07:29 UTC] FractalizeR at yandex dot ru
DEPS_ORDER_VIEW is an array of strings constant on the controller.
 [2015-07-31 14:12 UTC] FractalizeR at yandex dot ru
Is there anything else I can do to help track this bug?
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Fri Dec 04 14:01:23 2020 UTC