Test: /sapi/phpdbg/tests/watch_004.phpt - Version 7.4.1    

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

Count Diff
1 (33%)
008+ prompt> ASAN:SIGSEGV
009+ =================================================================
010+ ==123919==ERROR: AddressSanitizer: SEGV on unknown address 0x7f8d53015070 (pc 0x0000011eac8a bp 0x7ffeecf2d4e0 sp 0x7ffeecf2d1f0 T0)
011+ #0 0x11eac89 (/root/afl-php/php-src-php-7.4.1/sapi/phpdbg/phpdbg+0x11eac89)
012+ #1 0x13d918c (/root/afl-php/php-src-php-7.4.1/sapi/phpdbg/phpdbg+0x13d918c)
013+ #2 0x11b78ce (/root/afl-php/php-src-php-7.4.1/sapi/phpdbg/phpdbg+0x11b78ce)
014+ #3 0x13c7406 (/root/afl-php/php-src-php-7.4.1/sapi/phpdbg/phpdbg+0x13c7406)
015+ #4 0x1418135 (/root/afl-php/php-src-php-7.4.1/sapi/phpdbg/phpdbg+0x1418135)
016+ #5 0x13d520d (/root/afl-php/php-src-php-7.4.1/sapi/phpdbg/phpdbg+0x13d520d)
017+ #6 0x13ac33d (/root/afl-php/php-src-php-7.4.1/sapi/phpdbg/phpdbg+0x13ac33d)
018+ #7 0x7f8d57ec682f (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
019+ #8 0x45c648 (/root/afl-php/php-src-php-7.4.1/sapi/phpdbg/phpdbg+0x45c648)
008- prompt> [Breaking on watchpoint $a]
009- Old value:
010- New value: aa
011- >00005: $a[1] = "b";
012- 00006:
013- prompt> [Breaking on watchpoint $a]
014- Old value: aa
015- New value: ab
016- >00006:
017- prompt> [$a has been removed, removing watchpoint]
018- [Script ended normally]
019- prompt>
020+
021+ AddressSanitizer can not provide additional info.
022+ ==123919==ABORTING
1 (33%)
007+ prompt>
008+ Termsig=11
007- prompt> [Added watchpoint #0 for $a]
008- prompt> [Breaking on watchpoint $a]
009- Old value:
010- New value: aa
011- >00005: $a[1] = "b";
012- 00006:
013- prompt> [Breaking on watchpoint $a]
014- Old value: aa
015- New value: ab
016- >00006:
017- prompt> [$a has been removed, removing watchpoint]
018- [Script ended normally]
019- prompt>
1 (33%)
001+
001- [Successful compilation of %s]
002- prompt> [Breakpoint #0 added at %s:3]
003- prompt> [Breakpoint #0 at %s:3, hits: 1]
004- >00003: $b = "a";
005- 00004: $a = $b.$b;
006- 00005: $a[1] = "b";
007- prompt> [Added watchpoint #0 for $a]
008- prompt> [Breaking on watchpoint $a]
009- Old value:
010- New value: aa
011- >00005: $a[1] = "b";
012- 00006:
013- prompt> [Breaking on watchpoint $a]
014- Old value: aa
015- New value: ab
016- >00006:
017- prompt> [$a has been removed, removing watchpoint]
018- [Script ended normally]
019- prompt>