[php-src] PR #11995: Disable LSan tls
| From: | iluuu1994 | Date: | Fri, 18 Aug 2023 16:25:11 +0000 |
| Subject: | [php-src] PR #11995: Disable LSan tls | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-23404@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/11995
Author: iluuu1994
LSan crashes a lot recently, and it seems to be caused by tls. Since we're not actually making
use of C11s _Thread_local we can set the use_tls=0 option. This causes a false positive in dlopen()
that apprently uses thread locals. We suppress this with __lsan_disable()/__lsan_enable().
This might also cause new leaks in other libraries, we'll have to run CI to see.
:slightly_smiling_face:
/cc @ju1ius