-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
8.2.2: segfault when garbage collector is invoked inside of fiber #10496
Comments
This happens even without invoking gc_collect_cycles, during normal automatic garbage collection. |
A simple reproducer I just found - there seems to be a bug in
I'll have a closer look now. |
@arnaud-lb Essentially: However, with fibers, there may be an active child frame, thus I'm right now not exactly sure on the specifics, but essentially, I think we need to pass a bool to |
If I have php 8.2.2, how can I switch to 8.2.1 in debian? |
Hang on, the PR didn't fix the issue, just checked with a freshly compiled php-src (e8d16fd). Also, the test merged along with the PR doesn't segfault even on PHP 8.2.2 on my arch machine. |
There's indeed a second issue:
|
This happens as suspending writes fiber->execute_data back, but switching to another fiber does not. Added an explicit check for get_gc here. |
Thanks! Do you think you could tag an RC for 8.2.4 and 8.1.17? Fibers are completely broken for everyone right now on the latest stables, and will be until those fixes are tagged. |
Pleas speed up the release of PHP 8.1.17 or PHP 8.2.4, For fixing this Bug. |
Please speed up the release of PHP 8.1.17 and 8.2.4 to fix this issue... |
Please speed up the release of PHP 8.1.17 and 8.2.4 to fix this problem |
I'm checking with release managers |
Please speed up the release of PHP 8.1.17 and 8.2.4 to fix this problem |
Spamming requests to "speed up" the releases is almost as helpful as honking in traffic. Let's stop that, alright? |
يرجى تسريع إصدار PHP 8.1.17 و 8.2.4 لإصلاح هذه المشكلة |
Please speed up the release of PHP 8.1.17 and 8.2.4 to fix this problem |
Locking this issue to reduce spam. @arnaud-lb however, do you actually have heard back from the RMs? |
I heard back from RMs: new RCs will be tagged on Tuesday next week and released on Thursday |
Description
Most likely caused by the changes in #9810
The following code:
With this composer.json:
Resulted in a segfault, gdb backtrace:
gdb zbacktrace:
The same happens even without forcefully invoking gc_collect_cycles, as soon the automatic garbage collection mechanism triggers.
PHP Version
PHP 8.2.2
Operating System
Arch linux
The text was updated successfully, but these errors were encountered: