Fix memory corruption of INIs in ZTS builds#3898
Conversation
The preloading skip was lost during the last refactor; putting it back.
|
morrisonlevi
left a comment
There was a problem hiding this comment.
We should be able to write a test for this, yes?
|
Yeah, probably an asan tea test would catch it. |
|
@bwoebi / @morrisonlevi I have a PR at #3907 to add a test, but the preloading test in PHP profiling also fails. We could merge the PR, but actually we either need ZTS ASAN NDEBUG builds or support DEBUG builds in the profiler. WDYT? |
|
Whoops @bwoebi could you have a look at the failing ASAN tests? |
|
@morrisonlevi see https://github.com/DataDog/dd-trace-php/actions/runs/26288603294/job/77382502552?pr=3908 for a DEBUG ZTS ASAN run, it shows this issue 🎉 |
Benchmarks [ tracer ]Benchmark execution time: 2026-05-22 13:37:35 Comparing candidate commit 7d1d633 in PR branch Found 1 performance improvements and 4 performance regressions! Performance is the same for 188 metrics, 1 unstable metrics. scenario:MessagePackSerializationBench/benchMessagePackSerialization-opcache
scenario:PDOBench/benchPDOOverhead
scenario:PDOBench/benchPDOOverheadWithDBM
scenario:PHPRedisBench/benchRedisOverhead
scenario:TraceSerializationBench/benchSerializeTrace
|
The preloading skip was lost during the last refactor; putting it back.
Fixes #3896.