php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #72580 Code coverage Segfault
Submitted: 2016-07-11 20:59 UTC Modified: 2016-08-10 15:22 UTC
Votes:3
Avg. Score:3.7 ± 0.9
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (50.0%)
From: maf dot michal at gmail dot com Assigned:
Status: Duplicate Package: Xdebug
PHP Version: 7.0Git-2016-07-11 (snap) OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
42 - 35 = ?
Subscribe to this entry?

 
 [2016-07-11 20:59 UTC] maf dot michal at gmail dot com
Description:
------------
Segmentation fault wile generating code coverage.

Probably corrupt opa->function_name pointer. Problem might be zend engine related.

ext/xdebug/xdebug_code_coverage.c:812

backtrace:

#0  __strcmp_sse2_unaligned () at ../sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S:31
No locals.
#1  0x00007fe0d44d328f in xdebug_build_fname_from_oparray (tmp=0x7ffecf6dc720, opa=0x7fe0d3be2500) at /home/majkel/.phpbrew/build/php-7.0.8/ext/xdebug/xdebug_code_coverage.c:812
        closure = 0
#2  0x00007fe0d44d39d2 in xdebug_code_coverage_end_of_function (op_array=0x7fe0d3be2500) at /home/majkel/.phpbrew/build/php-7.0.8/ext/xdebug/xdebug_code_coverage.c:993
        str = {l = 0, a = 0, d = 0x0}
        path = 0x298ecd0
        file = 0x7fe0d3d86bd8 "\""
        func_info = {class = 0x0, function = 0x0, type = 0, internal = 0}
        function_name = 0xed44d382d <error: Cannot access memory at address 0xed44d382d>
#3  0x00007fe0d44cded1 in xdebug_execute_ex (execute_data=0x7fe0d5219050) at /home/majkel/.phpbrew/build/php-7.0.8/ext/xdebug/xdebug.c:1895
        op_array = 0x7fe0d3be2500
        edata = 0x7fe0d5218dd0
        dummy = 0x7fe0d44d29a1 <xdebug_count_line+300>
        fse = 0x298f240
        xfse = 0x2946df0
        magic_cookie = 0x0
        do_return = 0
        function_nr = 380567
        le = 0x0
#4  0x0000000000a490f3 in ZEND_DO_FCALL_SPEC_HANDLER () at /home/majkel/.phpbrew/build/php-7.0.8/Zend/zend_vm_execute.h:800
        call = 0x7fe0d5219050
        fbc = 0x7fe0d3be2500
        object = 0x3c00a4ae09
        ret = 0x7fe0d5218ef0
        __PRETTY_FUNCTION__ = "ZEND_DO_FCALL_SPEC_HANDLER"
#5  0x0000000000a4b9bc in ZEND_USER_OPCODE_SPEC_HANDLER () at /home/majkel/.phpbrew/build/php-7.0.8/Zend/zend_vm_execute.h:1568
        ret = 2
#6  0x0000000000a4810d in execute_ex (ex=0x7fe0d5218dd0) at /home/majkel/.phpbrew/build/php-7.0.8/Zend/zend_vm_execute.h:414
        orig_opline = 0x7fe0d53fd6c0
        orig_execute_data = 0x7fe0d5218850
#7  0x00007fe0d44cdea1 in xdebug_execute_ex (execute_data=0x7fe0d5218dd0) at /home/majkel/.phpbrew/build/php-7.0.8/ext/xdebug/xdebug.c:1890
        op_array = 0x7fe0d436ad88
        edata = 0x7fe0d5218d50
        dummy = 0x7fe0d5218dd0
        fse = 0x2946e20
        xfse = 0x7ffecf6dcac0
        magic_cookie = 0x0
        do_return = 0
        function_nr = 380490
        le = 0x9ce640 <zend_vm_stack_push_call_frame+80>
#8  0x00000000009d126c in zend_call_function (fci=0x7ffecf6dcb00, fci_cache=0x7ffecf6dcad0) at /home/majkel/.phpbrew/build/php-7.0.8/Zend/zend_execute_API.c:866
        call_via_handler = 0
        i = 0
        calling_scope = 0x7fe0d43687d0
        call = 0x7fe0d5218dd0
        dummy_execute_data = {opline = 0xfe6f00, call = 0x0, return_value = 0x7ffecf6dc9f0, func = 0x9b40a9 <_safe_emalloc+86>, This = {value = {lval = 0, dval = 0, 
              counted = 0x0, str = 0x0, arr = 0x0, obj = 0x0, res = 0x0, ref = 0x0, ast = 0x0, zv = 0x0, ptr = 0x0, ce = 0x0, func = 0x0, ww = {w1 = 0, w2 = 0}}, u1 = {v = {
                type = 119 'w', type_flags = 0 '\000', const_flags = 0 '\000', reserved = 0 '\000'}, type_info = 119}, u2 = {var_flags = 3291, next = 3291, cache_slot = 3291, 
              lineno = 3291, num_args = 3291, fe_pos = 3291, fe_iter_idx = 3291}}, called_scope = 0x7fe0d43687d0, prev_execute_data = 0x7fe0d43687d0, 
          symbol_table = 0x7ffecf6dca00, run_time_cache = 0x9e2552 <instanceof_function+70>, literals = 0x7fe0d43687d0}
        fci_cache_local = {initialized = 128 '\200', function_handler = 0x7fe0d3b8e788, calling_scope = 0x7ffecf6dc9b0, called_scope = 0x9b3d3b <_emalloc+165>, 
          object = 0x1031c20}
        func = 0x7fe0d436ad88
        orig_scope = 0x27ecd10
        __PRETTY_FUNCTION__ = "zend_call_function"
#9  0x000000000079006e in zim_reflection_method_invokeArgs (execute_data=0x7fe0d5218d50, return_value=0x7fe0d5218a20)
    at /home/majkel/.phpbrew/build/php-7.0.8/ext/reflection/php_reflection.c:3348
        retval = {value = {lval = 140603627132512, dval = 6.9467421846846357e-310, counted = 0x7fe0d53fd660, str = 0x7fe0d53fd660, arr = 0x7fe0d53fd660, obj = 0x7fe0d53fd660, 
---Type <return> to continue, or q <return> to quit---
            res = 0x7fe0d53fd660, ref = 0x7fe0d53fd660, ast = 0x7fe0d53fd660, zv = 0x7fe0d53fd660, ptr = 0x7fe0d53fd660, ce = 0x7fe0d53fd660, func = 0x7fe0d53fd660, ww = {
              w1 = 3577730656, w2 = 32736}}, u1 = {v = {type = 0 '\000', type_flags = 0 '\000', const_flags = 0 '\000', reserved = 0 '\000'}, type_info = 0}, u2 = {
            var_flags = 32736, next = 32736, cache_slot = 32736, lineno = 32736, num_args = 32736, fe_pos = 32736, fe_iter_idx = 32736}}
        params = 0x7fe0d3b8e780
        val = 0x7fe0d44ec816 <xdebug_add_stack_frame+3620>
        object = 0x7fe0d5218db0
        intern = 0x7fe0d3a20640
        mptr = 0x7fe0d436ad88
        i = 32736
        argc = 0
        result = 0
        fci = {size = 72, function_table = 0x0, function_name = {value = {lval = 140603625146448, dval = 6.9467420865600364e-310, counted = 0x7fe0d5218850, 
              str = 0x7fe0d5218850, arr = 0x7fe0d5218850, obj = 0x7fe0d5218850, res = 0x7fe0d5218850, ref = 0x7fe0d5218850, ast = 0x7fe0d5218850, zv = 0x7fe0d5218850, 
              ptr = 0x7fe0d5218850, ce = 0x7fe0d5218850, func = 0x7fe0d5218850, ww = {w1 = 3575744592, w2 = 32736}}, u1 = {v = {type = 0 '\000', type_flags = 0 '\000', 
                const_flags = 0 '\000', reserved = 0 '\000'}, type_info = 0}, u2 = {var_flags = 0, next = 0, cache_slot = 0, lineno = 0, num_args = 0, fe_pos = 0, 
              fe_iter_idx = 0}}, symbol_table = 0x0, retval = 0x7ffecf6dcac0, params = 0x7fe0d3b8e780, object = 0x7fe0d438b300, no_separation = 1 '\001', param_count = 0}
        fcc = {initialized = 1 '\001', function_handler = 0x7fe0d436ad88, calling_scope = 0x7fe0d43687d0, called_scope = 0x7fe0d43687d0, object = 0x7fe0d438b300}
        obj_ce = 0x7fe0d43687d0
        param_array = 0x7fe0d5218dc0
#10 0x0000000000a46a72 in execute_internal (execute_data=0x7fe0d5218d50, return_value=0x7fe0d5218a20) at /home/majkel/.phpbrew/build/php-7.0.8/Zend/zend_execute.c:2042
No locals.
#11 0x00007fe0d44ce406 in xdebug_execute_internal (current_execute_data=0x7fe0d5218d50, return_value=0x7fe0d5218a20)
    at /home/majkel/.phpbrew/build/php-7.0.8/ext/xdebug/xdebug.c:2037
        edata = 0x7fe0d5218d50
        fse = 0x2946c90
        do_return = 0
        function_nr = 380489
        restore_error_handler_situation = 0
        tmp_error_cb = 0x0
#12 0x0000000000a492a9 in ZEND_DO_FCALL_SPEC_HANDLER () at /home/majkel/.phpbrew/build/php-7.0.8/Zend/zend_vm_execute.h:844
        should_change_scope = 1
        call = 0x7fe0d5218d50
        fbc = 0x27edb20
        object = 0xdf6dd73cfb7a7100
        ret = 0x7fe0d5218a20
        __PRETTY_FUNCTION__ = "ZEND_DO_FCALL_SPEC_HANDLER"
#13 0x0000000000a4b9bc in ZEND_USER_OPCODE_SPEC_HANDLER () at /home/majkel/.phpbrew/build/php-7.0.8/Zend/zend_vm_execute.h:1568
        ret = 2
#14 0x0000000000a4810d in execute_ex (ex=0x7fe0d5218850) at /home/majkel/.phpbrew/build/php-7.0.8/Zend/zend_vm_execute.h:414
        orig_opline = 0x7fe0d4216aa0
        orig_execute_data = 0x7fe0d52180a0
#15 0x00007fe0d44cdea1 in xdebug_execute_ex (execute_data=0x7fe0d5218850) at /home/majkel/.phpbrew/build/php-7.0.8/ext/xdebug/xdebug.c:1890
        op_array = 0x7fe0d42011b8
        edata = 0x7fe0d52180a0
        dummy = 0x7fe0d44d29a1 <xdebug_count_line+300>
        fse = 0x287abc0
        xfse = 0x2acf300
        magic_cookie = 0x0
        do_return = 0
        function_nr = 380485
        le = 0x7fe0d5218930
#16 0x0000000000a490f3 in ZEND_DO_FCALL_SPEC_HANDLER () at /home/majkel/.phpbrew/build/php-7.0.8/Zend/zend_vm_execute.h:800
        call = 0x7fe0d5218850
        fbc = 0x7fe0d42011b8
        object = 0x3c00a4ae09
        ret = 0x7fe0d5218310
        __PRETTY_FUNCTION__ = "ZEND_DO_FCALL_SPEC_HANDLER"
#17 0x0000000000a4b9bc in ZEND_USER_OPCODE_SPEC_HANDLER () at /home/majkel/.phpbrew/build/php-7.0.8/Zend/zend_vm_execute.h:1568
        ret = 2
---Type <return> to continue, or q <return> to quit---
#18 0x0000000000a4810d in execute_ex (ex=0x7fe0d52180a0) at /home/majkel/.phpbrew/build/php-7.0.8/Zend/zend_vm_execute.h:414
        orig_opline = 0x7fe0d3e85860
        orig_execute_data = 0x7fe0d52175f0
#19 0x00007fe0d44cdea1 in xdebug_execute_ex (execute_data=0x7fe0d52180a0) at /home/majkel/.phpbrew/build/php-7.0.8/ext/xdebug/xdebug.c:1890
        op_array = 0x7fe0d42010e8
        edata = 0x7fe0d52175f0
        dummy = 0x7fe0d44d29a1 <xdebug_count_line+300>
        fse = 0x2878790
        xfse = 0x29be5f0
        magic_cookie = 0x0
        do_return = 0
        function_nr = 380450
        le = 0x7fe0d52181b0
#20 0x0000000000a490f3 in ZEND_DO_FCALL_SPEC_HANDLER () at /home/majkel/.phpbrew/build/php-7.0.8/Zend/zend_vm_execute.h:800
        call = 0x7fe0d52180a0
        fbc = 0x7fe0d42010e8
        object = 0x3c00a4ae09
        ret = 0x0
        __PRETTY_FUNCTION__ = "ZEND_DO_FCALL_SPEC_HANDLER"
#21 0x0000000000a4b9bc in ZEND_USER_OPCODE_SPEC_HANDLER () at /home/majkel/.phpbrew/build/php-7.0.8/Zend/zend_vm_execute.h:1568
        ret = 2
#22 0x0000000000a4810d in execute_ex (ex=0x7fe0d52175f0) at /home/majkel/.phpbrew/build/php-7.0.8/Zend/zend_vm_execute.h:414
        orig_opline = 0x7fe0d4214fe0
        orig_execute_data = 0x7fe0d5216c20
#23 0x00007fe0d44cdea1 in xdebug_execute_ex (execute_data=0x7fe0d52175f0) at /home/majkel/.phpbrew/build/php-7.0.8/ext/xdebug/xdebug.c:1890
        op_array = 0x7fe0d3e2d5b8
        edata = 0x7fe0d5216c20
        dummy = 0xa3fe28 <zend_vm_stack_push_call_frame+80>
        fse = 0x29bf350
        xfse = 0xab0d5216c80
        magic_cookie = 0x0
        do_return = 0
        function_nr = 380424
        le = 0x7fe0d5217790
#24 0x0000000000a490f3 in ZEND_DO_FCALL_SPEC_HANDLER () at /home/majkel/.phpbrew/build/php-7.0.8/Zend/zend_vm_execute.h:800
        call = 0x7fe0d52175f0
        fbc = 0x7fe0d3e2d5b8
        object = 0x7f3cd438b300
        ret = 0x0
        __PRETTY_FUNCTION__ = "ZEND_DO_FCALL_SPEC_HANDLER"
#25 0x0000000000a4b9bc in ZEND_USER_OPCODE_SPEC_HANDLER () at /home/majkel/.phpbrew/build/php-7.0.8/Zend/zend_vm_execute.h:1568
        ret = 2
#26 0x0000000000a4810d in execute_ex (ex=0x7fe0d5216c20) at /home/majkel/.phpbrew/build/php-7.0.8/Zend/zend_vm_execute.h:414
        orig_opline = 0x7fe0d53af040
        orig_execute_data = 0x7fe0d5216640
#27 0x00007fe0d44cdea1 in xdebug_execute_ex (execute_data=0x7fe0d5216c20) at /home/majkel/.phpbrew/build/php-7.0.8/ext/xdebug/xdebug.c:1890
        op_array = 0x7fe0d4201018
        edata = 0x7fe0d5216640
        dummy = 0xa3fe28 <zend_vm_stack_push_call_frame+80>
        fse = 0x2913d70
        xfse = 0x9d0d5216740
        magic_cookie = 0x0
        do_return = 0
        function_nr = 380416
        le = 0x7fe0d5216de0
#28 0x0000000000a490f3 in ZEND_DO_FCALL_SPEC_HANDLER () at /home/majkel/.phpbrew/build/php-7.0.8/Zend/zend_vm_execute.h:800
        call = 0x7fe0d5216c20
        fbc = 0x7fe0d4201018
        object = 0x7f3cd41d8a00
---Type <return> to continue, or q <return> to quit---
        ret = 0x0
        __PRETTY_FUNCTION__ = "ZEND_DO_FCALL_SPEC_HANDLER"
#29 0x0000000000a4b9bc in ZEND_USER_OPCODE_SPEC_HANDLER () at /home/majkel/.phpbrew/build/php-7.0.8/Zend/zend_vm_execute.h:1568
        ret = 2
#30 0x0000000000a4810d in execute_ex (ex=0x7fe0d5216640) at /home/majkel/.phpbrew/build/php-7.0.8/Zend/zend_vm_execute.h:414
        orig_opline = 0x7fe0d53af040
        orig_execute_data = 0x7fe0d5216060
#31 0x00007fe0d44cdea1 in xdebug_execute_ex (execute_data=0x7fe0d5216640) at /home/majkel/.phpbrew/build/php-7.0.8/ext/xdebug/xdebug.c:1890
        op_array = 0x7fe0d520d2a0
        edata = 0x7fe0d5216060
        dummy = 0xa3fe28 <zend_vm_stack_push_call_frame+80>
        fse = 0x29acfd0
        xfse = 0x5e0cf6e1170
        magic_cookie = 0x0
        do_return = 0
        function_nr = 266648
        le = 0x7fe0d5216760
#32 0x0000000000a490f3 in ZEND_DO_FCALL_SPEC_HANDLER () at /home/majkel/.phpbrew/build/php-7.0.8/Zend/zend_vm_execute.h:800
        call = 0x7fe0d5216640
        fbc = 0x7fe0d520d2a0
        object = 0x7f3cd41d8a00
        ret = 0x0
        __PRETTY_FUNCTION__ = "ZEND_DO_FCALL_SPEC_HANDLER"
#33 0x0000000000a4b9bc in ZEND_USER_OPCODE_SPEC_HANDLER () at /home/majkel/.phpbrew/build/php-7.0.8/Zend/zend_vm_execute.h:1568
        ret = 2
#34 0x0000000000a4810d in execute_ex (ex=0x7fe0d5216060) at /home/majkel/.phpbrew/build/php-7.0.8/Zend/zend_vm_execute.h:414
        orig_opline = 0x7fe0d53af040
        orig_execute_data = 0x7fe0d5215a80
#35 0x00007fe0d44cdea1 in xdebug_execute_ex (execute_data=0x7fe0d5216060) at /home/majkel/.phpbrew/build/php-7.0.8/ext/xdebug/xdebug.c:1890
        op_array = 0x7fe0d520d2a0
        edata = 0x7fe0d5215a80
        dummy = 0xa3fe28 <zend_vm_stack_push_call_frame+80>
        fse = 0x28561c0
        xfse = 0x5e0cf6e1170
        magic_cookie = 0x0
        do_return = 0
        function_nr = 77378
        le = 0x7fe0d5216180
#36 0x0000000000a490f3 in ZEND_DO_FCALL_SPEC_HANDLER () at /home/majkel/.phpbrew/build/php-7.0.8/Zend/zend_vm_execute.h:800
        call = 0x7fe0d5216060
        fbc = 0x7fe0d520d2a0
        object = 0x7f3cd41d8a00
        ret = 0x0
        __PRETTY_FUNCTION__ = "ZEND_DO_FCALL_SPEC_HANDLER"
#37 0x0000000000a4b9bc in ZEND_USER_OPCODE_SPEC_HANDLER () at /home/majkel/.phpbrew/build/php-7.0.8/Zend/zend_vm_execute.h:1568
        ret = 2
#38 0x0000000000a4810d in execute_ex (ex=0x7fe0d5215a80) at /home/majkel/.phpbrew/build/php-7.0.8/Zend/zend_vm_execute.h:414
        orig_opline = 0x7fe0d41a3640
        orig_execute_data = 0x7fe0d5214680
#39 0x00007fe0d44cdea1 in xdebug_execute_ex (execute_data=0x7fe0d5215a80) at /home/majkel/.phpbrew/build/php-7.0.8/ext/xdebug/xdebug.c:1890
        op_array = 0x7fe0d520d2a0
        edata = 0x7fe0d5214680
        dummy = 0xa3fe28 <zend_vm_stack_push_call_frame+80>
        fse = 0x27e15d0
        xfse = 0x5e0cf6e1170
        magic_cookie = 0x0
        do_return = 0
        function_nr = 70400
        le = 0x7fe0d5215ba0
---Type <return> to continue, or q <return> to quit---
#40 0x0000000000a490f3 in ZEND_DO_FCALL_SPEC_HANDLER () at /home/majkel/.phpbrew/build/php-7.0.8/Zend/zend_vm_execute.h:800
        call = 0x7fe0d5215a80
        fbc = 0x7fe0d520d2a0
        object = 0x7f3cd41d8a00
        ret = 0x0
        __PRETTY_FUNCTION__ = "ZEND_DO_FCALL_SPEC_HANDLER"
#41 0x0000000000a4b9bc in ZEND_USER_OPCODE_SPEC_HANDLER () at /home/majkel/.phpbrew/build/php-7.0.8/Zend/zend_vm_execute.h:1568
        ret = 2
#42 0x0000000000a4810d in execute_ex (ex=0x7fe0d5214680) at /home/majkel/.phpbrew/build/php-7.0.8/Zend/zend_vm_execute.h:414
        orig_opline = 0x7fe0d52f3c80
        orig_execute_data = 0x7fe0d5214260
#43 0x00007fe0d44cdea1 in xdebug_execute_ex (execute_data=0x7fe0d5214680) at /home/majkel/.phpbrew/build/php-7.0.8/ext/xdebug/xdebug.c:1890
        op_array = 0x7fe0d40c9748
        edata = 0x7fe0d5214260
        dummy = 0x31000a3fe28
        fse = 0x2857930
        xfse = 0x2cf6e1170
        magic_cookie = 0x0
        do_return = 0
        function_nr = 69021
        le = 0x7fe0d52147b0
#44 0x0000000000a490f3 in ZEND_DO_FCALL_SPEC_HANDLER () at /home/majkel/.phpbrew/build/php-7.0.8/Zend/zend_vm_execute.h:800
        call = 0x7fe0d5214680
        fbc = 0x7fe0d40c9748
        object = 0xdf6dd73cfb7a7100
        ret = 0x7fe0d5214580
        __PRETTY_FUNCTION__ = "ZEND_DO_FCALL_SPEC_HANDLER"
#45 0x0000000000a4b9bc in ZEND_USER_OPCODE_SPEC_HANDLER () at /home/majkel/.phpbrew/build/php-7.0.8/Zend/zend_vm_execute.h:1568
        ret = 2
#46 0x0000000000a4810d in execute_ex (ex=0x7fe0d5214260) at /home/majkel/.phpbrew/build/php-7.0.8/Zend/zend_vm_execute.h:414
        orig_opline = 0x7fe0d529ae00
        orig_execute_data = 0x7fe0d5214170
#47 0x00007fe0d44cdea1 in xdebug_execute_ex (execute_data=0x7fe0d5214260) at /home/majkel/.phpbrew/build/php-7.0.8/ext/xdebug/xdebug.c:1890
        op_array = 0x7fe0d5205120
        edata = 0x7fe0d5214170
        dummy = 0xd0d5214240
        fse = 0x27c9820
        xfse = 0x1d5307b40
        magic_cookie = 0x0
        do_return = 0
        function_nr = 25
        le = 0x7fe0d5214350
#48 0x0000000000a490f3 in ZEND_DO_FCALL_SPEC_HANDLER () at /home/majkel/.phpbrew/build/php-7.0.8/Zend/zend_vm_execute.h:800
        call = 0x7fe0d5214260
        fbc = 0x7fe0d5205120
        object = 0x3c00000002
        ret = 0x7fe0d5214250
        __PRETTY_FUNCTION__ = "ZEND_DO_FCALL_SPEC_HANDLER"
#49 0x0000000000a4b9bc in ZEND_USER_OPCODE_SPEC_HANDLER () at /home/majkel/.phpbrew/build/php-7.0.8/Zend/zend_vm_execute.h:1568
        ret = 2
#50 0x0000000000a4810d in execute_ex (ex=0x7fe0d5214170) at /home/majkel/.phpbrew/build/php-7.0.8/Zend/zend_vm_execute.h:414
        orig_opline = 0x7fe0d5287780
        orig_execute_data = 0x7fe0d5214030
#51 0x00007fe0d44cdea1 in xdebug_execute_ex (execute_data=0x7fe0d5214170) at /home/majkel/.phpbrew/build/php-7.0.8/ext/xdebug/xdebug.c:1890
        op_array = 0x7fe0d5205050
        edata = 0x7fe0d5214030
        dummy = 0xf000000000
        fse = 0x27c90f0
        xfse = 0x7fe0d5204dd8
---Type <return> to continue, or q <return> to quit---
        magic_cookie = 0x0
        do_return = 0
        function_nr = 24
        le = 0x7fe0d52141f0
#52 0x0000000000a490f3 in ZEND_DO_FCALL_SPEC_HANDLER () at /home/majkel/.phpbrew/build/php-7.0.8/Zend/zend_vm_execute.h:800
        call = 0x7fe0d5214170
        fbc = 0x7fe0d5205050
        object = 0x3c00a4ae09
        ret = 0x0
        __PRETTY_FUNCTION__ = "ZEND_DO_FCALL_SPEC_HANDLER"
#53 0x0000000000a4b9bc in ZEND_USER_OPCODE_SPEC_HANDLER () at /home/majkel/.phpbrew/build/php-7.0.8/Zend/zend_vm_execute.h:1568
        ret = 2
#54 0x0000000000a4810d in execute_ex (ex=0x7fe0d5214030) at /home/majkel/.phpbrew/build/php-7.0.8/Zend/zend_vm_execute.h:414
        orig_opline = 0x0
        orig_execute_data = 0x0
#55 0x00007fe0d44cdea1 in xdebug_execute_ex (execute_data=0x7fe0d5214030) at /home/majkel/.phpbrew/build/php-7.0.8/ext/xdebug/xdebug.c:1890
        op_array = 0x7fe0d5285000
        edata = 0x0
        dummy = 0x0
        fse = 0x27c8d10
        xfse = 0x300000000
        magic_cookie = 0x0
        do_return = 0
        function_nr = 0
        le = 0xa3fe28 <zend_vm_stack_push_call_frame+80>
#56 0x0000000000a4821e in zend_execute (op_array=0x7fe0d5285000, return_value=0x0) at /home/majkel/.phpbrew/build/php-7.0.8/Zend/zend_vm_execute.h:458
        execute_data = 0x7fe0d5214030
#57 0x00000000009e947d in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /home/majkel/.phpbrew/build/php-7.0.8/Zend/zend.c:1427
        files = <error reading variable files (Attempt to dereference a generic pointer.)>
        i = 1
        file_handle = 0x7ffecf6dfdf0
        op_array = 0x7fe0d5285000
#58 0x0000000000951e04 in php_execute_script (primary_file=0x7ffecf6dfdf0) at /home/majkel/.phpbrew/build/php-7.0.8/main/main.c:2494
        realfile = "/home/majkel/www/dbase/vendor/phpunit/phpunit/phpunit", '\000' <repeats 15 times>, "\016\000\000\000\270\001 \325\340\177\000\000@\354m\317\376\177\000\000\263\373\232\000\000\000\000\000\001\000\000\000\016\000\000\000\270\001 \325\340\177\000\000Vw\005/D\022\032\n\206\340\356\343_Lo\tz\005X?2\242\225\006\377?\000\000\000\000\000\000`\254l\002\000\000\000\000\006\024\000\000\000\000\000\000\000\255l\002\000\000\000\000\006\024\000\000\000\000\000\000`\254l\002\000\000\000\000\006\024\000\000\000\000\000\000\300\352l\002\000\000\000\000"...
        __orig_bailout = 0x7ffecf6dfe60
        __bailout = {{__jmpbuf = {0, 2964720247810546483, 4406192, 140732378517872, 0, 0, 2964720248848636723, -2965247988208379085}, __mask_was_saved = 0, __saved_mask = {
              __val = {25769805709, 56, 140603625046080, 140603625050168, 140603625046080, 9223372062624579585, 140600049401862, 4152, 140603625046016, 140732378508032, 
                10162930, 140732378508000, 38654705664, 140603625054208, 140603625046080, 140603625054272}}}}
        prepend_file_p = 0x0
        append_file_p = 0x0
        prepend_file = {handle = {fd = 0, fp = 0x0, stream = {handle = 0x0, isatty = 0, mmap = {len = 0, pos = 0, map = 0x0, buf = 0x0, old_handle = 0x0, old_closer = 0x0}, 
              reader = 0x0, fsizer = 0x0, closer = 0x0}}, filename = 0x0, opened_path = 0x0, type = ZEND_HANDLE_FILENAME, free_filename = 0 '\000'}
        append_file = {handle = {fd = 0, fp = 0x0, stream = {handle = 0x0, isatty = 0, mmap = {len = 0, pos = 0, map = 0x0, buf = 0x0, old_handle = 0x0, old_closer = 0x0}, 
              reader = 0x0, fsizer = 0x0, closer = 0x0}}, filename = 0x0, opened_path = 0x0, type = ZEND_HANDLE_FILENAME, free_filename = 0 '\000'}
        old_cwd = 0x7ffecf6dd8d0 ""
        use_heap = 0 '\000'
        retval = 0
#59 0x0000000000ab1318 in do_cli (argc=2, argv=0x269cdf0) at /home/majkel/.phpbrew/build/php-7.0.8/sapi/cli/php_cli.c:974
        __orig_bailout = 0x7ffecf6e0fc0
        __bailout = {{__jmpbuf = {0, 2964720251417647923, 4406192, 140732378517872, 0, 0, 2964720247808449331, -2965247798787581133}, __mask_was_saved = 0, __saved_mask = {
              __val = {20477120, 4611686018427388041, 140732378515648, 77309411346, 0, 12884901891, 0, 0, 0, 140732378512528, 10163414, 17005912, 0, 0, 0, 0}}}}
        c = -1
        file_handle = {handle = {fd = -718823408, fp = 0x7fe0d527a010, stream = {handle = 0x7fe0d527a010, isatty = 0, mmap = {len = 911, pos = 0, map = 0x7fe0def22000, 
                buf = 0x7fe0def22013 "H\301\350\003H\017\266\200\205\016\206\002H\307\302\001", old_handle = 0x27c8cd0, old_closer = 0xa0f9fd <zend_stream_stdio_closer>}, 
              reader = 0xa0f9ce <zend_stream_stdio_reader>, fsizer = 0xa0fa2f <zend_stream_stdio_fsizer>, closer = 0xa0fb6a <zend_stream_mmap_closer>}}, 
          filename = 0x269cfb0 "./vendor/bin/phpunit", opened_path = 0x0, type = ZEND_HANDLE_MAPPED, free_filename = 0 '\000'}
---Type <return> to continue, or q <return> to quit---
        behavior = 1
        reflection_what = 0x0
        request_started = 1
        exit_status = 0
        php_optarg = 0x0
        orig_optarg = 0x0
        php_optind = 2
        orig_optind = 1
        exec_direct = 0x0
        exec_run = 0x0
        exec_begin = 0x0
        exec_end = 0x0
        arg_free = 0x269cfb0 "./vendor/bin/phpunit"
        arg_excp = 0x269cdf8
        script_file = 0x269cfb0 "./vendor/bin/phpunit"
        translated_path = 0x27c8c20 "/home/majkel/www/dbase/vendor/phpunit/phpunit/phpunit"
        interactive = 0
        lineno = 2
        param_error = 0x0
        hide_argv = 0
#60 0x0000000000ab24e6 in main (argc=2, argv=0x269cdf0) at /home/majkel/.phpbrew/build/php-7.0.8/sapi/cli/php_cli.c:1344
        __orig_bailout = 0x0
        __bailout = {{__jmpbuf = {0, 2964720251272944435, 4406192, 140732378517872, 0, 0, 2964720251415550771, -2965247799700890829}, __mask_was_saved = 0, __saved_mask = {
              __val = {0, 0, 0, 0, 0, 0, 0, 280375465082880, 0, 1, 11258077, 0, 0, 11258000, 4406192, 140732378517872}}}}
        c = -1
        exit_status = 0
        module_started = 1
        sapi_started = 1
        php_optarg = 0x0
        php_optind = 1
        use_extended_info = 0
        ini_path_override = 0x0
        ini_entries = 0x26aec50 "html_errors=0\nregister_argc_argv=1\nimplicit_flush=1\noutput_buffering=0\nmax_execution_time=0\nmax_input_time=-1\n"
        ini_entries_len = 110
        ini_ignore = 0
        sapi_module = 0x139aa20 <cli_sapi_module>


Test script:
---------------
No clue how to reproduce this bug.

Occured in https://travis-ci.org/majkel89/dbase/jobs/143771382

phpbrew install 7.0.0 +default +dbs +mb -- --enable-debug
phpbrew switch php-7.0.0
phpbrew ext install xdebug

git clone git@github.com:majkel89/dbase.git
cd dbase
git checkout 735f7862f03d9a3a8a0480ae6432a210692166ba
composer install -o
./vendor/bin/phpunit

Core dump and php configuration:
https://dl.dropboxusercontent.com/u/14964998/xdebug-cc-bug-core.zip

Expected result:
----------------
no segmentation fault

Actual result:
--------------
segmentation fault

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-08-10 15:22 UTC] derick@php.net
-Status: Open +Status: Duplicate
 [2016-08-10 15:22 UTC] derick@php.net
I keep Xdebug reports solely at http://bugs.xdebug.org - as there is https://bugs.xdebug.org/view.php?id=1331, I'm closing this one.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 09:01:28 2024 UTC