-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Segfault in ReflectionAttribute->__toString() #11937
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
Labels
Comments
It doesn't look related.
I'll have to look at the more closely, but either we forgot to handle the enum case, or we're getting to this point mistakenly. |
@iluuu1994 I managed to reduce the MRE by quite a bit. I hope that helps tracing down the bug here. |
iluuu1994
added a commit
to iluuu1994/php-src
that referenced
this issue
Aug 12, 2023
iluuu1994
added a commit
to iluuu1994/php-src
that referenced
this issue
Aug 12, 2023
Evaluating constants at comptime can result in arrays that contain objects. This is problematic for printing the default value of constant ASTs containing objects, because we don't actually know what the constructor arguments were. Avoid this by not propagating array constants. Fixes phpGH-11937
iluuu1994
added a commit
to iluuu1994/php-src
that referenced
this issue
Aug 12, 2023
Evaluating constants at comptime can result in arrays that contain objects. This is problematic for printing the default value of constant ASTs containing objects, because we don't actually know what the constructor arguments were. Avoid this by not propagating array constants. Fixes phpGH-11937
@cgrabenstein It did indeed help a lot, thank you! The fix is here: #11947 |
iluuu1994
added a commit
to iluuu1994/php-src
that referenced
this issue
Aug 14, 2023
Evaluating constants at comptime can result in arrays that contain objects. This is problematic for printing the default value of constant ASTs containing objects, because we don't actually know what the constructor arguments were. Avoid this by not propagating array constants. Fixes phpGH-11937
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
I created a repository for the MRE, since the setup is a bit more complex. You can find it here: https://github.com/cgrabenstein/php-segfault-mre
The issue is possibly related to #8133, at least the constants in an enum are required to reproduce the error. But I could not reproduce it without the multiple kernels in Symfony.
PHP Version
PHP 8.2.8
Operating System
Debian 12 (that's what the php:8.2-cli image uses)
The text was updated successfully, but these errors were encountered: