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

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

Count Diff
99 (67%)
025+
025- prompt>
026+ Termsig=11
18 (12%)
025+ Segmentation fault (core dumped)
025- prompt>
026+
027+ Termsig=11
13 (9%)
025+ Segmentation fault
025- prompt>
026+
027+ Termsig=11
11 (7%)
025- prompt>
3 (2%)
001+ Termsig=11
001- [Successful compilation of %s]
002- prompt> [Breakpoint #0 added at %s:3]
003- prompt> [Breakpoint #0 at %s:3, hits: 1]
004- >00003: $a = 1;
005- 00004: $b = [$a];
006- 00005:
007- prompt> [Added recursive watchpoint #0 for $b]
008- prompt> [Breaking on watchpoint $b]
009- Old value:
010- New value: Array ([0] => 1)
011- >00006: unset($b);
012- 00007: $b = 2;
013- 00008:
014- prompt> [Breaking on watchpoint $b]
015- Old value inaccessible or destroyed
016- New value:
017- >00007: $b = 2;
018- 00008:
019- prompt> [Breaking on watchpoint $b]
020- Old value:
021- New value: 2
022- >00008:
023- prompt> [$b has been removed, removing watchpoint recursively]
024- [Script ended normally]
025- prompt>
1 (1%)
001+ Segmentation fault (core dumped)
002+
003+ Termsig=11
001- [Successful compilation of %s]
002- prompt> [Breakpoint #0 added at %s:3]
003- prompt> [Breakpoint #0 at %s:3, hits: 1]
004- >00003: $a = 1;
005- 00004: $b = [$a];
006- 00005:
007- prompt> [Added recursive watchpoint #0 for $b]
008- prompt> [Breaking on watchpoint $b]
009- Old value:
010- New value: Array ([0] => 1)
011- >00006: unset($b);
012- 00007: $b = 2;
013- 00008:
014- prompt> [Breaking on watchpoint $b]
015- Old value inaccessible or destroyed
016- New value:
017- >00007: $b = 2;
018- 00008:
019- prompt> [Breaking on watchpoint $b]
020- Old value:
021- New value: 2
022- >00008:
023- prompt> [$b has been removed, removing watchpoint recursively]
024- [Script ended normally]
025- prompt>
1 (1%)
008+ prompt> ASAN:DEADLYSIGNAL
009+ =================================================================
010+ ==269162==ERROR: AddressSanitizer: SEGV on unknown address 0x7f1fbae1f080 (pc 0x000001c4abb9 bp 0x0fe3f75c3e10 sp 0x7ffce353c980 T0)
011+ ==269162==The signal is caused by a WRITE memory access.
012+ #0 0x1c4abb8 (/home/tunguyen/Downloads/php-src-php-7.2.11/sapi/phpdbg/phpdbg+0x1c4abb8)
013+ #1 0x1efd444 (/home/tunguyen/Downloads/php-src-php-7.2.11/sapi/phpdbg/phpdbg+0x1efd444)
014+ #2 0x1aca352 (/home/tunguyen/Downloads/php-src-php-7.2.11/sapi/phpdbg/phpdbg+0x1aca352)
015+ #3 0x1ee774b (/home/tunguyen/Downloads/php-src-php-7.2.11/sapi/phpdbg/phpdbg+0x1ee774b)
016+ #4 0x1f422cf (/home/tunguyen/Downloads/php-src-php-7.2.11/sapi/phpdbg/phpdbg+0x1f422cf)
017+ #5 0x1ef7529 (/home/tunguyen/Downloads/php-src-php-7.2.11/sapi/phpdbg/phpdbg+0x1ef7529)
018+ #6 0x1ecd73b (/home/tunguyen/Downloads/php-src-php-7.2.11/sapi/phpdbg/phpdbg+0x1ecd73b)
019+ #7 0x7f1fc00aa0b2 (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
020+ #8 0x444e6d (/home/tunguyen/Downloads/php-src-php-7.2.11/sapi/phpdbg/phpdbg+0x444e6d)
021+
022+ AddressSanitizer can not provide additional info.
023+ SUMMARY: AddressSanitizer: SEGV (/home/tunguyen/Downloads/php-src-php-7.2.11/sapi/phpdbg/phpdbg+0x1c4abb8)
024+ ==269162==ABORTING
008- prompt> [Breaking on watchpoint $b]
009- Old value:
010- New value: Array ([0] => 1)
011- >00006: unset($b);
012- 00007: $b = 2;
013- 00008:
014- prompt> [Breaking on watchpoint $b]
015- Old value inaccessible or destroyed
016- New value:
017- >00007: $b = 2;
018- 00008:
019- prompt> [Breaking on watchpoint $b]
020- Old value:
021- New value: 2
022- >00008:
023- prompt> [$b has been removed, removing watchpoint recursively]
024- [Script ended normally]
025- prompt>
1 (1%)
025+
025- prompt>
026+ Termsig=0
1 (1%)
025+ prompt>
025- prompt>
026+ =================================================================
027+ ==30360==ERROR: LeakSanitizer: detected memory leaks
028+
029+ Direct leak of 8 byte(s) in 1 object(s) allocated from:
030+ #0 0x460240 (/root/Desktop/fuzz/test/php-src-php-7.2.11/sapi/phpdbg/phpdbg+0x460240)
031+ #1 0x209d6fa (/root/Desktop/fuzz/test/php-src-php-7.2.11/sapi/phpdbg/phpdbg+0x209d6fa)
032+ #2 0x7f318ea7c09a (/lib/x86_64-linux-gnu/libc.so.6+0x2409a)
033+
034+ SUMMARY: AddressSanitizer: 8 byte(s) leaked in 1 allocation(s).