[php-src] Issue #11053: PHPDBG ASAN failures under tracked alloc without zend alloc
| From: | nielsdos | Date: | Mon, 10 Apr 2023 15:53:51 +0000 |
| Subject: | [php-src] Issue #11053: PHPDBG ASAN failures under tracked alloc without zend alloc | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-244167@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/11053
Author: nielsdos
### Description
The following tests fail with USE_TRACKED_ALLOC=1 and USE_ZEND_ALLOC=0 under ASAN:
```
Bug #73927 (phpdbg fails with windows error prompt at "watch array")
[sapi/phpdbg/tests/bug73927.phpt]
Test simple recursive watchpoint [sapi/phpdbg/tests/watch_001.phpt]
Test simple array watchpoint with replace [sapi/phpdbg/tests/watch_002.phpt]
Test simple watchpoint with replace [sapi/phpdbg/tests/watch_003.phpt]
Test detection of inline string manipulations on zval watch [sapi/phpdbg/tests/watch_004.phpt]
Test proper watch comparisons when having multiple levels of indirection from a zval to its value
[sapi/phpdbg/tests/watch_005.phpt]
Test multiple watch elements pointing to the same watchpoint [sapi/phpdbg/tests/watch_006.phpt]
```
Some fail with:
Zend/zend_alloc.c:2806: tracked_get_size_zv: Assertion size_zv && "Trying
to free pointer not allocated through ZendMM"' failed.`
and some fail with a use-after-free message
### PHP Version
current master, stable versions not tested
### Operating System
Linux 6.2.10