Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix GH-16319: protect fiber backtrace with null filename from crashing #19973

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

Merged
alexandre-daubois merged 2 commits into php:PHP-8.3 from alexandre-daubois:obs-fiber-bt
Oct 1, 2025

Conversation

Copy link
Member

@alexandre-daubois alexandre-daubois commented Sep 26, 2025
edited
Loading

Fix #16319

Used [no active file] as it's already used at many places.

momito69 reacted with rocket emoji
Copy link
Member Author

alexandre-daubois commented Sep 26, 2025
edited
Loading

Not sure how to skip the test on CircleCI, where it seems that --enable-zend-test isn't provided? Help welcome 🙂

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.

LGTM otherwise

NEWS Outdated
. Fixed bug GH-19480 (error_log php.ini cannot be unset when open_basedir is
configured). (nielsdos)
. Fixed bug GH-16319 (Prevent crash when displaying fiber backtrace with
a null filename). (alexandre-daubois)
Copy link
Member

@iluuu1994 iluuu1994 Sep 26, 2025

Choose a reason for hiding this comment

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

No need for this NEWS entry, zend_test is not a user-targeted extension.

Copy link
Member

Not sure how to skip the test on CircleCI, where it seems that --enable-zend-test isn't provided? Help welcome 🙂

I don't think it's because the extension is not available, that is skipped with --EXTENSIONS--. It might be because of --repeat 2, or JIT.

alexandre-daubois reacted with eyes emoji

Copy link
Member Author

Skipping when using JIT in CircleCI seems to do the trick

Copy link
Member

I'm not sure if this is expected though? Other observer tests are not skipped with JIT.

Copy link
Member

Okay, I can see some where JIT is explicitly disabled like you do, e.g. (ext/zend_test/tests/observer_opline_01.phpt). So this looks ok to me now. 👍

Copy link
Member Author

Oh indeed! I was about to ping Arnaud. Thanks for pointing an existing case!

@alexandre-daubois alexandre-daubois merged commit 9fc14a9 into php:PHP-8.3 Oct 1, 2025
9 checks passed
alexandre-daubois added a commit that referenced this pull request Oct 1, 2025
* PHP-8.3:
 Fix GH-16319: protect fiber backtrace with null filename from crashing (#19973)
alexandre-daubois added a commit that referenced this pull request Oct 1, 2025
* PHP-8.4:
 Fix GH-16319: protect fiber backtrace with null filename from crashing (#19973)
alexandre-daubois added a commit that referenced this pull request Oct 1, 2025
* PHP-8.5:
 Fix GH-16319: protect fiber backtrace with null filename from crashing (#19973)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@iluuu1994 iluuu1994 iluuu1994 approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Segmentation fault in ext/zend_test/observer.c:175

AltStyle によって変換されたページ (->オリジナル) /