View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002177 | Xdebug | Step Debugging | public | 2023-04-30 19:26 | 2023-05-24 16:26 |
Reporter | alxmrz | Assigned To | derick | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | no change required | ||
Product Version | 3.2.1 | ||||
Summary | 0002177: Segmentation fault on recursion | ||||
Description | Segmentation fault occurs on infinite recursion when xdebug is installed and xdebug.mode=debug. | ||||
Steps To Reproduce | Run code: callMe(); | ||||
Tags | error, php 8.1 | ||||
Operating System | Ubuntu | ||||
PHP Version | 8.1.0-8.1.4 | ||||
|
This is expected behaviour. If you create a infinite recursion than PHP can run out of stack space, which it does here. In most situations when Xdebug is not loaded, you run out of normal system memory before this stack overflow happens, which is why you wouldn't see it without xdebug loaded in most cases. There is a workaround though, through Xdebug's
Which should then give a good hint as to how to fix your code. |
Date Modified | Username | Field | Change |
---|---|---|---|
2023-04-30 19:26 | alxmrz | New Issue | |
2023-04-30 19:26 | alxmrz | Tag Attached: error | |
2023-04-30 19:26 | alxmrz | Tag Attached: php 8.1 | |
2023-05-24 16:26 | derick | Assigned To | => derick |
2023-05-24 16:26 | derick | Status | new => resolved |
2023-05-24 16:26 | derick | Resolution | open => no change required |
2023-05-24 16:26 | derick | Note Added: 0006567 | |
2023-05-24 16:26 | derick | Note Edited: 0006567 |