Test: /sapi/phpdbg/tests/watch_006.phpt - Version 7.2.6    

There are 10 different diffs reported by users for this test.

Count Diff
83 (65%)
045+
045- prompt>
046+ Termsig=11
18 (14%)
045+ Segmentation fault (core dumped)
045- prompt>
046+
047+ Termsig=11
13 (10%)
045- prompt>
7 (6%)
045+ Segmentation fault
045- prompt>
046+
047+ Termsig=11
1 (1%)
045+ Segmentation fault (core dumped)
045- prompt>
1 (1%)
045+
045- prompt>
046+ Termsig=7
1 (1%)
009+ prompt> ASAN:DEADLYSIGNAL
010+ =================================================================
011+ ==29582==ERROR: AddressSanitizer: SEGV on unknown address 0x7f90d821f030 (pc 0x55c2975e3fbd bp 0x55c297cdc840 sp 0x7ffc94c8bbc0 T0)
012+ ==29582==The signal is caused by a WRITE memory access.
013+ #0 0x55c2975e3fbc in ZEND_ASSIGN_DIM_SPEC_CV_CONST_OP_DATA_CONST_HANDLER /home/zsw/Documents/project/php/php-7.2.6/Zend/zend_vm_execute.h:36962
014+ #1 0x55c29766b355 in zend_vm_call_opcode_handler /home/zsw/Documents/project/php/php-7.2.6/Zend/zend_vm_execute.h:69305
015+ #2 0x55c297689590 in phpdbg_execute_ex /home/zsw/Documents/project/php/php-7.2.6/sapi/phpdbg/phpdbg_prompt.c:1900
016+ #3 0x55c297669a9a in zend_execute /home/zsw/Documents/project/php/php-7.2.6/Zend/zend_vm_execute.h:63760
017+ #4 0x55c297685c12 in phpdbg_do_run /home/zsw/Documents/project/php/php-7.2.6/sapi/phpdbg/phpdbg_prompt.c:942
018+ #5 0x55c2976ba1a4 in phpdbg_internal_stack_execute /home/zsw/Documents/project/php/php-7.2.6/sapi/phpdbg/phpdbg_cmd.c:703
019+ #6 0x55c2976ba1a4 in phpdbg_stack_execute /home/zsw/Documents/project/php/php-7.2.6/sapi/phpdbg/phpdbg_cmd.c:733
020+ #7 0x55c29768863e in phpdbg_interactive /home/zsw/Documents/project/php/php-7.2.6/sapi/phpdbg/phpdbg_prompt.c:1631
021+ #8 0x55c296f35daa in main /home/zsw/Documents/project/php/php-7.2.6/sapi/phpdbg/phpdbg.c:2001
022+ #9 0x7f90db4681c0 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x211c0)
023+ #10 0x55c296f371f9 in _start (/home/zsw/Documents/project/php/php-7.2.6/sapi/phpdbg/phpdbg+0x2271f9)
024+
025+ AddressSanitizer can not provide additional info.
026+ SUMMARY: AddressSanitizer: SEGV /home/zsw/Documents/project/php/php-7.2.6/Zend/zend_vm_execute.h:36962 in ZEND_ASSIGN_DIM_SPEC_CV_CONST_OP_DATA_CONST_HANDLER
027+ ==29582==ABORTING
009- prompt> [Breaking on watchpoint $a[0]]
010- Old value: 0
011- New value: 1
012- >00005: $b = &$a;
013- 00006: $a[0] = 2;
014- 00007: $a[1] = 3;
015- prompt> [Breaking on watchpoint $b]
016- Old value:
017- New value (reference): Array ([0] => 1)
018- >00006: $a[0] = 2;
019- 00007: $a[1] = 3;
020- 00008: $c = [1];
021- prompt> [Breaking on watchpoint $a[0]]
022- Old value: 1
023- New value: 2
024- >00007: $a[1] = 3;
025- 00008: $c = [1];
026- 00009: $b = &$c;
027- prompt> [Element 1 has been added to watchpoint]
028- [Breaking on watchpoint $b[]]
029- 1 elements were added to the array
030- >00008: $c = [1];
031- 00009: $b = &$c;
032- 00010:
033- prompt> [Breaking on watchpoint $b]
034- Old value inaccessible or destroyed
035- New value (reference): Array ([0] => 2,[1] => 3)
036- >00009: $b = &$c;
037- 00010:
038- prompt> [Breaking on watchpoint $b]
039- Old value inaccessible or destroyed
040- New value (reference): Array ([0] => 1)
041- >00010:
042- prompt> [$b has been removed, removing watchpoint recursively]
043- [$a[0] has been removed, removing watchpoint]
044- [Script ended normally]
045- prompt>
1 (1%)
001+ Termsig=11
001- [Successful compilation of %s]
002- prompt> [Breakpoint #0 added at %s:4]
003- prompt> [Breakpoint #0 at %s:4, hits: 1]
004- >00004: $a[0] = 1;
005- 00005: $b = &$a;
006- 00006: $a[0] = 2;
007- prompt> [Added watchpoint #0 for $a[0]]
008- prompt> [Added recursive watchpoint #1 for $b]
009- prompt> [Breaking on watchpoint $a[0]]
010- Old value: 0
011- New value: 1
012- >00005: $b = &$a;
013- 00006: $a[0] = 2;
014- 00007: $a[1] = 3;
015- prompt> [Breaking on watchpoint $b]
016- Old value:
017- New value (reference): Array ([0] => 1)
018- >00006: $a[0] = 2;
019- 00007: $a[1] = 3;
020- 00008: $c = [1];
021- prompt> [Breaking on watchpoint $a[0]]
022- Old value: 1
023- New value: 2
024- >00007: $a[1] = 3;
025- 00008: $c = [1];
026- 00009: $b = &$c;
027- prompt> [Element 1 has been added to watchpoint]
028- [Breaking on watchpoint $b[]]
029- 1 elements were added to the array
030- >00008: $c = [1];
031- 00009: $b = &$c;
032- 00010:
033- prompt> [Breaking on watchpoint $b]
034- Old value inaccessible or destroyed
035- New value (reference): Array ([0] => 2,[1] => 3)
036- >00009: $b = &$c;
037- 00010:
038- prompt> [Breaking on watchpoint $b]
039- Old value inaccessible or destroyed
040- New value (reference): Array ([0] => 1)
041- >00010:
042- prompt> [$b has been removed, removing watchpoint recursively]
043- [$a[0] has been removed, removing watchpoint]
044- [Script ended normally]
045- prompt>
1 (1%)
001+
001- [Successful compilation of %s]
002- prompt> [Breakpoint #0 added at %s:4]
003- prompt> [Breakpoint #0 at %s:4, hits: 1]
004- >00004: $a[0] = 1;
005- 00005: $b = &$a;
006- 00006: $a[0] = 2;
007- prompt> [Added watchpoint #0 for $a[0]]
008- prompt> [Added recursive watchpoint #1 for $b]
009- prompt> [Breaking on watchpoint $a[0]]
010- Old value: 0
011- New value: 1
012- >00005: $b = &$a;
013- 00006: $a[0] = 2;
014- 00007: $a[1] = 3;
015- prompt> [Breaking on watchpoint $b]
016- Old value:
017- New value (reference): Array ([0] => 1)
018- >00006: $a[0] = 2;
019- 00007: $a[1] = 3;
020- 00008: $c = [1];
021- prompt> [Breaking on watchpoint $a[0]]
022- Old value: 1
023- New value: 2
024- >00007: $a[1] = 3;
025- 00008: $c = [1];
026- 00009: $b = &$c;
027- prompt> [Element 1 has been added to watchpoint]
028- [Breaking on watchpoint $b[]]
029- 1 elements were added to the array
030- >00008: $c = [1];
031- 00009: $b = &$c;
032- 00010:
033- prompt> [Breaking on watchpoint $b]
034- Old value inaccessible or destroyed
035- New value (reference): Array ([0] => 2,[1] => 3)
036- >00009: $b = &$c;
037- 00010:
038- prompt> [Breaking on watchpoint $b]
039- Old value inaccessible or destroyed
040- New value (reference): Array ([0] => 1)
041- >00010:
042- prompt> [$b has been removed, removing watchpoint recursively]
043- [$a[0] has been removed, removing watchpoint]
044- [Script ended normally]
045- prompt>
1 (1%)