Skip to content

Fix GH-15208: Segfault with breakpoint map and phpdbg_clear() #16953

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

nielsdos
Copy link
Member

It crashes because it's gonna try accessing the breakpoint which was cleared by user code in phpdbg_clear();. Not all breakpoint data was properly cleaned.

Replaces #15243
@devnexen It might still be worthwhile to add some extra exceptions to the phpdbg_break_* methods to make sure that an empty string cannot be used as a breakpoint, but that is not the root cause of this issue and may be master-only material.

It crashes because it's gonna try accessing the breakpoint which was cleared
by user code in `phpdbg_clear();`. Not all breakpoint data was properly
cleaned.
@nielsdos nielsdos linked an issue Nov 26, 2024 that may be closed by this pull request
Copy link
Member

@devnexen devnexen left a comment

Choose a reason for hiding this comment

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

MSTM

@nielsdos nielsdos closed this in 97b0318 Nov 26, 2024
charmitro pushed a commit to wasix-org/php that referenced this pull request Mar 13, 2025
It crashes because it's gonna try accessing the breakpoint which was cleared
by user code in `phpdbg_clear();`. Not all breakpoint data was properly
cleaned.

Closes phpGH-16953.
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.

Segfault with breakpoint map and phpdbg_clear()
2 participants