View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002020 | Xdebug | Uncategorized | public | 2021-09-21 16:15 | 2021-10-04 09:29 |
Reporter | j6s | Assigned To | derick | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 3.0.4 | ||||
Fixed in Version | 3.1.0 | ||||
Summary | 0002020: segfault if xdebug.dump.GET=* and integer key without value in URL | ||||
Description | xdebug / the php process will segfault if all of the following conditions are met:
| ||||
Steps To Reproduce | I attached a minimal httpd + php-fpm docker-compose setup to this issue. The apache config is the default apache config from the httpd container with an additional proxy-pass After starting the reproduction containers, you can call the example script at The reproduction setup uses PHP7.4, I will however try other PHP versions and report back with my findings. | ||||
Additional Information |
| ||||
Tags | crash, exception, SIGSEGV | ||||
Attached Files | |||||
Operating System | Linux | ||||
PHP Version | 7.4.10-7.4.19 | ||||
|
I tested some more versions. Interestingly, this does not seem to be exclusive to xdebug 3.x (which I initially thought). This means that this could potentially be the same issue as the following: https://bugs.xdebug.org/view.php?id=1770. The following versions also show this behaviour: (can be tested quite easily, by adjusting
Any coupling of php 7.1.33 with xdebug (2.5.5., 2.6.1, 2.7.2, 2.8.1, 2.9.8) did not show this behaviour. |
|
I have attached a simpler reproduction environment that uses the php:7.4.23-apache image instead of a httpd+php-fpm. Use I can also confirm that PHP8.0.10 + xdebug 3.1.0beta2 behaves the same way. |
|
Thanks for the detailed report. I managed to distill it to a much shorter case, and I have no also made a PR to address the issue: https://github.com/xdebug/xdebug/pull/788 — This will be part of Xdebug 3.1.0. (I'll also update the version ranges in the issue tracker, thanks for that) |
|
Merged into Git now, for inclusion in Xdebug 3.1.0 and later. |
Date Modified | Username | Field | Change |
---|---|---|---|
2021-09-21 16:15 | j6s | New Issue | |
2021-09-21 16:15 | j6s | Tag Attached: crash | |
2021-09-21 16:15 | j6s | Tag Attached: exception | |
2021-09-21 16:15 | j6s | Tag Attached: SIGSEGV | |
2021-09-21 16:15 | j6s | File Added: xdebug-3-segfault-repro.tar.gz | |
2021-09-21 16:37 | j6s | Note Added: 0006023 | |
2021-09-21 18:48 | j6s | Note Added: 0006024 | |
2021-09-21 18:48 | j6s | File Added: xdebug-segfault-repro-single-container.tar.gz | |
2021-09-22 09:48 | derick | Assigned To | => derick |
2021-09-22 09:48 | derick | Status | new => confirmed |
2021-09-22 09:48 | derick | Note Added: 0006025 | |
2021-09-22 10:08 | derick | Status | confirmed => closed |
2021-09-22 10:08 | derick | Resolution | open => fixed |
2021-09-22 10:08 | derick | Fixed in Version | => 3.1dev |
2021-09-22 10:08 | derick | Note Added: 0006027 | |
2021-10-04 09:29 | derick | Fixed in Version | 3.1dev => 3.1.0 |