View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0002242 | Xdebug | Uncategorized | public | 2024-01-30 10:10 | 2024-07-18 13:33 |
| Reporter | jozef.kovac | Assigned To | |||
| Priority | high | Severity | crash | Reproducibility | always |
| Status | resolved | Resolution | unable to reproduce | ||
| Product Version | 3.3.1 | ||||
| Summary | 0002242: process always segfault for some requests | ||||
| Description | PHP8.2 with xdebug extension 3.3.0/3.3.1 always crashing for some requests/years, downgrading back to 3.2.2 is fixing the problem. Same for PHP 8.3 with xdebug 3.3.1. There is no acitve debuging ongoing just extension is loaded. We use xdebug only on development instances. php-fpmphp_admin_value[xdebug.mode] = develop,profile php.inizend_extension=xdebug.so #core dump dmesgphp-fpm[3595236]: segfault at 9bae0243 ip 000055d8b642a19a sp 00007ffd8d7c0010 error 4 in php-fpm[55d8b6200000+318000] Xdebug is reporiting loading before Opcache, but opcache is disabled for development instances. | ||||
| Steps To Reproduce | I choose "always reproducible" but only tested on our setup. | ||||
| Tags | No tags attached. | ||||
| Operating System | RHEL 9.3 x86_64 | ||||
| PHP Version | 8.2.0-8.2.9 | ||||
|
|
Could you add the output of |
|
|
Here it is |
|
|
It seems we are affected by the same problem, as we're getting seemingly random segmentation faults since upgrading to Xdebug 3.3.1 (from Xdebug 3.2.x) on PHP 8.2. Would it help to provide more data? If so, please provide information what is required (I'm not familiar with inspecting segmentation faults). |
|
|
Can any of you reproduce this on the command line, with the run of a single request? Preferably, you run it like:
(and then "run") If that crashes, I am also interested in seeing the same, but run like:
As so far, I can't reproduce this yet — although it does happen when an exception is thrown:
Perhaps this happens during auto loading? |
|
|
Hi @derick,
Nope, the crash happens during the tests execution so most likely this is some issue during the import? Weird though. |
|
|
Hi @dercik, The first command has crashed so please find attached the log of the running valgrind. Is this expected that tests passed and not crashed in this case?? |
|
|
In our case, I believe we haven't experienced a segmentation fault for command line scripts. We're using the official |
|
|
We are facing similar problems with PHP 8.0.30 and xdebug 3.3.1 in develop mode for HTTP requests. Couldn't reproduce in command line when quickly tested. PHP error log indicated "exited on signal 11" without any lines written to xdebug log. |
|
|
I have released Xdebug 3.3.1, which could have fixed this issue. Can you please try it? |
|
|
Hi @derick, thanks for the update! I think you meant 3.3.2, not 3.3.1. I have updated my docker image and still can see segfault on the same test suite. Do you need valgrind or gdb logs? |
|
|
GDB shows a warning:
Not sure if it was present before. Nothing has changed in the logs of the valgrind. |
|
|
Thanks, @derick, for releasing 3.3.2! For us, the problem seems to be gone, i.e. there were no more segmentation faults since we updated to the new version. |
|
|
Hi, php --versionPHP 8.1.28 (cli) (built: Apr 24 2024 19:21:45) (NTS) We were running tests with PHPUnit 9.6.9 and they were also failing with status code 139. Rolling back to 3.2.2 helped. Hope someone, who is more familiar will be able to share more insides, just wanted to share that the issue is still somewhere around |
|
|
Looks like we found similar with Xdebug 3.3.2 and PHP 8.3.7. Again there is no debug session or profiling, Xdebug extension is just loaded. |
|
|
The original reporter still has not yet a provided a way on how to reproduce this problem. There are currently several reported crash bugs where more than one person added information, but often with a different cause. This makes researching this challenging, especially because I still do not have a reproducible case. I am going to close this ticket (and the others), and will only accept issues related to crashes when there is a full reproducible case — the exact steps on how I could potentially try to have the same issue. |