Skip to content

Conversation

@nielsdos
Copy link
Member

@nielsdos nielsdos commented May 18, 2025

I don't know why this was guarded with ZTS, but it leaks on this test (and a few more):
./sapi/cli/php ./run-tests.php -c . --show-diff sapi/phpdbg/tests/stdin_001.phpt

The same issue exists on 8.3 but needs a bit of a different fix, which I'll do after this is approved.

I don't know why this was guarded with ZTS, but it leaks on this test
(and a few more):
`./sapi/cli/php ./run-tests.php -c . --show-diff sapi/phpdbg/tests/stdin_001.phpt`
Copy link
Member

@iluuu1994 iluuu1994 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't call it for non-ZTS in #17576 because LSan doesn't consider allocations reachable through globals lost. I don't understand the details of why it does for sapi/phpdbg/tests/stdin_001.phpt, but it doesn't seem harmful to free it unconditionally.

I'm also confused as to why this isn't caught by CI. phpdbg is tested in the ASan build.

@nielsdos nielsdos closed this in db3bf71 May 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants