View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002306 | Xdebug | Uncategorized | public | 2024-12-03 07:57 | 2025-01-06 15:35 |
Reporter | mtassinari | Assigned To | derick | ||
Priority | normal | Severity | crash | Reproducibility | always |
Status | closed | Resolution | duplicate | ||
Platform | WSL | OS | Ubuntu | OS Version | 22.04 |
Product Version | 3.4.0 | ||||
Fixed in Version | 3.4.1 | ||||
Summary | 0002306: Segmentation fault on each HTTP request when not listening to debugging connections | ||||
Description | After upgrading to PHP 8.4.1 with xDebug 3.4.0, I noticed that if I disable listening to incoming connections in PHPStorm, or if I disable step debugging using xDebug helper extension, I get an apache segmentation fault. If I re-enable listening to connections, even if I set no breakpoints, it seems to work correctly. Apache error logs just says: [Tue Dec 03 08:45:28.909764 2024] [core:notice] [pid 19961] AH00052: child pid 20192 exit signal Segmentation fault (11) while xDebug error log says: [28175] Log opened at 2024-12-03 07:51:48.886735 NOTE: I picked php8.4-dev in the selector as there is no option for PHP 8.4.1 | ||||
Additional Information | Here is some system info $ php -v $ httpd -v $ php -m xDebug config: Here, XDEBUG_REMOTE_HOST is an environment variable I set in the WSL by getting the output of the command ip route list | grep default | awk '{ print $3 }' In my setup, PHP is run as an apache module: $ httpd -DPHP -M | ||||
Tags | php8.4, segfault | ||||
Operating System | Windows Subsystem for Linux | ||||
PHP Version | 8.4-dev | ||||
|
I wanted to add that, I thought it might be a PHP issue, but even reverting to PHP 8.3 doesn't fix the issue. Also, I cannot revert to 3.3.2 as it seems not available anymore on the repository from which I installed it using apt, or at least apt doesn't find version 3.3.2 So, for the time being, I need to disable the extension. |
|
This turned out to be a similar issue than 0002305 and 0002307 — at least it has the same cause. I have made a PR: https://github.com/xdebug/xdebug/pull/986 Would you be able to check the xdebug_3_4 branch from Xdebug's Github (once it's merged)? |
|
I do not think I have ever compiled a PHP extension manually, but I can try. I'll let you know. |
|
Ok, so, I compiled it and I think I did all correctly, as now I see I am using xdebug 3.4.1-dev $ php -v However, I still get the segmentation fault when I do not listen for connections in my IDE. |
|
I tested this again using the updated branch 3.4, and now it seems fixed. |
|
Fixed for 3.4.1. |
Date Modified | Username | Field | Change |
---|---|---|---|
2024-12-03 07:57 | mtassinari | New Issue | |
2024-12-03 07:57 | mtassinari | Tag Attached: php8.4 | |
2024-12-03 07:57 | mtassinari | Tag Attached: segfault | |
2024-12-03 10:38 | mtassinari | Note Added: 0007111 | |
2024-12-13 17:40 | derick | Assigned To | => derick |
2024-12-13 17:40 | derick | Status | new => resolved |
2024-12-13 17:40 | derick | Resolution | open => duplicate |
2024-12-13 17:40 | derick | Note Added: 0007117 | |
2024-12-13 17:40 | derick | Relationship added | duplicate of 0002307 |
2024-12-16 07:13 | mtassinari | Note Added: 0007121 | |
2024-12-16 07:35 | mtassinari | Note Added: 0007122 | |
2025-01-02 08:14 | mtassinari | Note Added: 0007135 | |
2025-01-06 15:34 | derick | Status | resolved => closed |
2025-01-06 15:34 | derick | Fixed in Version | => 3.4dev |
2025-01-06 15:34 | derick | Note Added: 0007142 | |
2025-01-06 15:35 | derick | Fixed in Version | 3.4dev => 3.4.1 |