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

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

Count Diff
104 (66%)
045+
045- prompt>
046+ Termsig=11
17 (11%)
045+ Segmentation fault (core dumped)
045- prompt>
046+
047+ Termsig=11
14 (9%)
045- prompt>
13 (8%)
045+ Segmentation fault
045- prompt>
046+
047+ Termsig=11
3 (2%)
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%)
045+ prompt>
045- prompt>
046+ =================================================================
047+ ==30375==ERROR: LeakSanitizer: detected memory leaks
048+
049+ Direct leak of 8 byte(s) in 1 object(s) allocated from:
050+ #0 0x460240 (/root/Desktop/fuzz/test/php-src-php-7.2.11/sapi/phpdbg/phpdbg+0x460240)
051+ #1 0x209d6fa (/root/Desktop/fuzz/test/php-src-php-7.2.11/sapi/phpdbg/phpdbg+0x209d6fa)
052+ #2 0x7f189603f09a (/lib/x86_64-linux-gnu/libc.so.6+0x2409a)
053+
054+ SUMMARY: AddressSanitizer: 8 byte(s) leaked in 1 allocation(s).
1 (1%)
045+ Segmentation fault (core dumped)
045- prompt>
1 (1%)
045+ Segmentation fault
045- prompt>
1 (1%)
045+
045- prompt>
046+ Termsig=0
1 (1%)
009+ prompt> ASAN:DEADLYSIGNAL
010+ =================================================================
011+ ==269172==ERROR: AddressSanitizer: SEGV on unknown address 0x7fd8cb861118 (pc 0x000001dd048f bp 0x0ffb1970c223 sp 0x7ffd2416d710 T0)
012+ ==269172==The signal is caused by a WRITE memory access.
013+ #0 0x1dd048e (/home/tunguyen/Downloads/php-src-php-7.2.11/sapi/phpdbg/phpdbg+0x1dd048e)
014+ #1 0x1efd444 (/home/tunguyen/Downloads/php-src-php-7.2.11/sapi/phpdbg/phpdbg+0x1efd444)
015+ #2 0x1aca352 (/home/tunguyen/Downloads/php-src-php-7.2.11/sapi/phpdbg/phpdbg+0x1aca352)
016+ #3 0x1ee774b (/home/tunguyen/Downloads/php-src-php-7.2.11/sapi/phpdbg/phpdbg+0x1ee774b)
017+ #4 0x1f422cf (/home/tunguyen/Downloads/php-src-php-7.2.11/sapi/phpdbg/phpdbg+0x1f422cf)
018+ #5 0x1ef7529 (/home/tunguyen/Downloads/php-src-php-7.2.11/sapi/phpdbg/phpdbg+0x1ef7529)
019+ #6 0x1ecd73b (/home/tunguyen/Downloads/php-src-php-7.2.11/sapi/phpdbg/phpdbg+0x1ecd73b)
020+ #7 0x7fd8d0b0c0b2 (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
021+ #8 0x444e6d (/home/tunguyen/Downloads/php-src-php-7.2.11/sapi/phpdbg/phpdbg+0x444e6d)
022+
023+ AddressSanitizer can not provide additional info.
024+ SUMMARY: AddressSanitizer: SEGV (/home/tunguyen/Downloads/php-src-php-7.2.11/sapi/phpdbg/phpdbg+0x1dd048e)
025+ ==269172==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%)
007+ prompt>
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+ Segmentation fault (core dumped)
002+
003+ 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>