View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0002327 | Xdebug | Uncategorized | public | 2025-03-05 10:21 | 2025-03-09 16:08 |
| Reporter | NiroDev | Assigned To | derick | ||
| Priority | high | Severity | crash | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | x64 | OS | alpine in Docker for Windows | OS Version | 11 |
| Product Version | 3.4.1 | ||||
| Fixed in Version | 3.4.2 | ||||
| Summary | 0002327: Segmentation Fault 139 if exception thrown in callback since PHP 8.4 | ||||
| Description | Since my upgrade from PHP 8.3 to 8.4 (8.4.1 up to 8.4.4) the php process crashes with exit code 139. $collection = new Collection([fn() => throw new RuntimeException()]); I also created this php issue: https://github.com/php/php-src/issues/17968 | ||||
| Steps To Reproduce | Clone https://github.com/NiroDeveloper/php-issue-17968
| ||||
| Additional Information | The problem only occurs if xdebug is installed but not used. | ||||
| Tags | crash, php8.4, segfault | ||||
| Operating System | Docker php:8.4-cli-alpine | ||||
| PHP Version | 8.4-dev | ||||
|
|
The reproduce steps for me, without docker:
Produces no crash, but: |
|
|
https://github.com/xdebug/xdebug/pull/1000 should fix it, but I don't have a good short test case yet. |
|
|
This is now fixed in GIT for 3.4.2, of which I'll make a release soon. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2025-03-05 10:21 | NiroDev | New Issue | |
| 2025-03-05 10:21 | NiroDev | Tag Attached: crash | |
| 2025-03-05 10:21 | NiroDev | Tag Attached: php8.4 | |
| 2025-03-05 10:21 | NiroDev | Tag Attached: segfault | |
| 2025-03-05 10:47 | derick | Assigned To | => derick |
| 2025-03-05 10:47 | derick | Status | new => confirmed |
| 2025-03-05 10:47 | derick | Note Added: 0007193 | |
| 2025-03-05 11:01 | derick | Note Added: 0007194 | |
| 2025-03-07 12:10 | derick | Status | confirmed => closed |
| 2025-03-07 12:10 | derick | Resolution | open => fixed |
| 2025-03-07 12:10 | derick | Note Added: 0007201 | |
| 2025-03-09 16:00 | derick | Fixed in Version | => 3.4dev |
| 2025-03-09 16:08 | derick | Fixed in Version | 3.4dev => 3.4.2 |