View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002225 | Xdebug | Step Debugging | public | 2023-12-08 17:17 | 2024-05-10 16:07 |
Reporter | breier | Assigned To | derick | ||
Priority | high | Severity | crash | Reproducibility | always |
Status | resolved | Resolution | unable to reproduce | ||
Product Version | 3.3.0 | ||||
Summary | 0002225: segmentation fault on lazy loading / instantiating through reflection class | ||||
Description | Any breakpoint standing after the bootstrapping of the MVC will never be reached, since xdebug will have a segfault during the dependency injection resolve. | ||||
Steps To Reproduce | Have an interdependent DI setup with lazy load on Laminas (Zend should be similar). | ||||
Additional Information | When the class you need, needs another class that ends up needing the first class back. I reverted xdebug back to 3.2.1 and everything works fine. | ||||
Tags | fault, laminas, reflection, segfault, sementation, zend | ||||
Operating System | Debian 11 | ||||
PHP Version | 8.1.10-8.1.19 | ||||
|
Please provide the exact steps as to how I can reproduce this. Presume I know nothing beyond normal PHP. |
|
Hi Derick. I'd have to write a whole public project to reproduce this error with generic code. |
|
That's okay. I'd love for you to not have to do this, but I don't even know where to start building a Laminas project. |
|
I have released Xdebug 3.3.1, which could have fixed this issue. Can you please try it? |
|
Hi Derick, I can confirm that the issue is still present in version 3.3.1, although I'm not sure it is connected with reflection. |
|
Can you provide a (short) reproducible case then? I wouldn't know where to start here. Presume I know nothing about Laminas. Or perhaps at least provide a backtrace and xdebug log (https://xdebug.org/reporting-bugs#step-debugger) to begin? If I can't reproduce it, I also likely can't fix it. |
|
I would gladly provide the xdebug logs, but is there a way to send it over a private channel? I wouldn't want to make the specifics of our company software public domain. |
|
I also just found out that the problem occurs also when running a script through a web server's fcgi proxy to PHP-FPM, although instead of the "Segmentation fault" I get the following errors in the web server error logs along with a 503 Service Unavailable response. Nginx:
Apache: |
|
I think this might be the same issue as 0002229. |
|
I can confirm that updating to PHP-8.2 solves this issue. |
|
I have released Xdebug 3.3.1, which could have fixed this issue. Can you please try it? |
|
Can you provide the requested feedback please? |
|
Hi @derick, Sorry for the late reply. I moved jobs and, "unfortunately", I can't test this anymore. Unless anyone else can contribute, I'm fine with closing this issue. |
|
Hi, thanks for getting back to me. If you encounter it again, or something else, please feel free to file another report. I promise to be speedier about it! cheers, |
Date Modified | Username | Field | Change |
---|---|---|---|
2023-12-08 17:17 | breier | New Issue | |
2023-12-08 17:17 | breier | Tag Attached: fault | |
2023-12-08 17:17 | breier | Tag Attached: laminas | |
2023-12-08 17:17 | breier | Tag Attached: reflection | |
2023-12-08 17:17 | breier | Tag Attached: segfault | |
2023-12-08 17:17 | breier | Tag Attached: sementation | |
2023-12-08 17:17 | breier | Tag Attached: zend | |
2023-12-08 17:21 | derick | Assigned To | => derick |
2023-12-08 17:21 | derick | Status | new => feedback |
2023-12-08 17:21 | derick | Note Added: 0006717 | |
2023-12-11 16:24 | breier | Note Added: 0006721 | |
2023-12-11 16:24 | breier | Status | feedback => assigned |
2023-12-12 09:44 | derick | Status | assigned => feedback |
2023-12-12 09:44 | derick | Note Added: 0006723 | |
2023-12-15 12:26 | derick | Note Added: 0006731 | |
2023-12-21 11:11 | savemetenminutes | Note Added: 0006739 | |
2024-01-02 17:47 | derick | Note Added: 0006746 | |
2024-01-05 15:29 | savemetenminutes | Note Added: 0006751 | |
2024-01-05 15:43 | savemetenminutes | Note Added: 0006752 | |
2024-01-30 11:56 | derick | Note Added: 0006820 | |
2024-02-19 12:11 | breier | Note Added: 0006849 | |
2024-02-19 12:11 | breier | Status | feedback => assigned |
2024-04-15 13:46 | derick | Status | assigned => feedback |
2024-04-15 13:46 | derick | Note Added: 0006909 | |
2024-05-06 10:24 | derick | Note Added: 0006936 | |
2024-05-10 15:22 | breier | Note Added: 0006953 | |
2024-05-10 15:22 | breier | Status | feedback => assigned |
2024-05-10 16:07 | derick | Status | assigned => resolved |
2024-05-10 16:07 | derick | Resolution | open => unable to reproduce |
2024-05-10 16:07 | derick | Note Added: 0006954 |